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 floatmaximumValueprotected floatminimumValueprotected 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 voidaddThumbDataListener(ThumbDataListener listener)protected voidfireThumbPositionChanged(Thumb<E> thumb)protected voidfireThumbValueChanged(Thumb<E> thumb)floatgetMaximumValue()floatgetMinimumValue()voidremoveThumbDataListener(ThumbDataListener listener)voidsetMaximumValue(float maximumValue)voidsetMinimumValue(float minimumValue)voidthumbPositionChanged(Thumb<E> thumb)voidthumbValueChanged(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 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:
getMaximumValuein interfaceMultiThumbModel<E>
-
getMinimumValue
public float getMinimumValue()
- Specified by:
getMinimumValuein interfaceMultiThumbModel<E>
-
setMaximumValue
public void setMaximumValue(float maximumValue)
- Specified by:
setMaximumValuein interfaceMultiThumbModel<E>
-
setMinimumValue
public void setMinimumValue(float minimumValue)
- Specified by:
setMinimumValuein interfaceMultiThumbModel<E>
-
addThumbDataListener
public void addThumbDataListener(ThumbDataListener listener)
- Specified by:
addThumbDataListenerin interfaceMultiThumbModel<E>
-
removeThumbDataListener
public void removeThumbDataListener(ThumbDataListener listener)
- Specified by:
removeThumbDataListenerin interfaceMultiThumbModel<E>
-
thumbPositionChanged
public void thumbPositionChanged(Thumb<E> thumb)
- Specified by:
thumbPositionChangedin interfaceMultiThumbModel<E>
-
thumbValueChanged
public void thumbValueChanged(Thumb<E> thumb)
- Specified by:
thumbValueChangedin interfaceMultiThumbModel<E>
-
-