Package org.jdesktop.swingx.multislider
Class DefaultMultiThumbModel<E>
java.lang.Object
org.jdesktop.swingx.multislider.AbstractMultiThumbModel<E>
org.jdesktop.swingx.multislider.DefaultMultiThumbModel<E>
- All Implemented Interfaces:
Iterable<Thumb<E>>
,MultiThumbModel<E>
implements a MultiThumbModel
- Author:
- jm158417 Joshua Marinacci joshy
-
Field Summary
FieldsFields inherited from class org.jdesktop.swingx.multislider.AbstractMultiThumbModel
maximumValue, minimumValue, thumbDataListeners
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
TODO docTODO maven-javadoc-plugin 3.3.2 needs a doc heregetThumbAt
(int index) getterint
Countint
getThumbIndex
(Thumb<E> thumb) findervoid
insertThumb
(float value, E obj, int index) TODO dociterator()
void
removeThumb
(int index) removerMethods inherited from class org.jdesktop.swingx.multislider.AbstractMultiThumbModel
addThumbDataListener, fireThumbPositionChanged, fireThumbValueChanged, getMaximumValue, getMinimumValue, removeThumbDataListener, setMaximumValue, setMinimumValue, thumbPositionChanged, thumbValueChanged, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
thumbs
the collection of thumbs
-
-
Constructor Details
-
DefaultMultiThumbModel
public DefaultMultiThumbModel()Creates a new instance of DefaultMultiThumbModel
-
-
Method Details
-
addThumb
TODO docreturns the index of the newly added thumb
- Parameters:
value
- floatobj
- generic- Returns:
- int
-
insertThumb
TODO doc- Parameters:
value
- floatobj
- genericindex
- of thumb
-
removeThumb
public void removeThumb(int index) remover- Parameters:
index
- of thumb
-
getThumbCount
public int getThumbCount()Count- Returns:
- no of thumbs
-
getThumbAt
getter- Parameters:
index
- of thumb- Returns:
- thumb
-
getSortedThumbs
TODO maven-javadoc-plugin 3.3.2 needs a doc here- Returns:
- List of Thumbs
-
iterator
-
getThumbIndex
finder- Parameters:
thumb
- generic Thumb- Returns:
- index
-