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 float
maximum Value of the thumbprotected float
minimum Value of the thumbprotected List<ThumbDataListener>
the collection of thumb Data Listeners -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addThumbDataListener
(ThumbDataListener listener) Adds a listener for theThumbDataEvent
posted after the thumb data changes.protected void
fireThumbPositionChanged
(Thumb<E> thumb) Notifies all listeners that have registered interest for notification on thumb position change.protected void
fireThumbValueChanged
(Thumb<E> thumb) Notifies all listeners that have registered interest for notification on value change.float
float
void
removeThumbDataListener
(ThumbDataListener listener) Removes a listener previously added withaddThumbDataListener
.void
setMaximumValue
(float maximumValue) TODO docvoid
setMinimumValue
(float minimumValue) TODO docvoid
thumbPositionChanged
(Thumb<E> thumb) TODO docvoid
thumbValueChanged
(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, 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 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:
getMaximumValue
in interfaceMultiThumbModel<E>
- Returns:
- maximum Value
-
getMinimumValue
public float getMinimumValue()- Specified by:
getMinimumValue
in interfaceMultiThumbModel<E>
- Returns:
- minimum Value
-
setMaximumValue
public void setMaximumValue(float maximumValue) Description copied from interface:MultiThumbModel
TODO doc- Specified by:
setMaximumValue
in interfaceMultiThumbModel<E>
- Parameters:
maximumValue
- maximum Value
-
setMinimumValue
public void setMinimumValue(float minimumValue) Description copied from interface:MultiThumbModel
TODO doc- Specified by:
setMinimumValue
in interfaceMultiThumbModel<E>
- Parameters:
minimumValue
- minimum Value
-
addThumbDataListener
Description copied from interface:MultiThumbModel
Adds a listener for theThumbDataEvent
posted after the thumb data changes.- Specified by:
addThumbDataListener
in interfaceMultiThumbModel<E>
- Parameters:
listener
- the listener to add- See Also:
-
removeThumbDataListener
Removes a listener previously added withaddThumbDataListener
.- Specified by:
removeThumbDataListener
in interfaceMultiThumbModel<E>
- Parameters:
listener
- the listener to remove- See Also:
-
thumbPositionChanged
TODO doc- Specified by:
thumbPositionChanged
in 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:
thumbValueChanged
in 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
-