Package org.jdesktop.swingx.multislider
Class AbstractMultiThumbModel<E>
java.lang.Object
org.jdesktop.swingx.multislider.AbstractMultiThumbModel<E>
- All Implemented Interfaces:
Iterable<Thumb<E>>
,MultiThumbModel<E>
- Direct Known Subclasses:
DefaultMultiThumbModel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected float
protected float
protected List
<ThumbDataListener> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addThumbDataListener
(ThumbDataListener listener) protected void
fireThumbPositionChanged
(Thumb<E> thumb) protected void
fireThumbValueChanged
(Thumb<E> thumb) float
float
void
removeThumbDataListener
(ThumbDataListener listener) void
setMaximumValue
(float maximumValue) void
setMinimumValue
(float minimumValue) void
thumbPositionChanged
(Thumb<E> thumb) void
thumbValueChanged
(Thumb<E> thumb) 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, iterator, spliterator
Methods inherited from interface org.jdesktop.swingx.multislider.MultiThumbModel
addThumb, getSortedThumbs, getThumbAt, getThumbCount, getThumbIndex, insertThumb, removeThumb
-
Field Details
-
maximumValue
protected float maximumValue -
minimumValue
protected float minimumValue -
thumbDataListeners
-
-
Constructor Details
-
AbstractMultiThumbModel
public AbstractMultiThumbModel()Creates a new instance of AbstractMultiThumbModel
-
-
Method Details
-
getMaximumValue
public float getMaximumValue()- Specified by:
getMaximumValue
in interfaceMultiThumbModel<E>
-
getMinimumValue
public float getMinimumValue()- Specified by:
getMinimumValue
in interfaceMultiThumbModel<E>
-
setMaximumValue
public void setMaximumValue(float maximumValue) - Specified by:
setMaximumValue
in interfaceMultiThumbModel<E>
-
setMinimumValue
public void setMinimumValue(float minimumValue) - Specified by:
setMinimumValue
in interfaceMultiThumbModel<E>
-
addThumbDataListener
- Specified by:
addThumbDataListener
in interfaceMultiThumbModel<E>
-
removeThumbDataListener
- Specified by:
removeThumbDataListener
in interfaceMultiThumbModel<E>
-
thumbPositionChanged
- Specified by:
thumbPositionChanged
in interfaceMultiThumbModel<E>
-
fireThumbPositionChanged
-
thumbValueChanged
- Specified by:
thumbValueChanged
in interfaceMultiThumbModel<E>
-
fireThumbValueChanged
-