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 TypeMethodDescriptionintTODO docTODO maven-javadoc-plugin 3.3.2 needs a doc heregetThumbAt(int index) getterintCountintgetThumbIndex(Thumb<E> thumb) findervoidinsertThumb(float value, E obj, int index) TODO dociterator()voidremoveThumb(int index) removerMethods inherited from class org.jdesktop.swingx.multislider.AbstractMultiThumbModel
addThumbDataListener, fireThumbPositionChanged, fireThumbValueChanged, getMaximumValue, getMinimumValue, removeThumbDataListener, setMaximumValue, setMinimumValue, thumbPositionChanged, thumbValueChanged, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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
-