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>
- Author:
- jm158417
-
-
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<E> thumb)
protected void
fireThumbValueChanged(Thumb<E> thumb)
float
getMaximumValue()
float
getMinimumValue()
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 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<E> thumb)
- Specified by:
thumbPositionChanged
in interfaceMultiThumbModel<E>
-
thumbValueChanged
public void thumbValueChanged(Thumb<E> thumb)
- Specified by:
thumbValueChanged
in interfaceMultiThumbModel<E>
-
-