Index
All Classes and Interfaces|All Packages|Serialized Form
A
- AbstractMultiSlider<T> - Class in org.djutils.swing.multislider
-
The
AbstractMultiSliderforms the base of implementing a slider with multiple thumbs. - AbstractMultiSlider(int, int, boolean, int...) - Constructor for class org.djutils.swing.multislider.AbstractMultiSlider
-
Creates a slider with the specified orientation and the specified minimum, maximum, and initial values.
- AbstractMultiSlider.DispatcherPane - Class in org.djutils.swing.multislider
-
The DispatcherPane class, which is a glass pane sitting on top of the sliders to dispatch the mouse event to the correct slider class.
- AbstractMultiSlider.FinalValueChangeListener - Interface in org.djutils.swing.multislider
-
The FinalValueChangeListener sends a final value to the listeners after mouse-up, leave focus, setValue(...), and setInitialValues().
- AbstractMultiSlider.LabelPanel - Class in org.djutils.swing.multislider
-
The LabelPanel is draw above a horizontal slider or left of a vertical slider and displays labels for the thumbs of the slider, so one can see which one is which.
- addChangeListener(ChangeListener) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Adds a ChangeListener to the multislider.
- addFinalValueChangeListener(AbstractMultiSlider.FinalValueChangeListener) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Adds a FinalValueChangeListener to the multislider.
C
- calculateTrackSize() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Recalculate the track size (width for horizontal slider; height for vertical slider) after a resize operation.
- CategorialMultiSlider<T> - Class in org.djutils.swing.multislider
-
CategorialMultiSlider implements a slider with multiple thumbs and categorial values.
- CategorialMultiSlider(boolean, List<T>, T...) - Constructor for class org.djutils.swing.multislider.CategorialMultiSlider
-
Creates a horizontal or vertical slider using the specified min, max and initial values.
- CategorialMultiSlider(List<T>, T...) - Constructor for class org.djutils.swing.multislider.CategorialMultiSlider
-
Creates a horizontal slider using the specified scale and initial values.
- checkRestrictions() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Check restrictions on all thumb values and correct values where necessary.
- checkRestrictions(int) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Check restrictions on the thumb values of thumb 'index' and correct values where necessary.
- checkRestrictions(int) - Method in class org.djutils.swing.multislider.AbstractMultiSlider.DispatcherPane
-
Check whether minimum, maximum, passing or overlap restrictions were violated, and if so, adjust.
- closestSliderIndex(Point) - Method in class org.djutils.swing.multislider.AbstractMultiSlider.DispatcherPane
-
Return the closest slider number based on x (horizontal) or y (vertical) locations of the thumbs.
- createStandardLabels(int) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Creates a
Hashtableof numerical text labels, starting at the slider minimum, and using the increment specified. - createStandardLabels(int, int) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Creates a
Hashtableof text labels, starting at the starting point specified, and using the increment specified.
D
- dispatch(MouseEvent, boolean) - Method in class org.djutils.swing.multislider.AbstractMultiSlider.DispatcherPane
- DispatcherPane(AbstractMultiSlider<?>) - Constructor for class org.djutils.swing.multislider.AbstractMultiSlider.DispatcherPane
-
Create a glass pane on top of the sliders.
F
- fireFinalValueChanged() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Send a
ChangeEvent, whose source is thisMultiSlider, to allFinalValueChangeListeners that have registered interest inChangeEvents. - fireStateChanged() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Send a
ChangeEvent, whose source is thisMultiSlider, to allChangeListeners that have registered interest inChangeEvents. - format(T) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Format a value for e.g., the labels of the slider.
G
- getBusySlider() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Return which slider is busy (e.g., mouse-down or a drag operation).
- getChangeListeners() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Returns an array of all the
ChangeListeners added to this MultiSlider with addChangeListener(). - getDispatcherPane() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Return the glass pane on top of the multislider.
- getExtent() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Returns the "extent" from the
BoundedRangeModel. - getFinalValueChangeListeners() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Returns an array of all the
FinalValueChangeListeners added to this MultiSlider with addFinalValueChangeListener(). - getIndexMaximum() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Returns the maximum value supported by the slider from the
BoundedRangeModel. - getIndexMinimum() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Returns the minimum value supported by the slider from the
BoundedRangeModel. - getIndexValue(int) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Returns the slider's current index value for slider[i] from the
BoundedRangeModel. - getInverted() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Returns true if the value-range shown for the slider is reversed.
- getLabelPanel() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Return the label panel in which thumb labels can be drawn.
- getLabelTable() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Returns the dictionary of what labels to draw at which values.
- getMajorTickSpacing() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
This method returns the major tick spacing.
- getMaximum() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Return the maximum value supported by the multislider.
- getMinimum() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Return the minimum value supported by the multislider.
- getMinorTickSpacing() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
This method returns the minor tick spacing.
- getNumberOfThumbs() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Return the number of thumbs on this multislider.
- getOrientation() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Return this multislider's vertical or horizontal orientation.
- getOverlap() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Return whether overlap of the thumbs is allowed.
- getPaintLabels() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Tells if labels are to be painted.
- getPaintTicks() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Tells if tick marks are to be painted.
- getPaintTrack() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Tells if the track (area the slider slides in) is to be painted.
- getPassing() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Return whether passing of the thumbs is allowed.
- getSlider(int) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Return an individual slider with index i.
- getSliders() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Return the individual sliders, where slider[0] contains the formatting.
- getSnapToTicks() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Returns true if the thumb (and the data value it represents) resolve to the closest tick mark next to where the user positioned the thumb.
- getThumbLabel(int) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Get the thumb label for thumb i.
- getTrackSizeHiPx() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Return the track size highest pixel (to calculate width for horizontal slider; height for vertical slider).
- getTrackSizeLoPx() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Return the track size lowest pixel (to calculate width for horizontal slider; height for vertical slider).
- getUI() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Gets the UI object which implements the L&F for this component.
- getUIClassID() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Returns the name of the L&F class that renders this component.
- getUnitTicks() - Method in class org.djutils.swing.multislider.LinearMultiSlider
-
Return the number of unit ticks on the scale.
- getValue(int) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Returns the slider's current value for slider[i].
I
- isBusy() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Return whether one of the sliders is busy (e.g., mouse-down or a drag operation).
- isBusySlider(int) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Return whether slider i is busy (e.g., mouse-down or a drag operation).
- isDrawThumbLabels() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Return whether thumb label display on or off.
- isHorizontal() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Return whether the orientation of the multislider is horizontal or not.
- isVertical() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Return whether the orientation of the multislider is vertical or not.
L
- LabelPanel(AbstractMultiSlider<?>) - Constructor for class org.djutils.swing.multislider.AbstractMultiSlider.LabelPanel
-
Default constructor.
- LinearMultiSlider<T extends Number & Comparable<T>> - Class in org.djutils.swing.multislider
-
LinearMultiSlider implements a slider with multiple thumbs and liner values based on the class Number.
- LinearMultiSlider(T, T, int, boolean, T...) - Constructor for class org.djutils.swing.multislider.LinearMultiSlider
-
Creates a horizontal or vertical slider using the specified min, max and initial values.
- LinearMultiSlider(T, T, int, T...) - Constructor for class org.djutils.swing.multislider.LinearMultiSlider
-
Creates a horizontal slider using the specified interval, number of steps, and initial values.
M
- mapIndexToValue(int) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Translate an index to a value.
- mapIndexToValue(int) - Method in class org.djutils.swing.multislider.CategorialMultiSlider
-
Translate an index to a value.
- mapIndexToValue(int) - Method in class org.djutils.swing.multislider.MultiSlider
-
Translate an index to a value.
- mapValueToIndex(Integer) - Method in class org.djutils.swing.multislider.MultiSlider
-
Translate a value to an index.
- mapValueToIndex(T) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Translate a value to an index.
- mapValueToIndex(T) - Method in class org.djutils.swing.multislider.CategorialMultiSlider
-
Translate a value to an index.
- mapValueToIndex(T) - Method in class org.djutils.swing.multislider.LinearMultiSlider
- multiSlider - Variable in class org.djutils.swing.multislider.AbstractMultiSlider.DispatcherPane
-
the pointer to the multislider object; protected to access it by the mouse handlers.
- MultiSlider - Class in org.djutils.swing.multislider
-
MultiSlider implements a slider with multiple thumbs.
- MultiSlider(int, int, boolean, int...) - Constructor for class org.djutils.swing.multislider.MultiSlider
-
Creates a slider with the specified orientation and the specified minimum, maximum, and initial values.
- MultiSlider(int, int, int...) - Constructor for class org.djutils.swing.multislider.MultiSlider
-
Creates a horizontal slider using the specified min, max and initial values.
O
- org.djutils.swing.multislider - package org.djutils.swing.multislider
-
A multislider is a slider with multiple thumbs.
P
- paintComponent(Graphics) - Method in class org.djutils.swing.multislider.AbstractMultiSlider.LabelPanel
R
- removeChangeListener(ChangeListener) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Removes a ChangeListener from the multislider.
- removeFinalValueChangeListener(AbstractMultiSlider.FinalValueChangeListener) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Removes a FinalValueChangeListener from the multislider.
- resetToInitialValues() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Reset the slider values to the initial values.
S
- setBusy(boolean) - Method in class org.djutils.swing.multislider.AbstractMultiSlider.DispatcherPane
-
Indicate whether the multislider is busy with handling an action (e.g., drag, mouse down).
- setBusy(boolean) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Set whether one of the sliders is busy (e.g., mouse-down or a drag operation).
- setBusySlider(int) - Method in class org.djutils.swing.multislider.AbstractMultiSlider.DispatcherPane
-
Reset the busy slider -- action over.
- setBusySlider(int) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Indicate that slider i is busy (e.g., mouse-down or a drag operation).
- setDrawThumbLabels(boolean, int) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Turn the thumb label display on or off.
- setExtent(int) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Sets the size of the range "covered" by the thumb for all underlying slider objects.
- setFont(Font) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
- setIndexMaximum(int) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Sets the slider's maximum value to
maximum. - setIndexMinimum(int) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Sets the slider's minimum value to
minimum. - setIndexValue(int, int) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Sets the slider's current index value to
n. - setInverted(boolean) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Specify true to reverse the value-range shown for the slider and false to put the value range in the normal order.
- setLabelTable(Dictionary) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Specify what label will be drawn at any given value.
- setMajorTickSpacing(int) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
This method sets the major tick spacing.
- setMaximum(T) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Set the maximum value supported by the multislider.
- setMinimum(T) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Set the minimum value supported by the multislider.
- setMinorTickSpacing(int) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
This method sets the minor tick spacing.
- setOrientation(int) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Set the slider's orientation to either
SwingConstants.VERTICALorSwingConstants.HORIZONTAL. - setOverlap(boolean) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Set whether overlap of the thumbs is allowed, and check whether thumb values are in line with restrictions.
- setPaintLabels(boolean) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Determines whether labels are painted on the slider.
- setPaintTicks(boolean) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Determines whether tick marks are painted on the slider.
- setPaintTrack(boolean) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Determines whether the track is painted on the slider.
- setPassing(boolean) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Set whether passing of the thumbs is allowed, and check whether thumb values are in line with restrictions.
- setSnapToTicks(boolean) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Specifying true makes the thumb (and the data value it represents) resolve to the closest tick mark next to where the user positioned the thumb.
- setThumbLabel(int, String) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Set the thumb label for thumb i to the given label.
- setUI(SliderUI) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Sets the UI object which implements the L&F for all underlying sliders.
- setValue(int, T) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Sets the slider's current value to
value.
T
- thumbPositionPx(int) - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Calculate x pixel (horizontal) or y pixel (vertical) of thumb[i], relative to the panel of the JSlider.
- trackSize() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Calculate the track size (width for a horizontal slider; height for a vertical slider).
U
- updateUI() - Method in class org.djutils.swing.multislider.AbstractMultiSlider
-
Resets the UI property to a value from the current look and feel for all underlying sliders.
All Classes and Interfaces|All Packages|Serialized Form