Package org.jdesktop.swingx.multislider
Class AbstractMultiThumbModel<E>
- java.lang.Object
-
- org.jdesktop.swingx.multislider.AbstractMultiThumbModel<E>
-
- All Implemented Interfaces:
java.lang.Iterable<Thumb<E>>
,MultiThumbModel<E>
- Direct Known Subclasses:
DefaultMultiThumbModel
public abstract class AbstractMultiThumbModel<E> extends java.lang.Object implements MultiThumbModel<E>
-
-
Field Summary
Fields Modifier and Type Field Description protected float
maximumValue
protected float
minimumValue
protected java.util.List<ThumbDataListener>
thumbDataListeners
-
Constructor Summary
Constructors Constructor Description AbstractMultiThumbModel()
Creates a new instance of AbstractMultiThumbModel
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addThumbDataListener(ThumbDataListener listener)
protected void
fireThumbPositionChanged(Thumb thumb)
protected void
fireThumbValueChanged(Thumb thumb)
float
getMaximumValue()
float
getMinimumValue()
void
removeThumbDataListener(ThumbDataListener listener)
void
setMaximumValue(float maximumValue)
void
setMinimumValue(float minimumValue)
void
thumbPositionChanged(Thumb thumb)
void
thumbValueChanged(Thumb thumb)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jdesktop.swingx.multislider.MultiThumbModel
addThumb, getSortedThumbs, getThumbAt, getThumbCount, getThumbIndex, insertThumb, removeThumb
-
-
-
-
Field Detail
-
maximumValue
protected float maximumValue
-
minimumValue
protected float minimumValue
-
thumbDataListeners
protected java.util.List<ThumbDataListener> thumbDataListeners
-
-
Method Detail
-
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
public void addThumbDataListener(ThumbDataListener listener)
- Specified by:
addThumbDataListener
in interfaceMultiThumbModel<E>
-
removeThumbDataListener
public void removeThumbDataListener(ThumbDataListener listener)
- Specified by:
removeThumbDataListener
in interfaceMultiThumbModel<E>
-
thumbPositionChanged
public void thumbPositionChanged(Thumb thumb)
- Specified by:
thumbPositionChanged
in interfaceMultiThumbModel<E>
-
fireThumbPositionChanged
protected void fireThumbPositionChanged(Thumb thumb)
-
thumbValueChanged
public void thumbValueChanged(Thumb thumb)
- Specified by:
thumbValueChanged
in interfaceMultiThumbModel<E>
-
fireThumbValueChanged
protected void fireThumbValueChanged(Thumb thumb)
-
-