org.jdesktop.swingx.multislider
public class DefaultMultiThumbModel<E> extends AbstractMultiThumbModel<E> implements MultiThumbModel<E>
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Thumb<E>> |
thumbs |
maximumValue, minimumValue, thumbDataListeners
Constructor and Description |
---|
DefaultMultiThumbModel()
Creates a new instance of DefaultMultiThumbModel
|
Modifier and Type | Method and Description |
---|---|
int |
addThumb(float value,
E obj) |
java.util.List<Thumb<E>> |
getSortedThumbs() |
Thumb<E> |
getThumbAt(int index) |
int |
getThumbCount() |
int |
getThumbIndex(Thumb<E> thumb) |
void |
insertThumb(float value,
E obj,
int index) |
java.util.Iterator<Thumb<E>> |
iterator() |
void |
removeThumb(int index) |
addThumbDataListener, fireThumbPositionChanged, fireThumbValueChanged, getMaximumValue, getMinimumValue, removeThumbDataListener, setMaximumValue, setMinimumValue, thumbPositionChanged, thumbValueChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addThumbDataListener, getMaximumValue, getMinimumValue, removeThumbDataListener, setMaximumValue, setMinimumValue, thumbPositionChanged, thumbValueChanged
public DefaultMultiThumbModel()
public int addThumb(float value, E obj)
addThumb
in interface MultiThumbModel<E>
public void insertThumb(float value, E obj, int index)
insertThumb
in interface MultiThumbModel<E>
public void removeThumb(int index)
removeThumb
in interface MultiThumbModel<E>
public int getThumbCount()
getThumbCount
in interface MultiThumbModel<E>
public Thumb<E> getThumbAt(int index)
getThumbAt
in interface MultiThumbModel<E>
public java.util.List<Thumb<E>> getSortedThumbs()
getSortedThumbs
in interface MultiThumbModel<E>
public int getThumbIndex(Thumb<E> thumb)
getThumbIndex
in interface MultiThumbModel<E>