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
Fields Modifier and Type Field Description protected List<Thumb<E>>
thumbs
-
Fields inherited from class org.jdesktop.swingx.multislider.AbstractMultiThumbModel
maximumValue, minimumValue, thumbDataListeners
-
-
Constructor Summary
Constructors Constructor Description DefaultMultiThumbModel()
Creates a new instance of DefaultMultiThumbModel
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
addThumb(float value, E obj)
List<Thumb<E>>
getSortedThumbs()
Thumb<E>
getThumbAt(int index)
int
getThumbCount()
int
getThumbIndex(Thumb<E> thumb)
void
insertThumb(float value, E obj, int index)
Iterator<Thumb<E>>
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
-
-
-
-
Method Detail
-
addThumb
public int addThumb(float value, E obj)
- Specified by:
addThumb
in interfaceMultiThumbModel<E>
-
insertThumb
public void insertThumb(float value, E obj, int index)
- 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
public Thumb<E> getThumbAt(int index)
- Specified by:
getThumbAt
in interfaceMultiThumbModel<E>
-
getSortedThumbs
public List<Thumb<E>> getSortedThumbs()
- Specified by:
getSortedThumbs
in interfaceMultiThumbModel<E>
-
getThumbIndex
public int getThumbIndex(Thumb<E> thumb)
- Specified by:
getThumbIndex
in interfaceMultiThumbModel<E>
-
-