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>
public class DefaultMultiThumbModel<E>
extends AbstractMultiThumbModel<E>
implements MultiThumbModel<E>
- Author:
- joshy
-
Field Summary
FieldsFields inherited from class org.jdesktop.swingx.multislider.AbstractMultiThumbModel
maximumValue, minimumValue, thumbDataListeners
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getThumbAt
(int index) int
int
getThumbIndex
(Thumb<E> thumb) void
insertThumb
(float value, E obj, int index) iterator()
void
removeThumb
(int index) Methods inherited from class org.jdesktop.swingx.multislider.AbstractMultiThumbModel
addThumbDataListener, fireThumbPositionChanged, fireThumbValueChanged, getMaximumValue, getMinimumValue, removeThumbDataListener, setMaximumValue, setMinimumValue, thumbPositionChanged, thumbValueChanged
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.jdesktop.swingx.multislider.MultiThumbModel
addThumbDataListener, getMaximumValue, getMinimumValue, removeThumbDataListener, setMaximumValue, setMinimumValue, thumbPositionChanged, thumbValueChanged
-
Field Details
-
thumbs
-
-
Constructor Details
-
DefaultMultiThumbModel
public DefaultMultiThumbModel()Creates a new instance of DefaultMultiThumbModel
-
-
Method Details
-
addThumb
- Specified by:
addThumb
in interfaceMultiThumbModel<E>
-
insertThumb
- Specified by:
insertThumb
in interfaceMultiThumbModel<E>
-
removeThumb
public void removeThumb(int index) - Specified by:
removeThumb
in interfaceMultiThumbModel<E>
-
getThumbCount
public int getThumbCount()- Specified by:
getThumbCount
in interfaceMultiThumbModel<E>
-
getThumbAt
- Specified by:
getThumbAt
in interfaceMultiThumbModel<E>
-
getSortedThumbs
- Specified by:
getSortedThumbs
in interfaceMultiThumbModel<E>
-
iterator
-
getThumbIndex
- Specified by:
getThumbIndex
in interfaceMultiThumbModel<E>
-