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
- Author:
- jm158417 Joshua Marinacci joshy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatmaximum Value of the thumbprotected floatminimum Value of the thumbprotected List<ThumbDataListener>the collection of thumb Data Listeners -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddThumbDataListener(ThumbDataListener listener) Adds a listener for theThumbDataEventposted after the thumb data changes.protected voidfireThumbPositionChanged(Thumb<E> thumb) Notifies all listeners that have registered interest for notification on thumb position change.protected voidfireThumbValueChanged(Thumb<E> thumb) Notifies all listeners that have registered interest for notification on value change.floatfloatvoidremoveThumbDataListener(ThumbDataListener listener) Removes a listener previously added withaddThumbDataListener.voidsetMaximumValue(float maximumValue) TODO docvoidsetMinimumValue(float minimumValue) TODO docvoidthumbPositionChanged(Thumb<E> thumb) TODO docvoidthumbValueChanged(Thumb<E> thumb) Notifies all listeners that have registered interest for notification on value change.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.jdesktop.swingx.multislider.MultiThumbModel
addThumb, getSortedThumbs, getThumbAt, getThumbCount, getThumbIndex, insertThumb, removeThumb
-
Field Details
-
maximumValue
protected float maximumValuemaximum Value of the thumb -
minimumValue
protected float minimumValueminimum Value of the thumb -
thumbDataListeners
the collection of thumb Data Listeners
-
-
Constructor Details
-
AbstractMultiThumbModel
public AbstractMultiThumbModel()Creates a new instance of AbstractMultiThumbModel
-
-
Method Details
-
getMaximumValue
public float getMaximumValue()- Specified by:
getMaximumValuein interfaceMultiThumbModel<E>- Returns:
- maximum Value
-
getMinimumValue
public float getMinimumValue()- Specified by:
getMinimumValuein interfaceMultiThumbModel<E>- Returns:
- minimum Value
-
setMaximumValue
public void setMaximumValue(float maximumValue) Description copied from interface:MultiThumbModelTODO doc- Specified by:
setMaximumValuein interfaceMultiThumbModel<E>- Parameters:
maximumValue- maximum Value
-
setMinimumValue
public void setMinimumValue(float minimumValue) Description copied from interface:MultiThumbModelTODO doc- Specified by:
setMinimumValuein interfaceMultiThumbModel<E>- Parameters:
minimumValue- minimum Value
-
addThumbDataListener
Description copied from interface:MultiThumbModelAdds a listener for theThumbDataEventposted after the thumb data changes.- Specified by:
addThumbDataListenerin interfaceMultiThumbModel<E>- Parameters:
listener- the listener to add- See Also:
-
removeThumbDataListener
Removes a listener previously added withaddThumbDataListener.- Specified by:
removeThumbDataListenerin interfaceMultiThumbModel<E>- Parameters:
listener- the listener to remove- See Also:
-
thumbPositionChanged
TODO doc- Specified by:
thumbPositionChangedin interfaceMultiThumbModel<E>- Parameters:
thumb- TODO doc
-
fireThumbPositionChanged
Notifies all listeners that have registered interest for notification on thumb position change.- Parameters:
thumb- the thumb which changed position
-
thumbValueChanged
Notifies all listeners that have registered interest for notification on value change. CallsfireThumbValueChanged- Specified by:
thumbValueChangedin interfaceMultiThumbModel<E>- Parameters:
thumb- the thumb which changed value
-
fireThumbValueChanged
Notifies all listeners that have registered interest for notification on value change.- Parameters:
thumb- the thumb which changed value
-
toString
-