public class IlvDoubleSliderUI extends ilog.views.chart.swing.internal.IlvBasicDoubleSliderUI implements SwingConstants
IlvDoubleSliderUI
is a UI delegate class for
IlvDoubleSlider
. IlvDoubleSlider allows the user to move two
knobs along a bounded line,thus specifying two real numbers in a bounded
interval.The two numbers are in a fixed order-it is not possible to move one
knob across the other knob,therefore the two real numbers specify a
subinterval of a given bounded range model.Modifier and Type | Class and Description |
---|---|
class |
IlvDoubleSliderUI.PropertyChangeHandler2
PropertyChangeHandler2 implements PropertyChangeListener which
basically watches for any changes to the property. |
class |
IlvDoubleSliderUI.TrackListener2
TrackListener2 class basically tracks down any mouse movements
on the double slider. |
ilog.views.chart.swing.internal.IlvBasicDoubleSliderUI.ChangeHandler
BasicSliderUI.ActionScroller, BasicSliderUI.ComponentHandler, BasicSliderUI.FocusHandler, BasicSliderUI.PropertyChangeHandler, BasicSliderUI.ScrollListener, BasicSliderUI.TrackListener
buffer, dragging, DRAGGING_HIGHBOUND, DRAGGING_INTERVAL, DRAGGING_LOWBOUND, firstSliderFixed, isDragging, NO_DRAG, secondSliderFixed, thumbRect2, unionRect
changeListener, componentListener, contentRect, focusInsets, focusListener, focusRect, insetCache, labelRect, leftToRightCache, MAX_SCROLL, MIN_SCROLL, NEGATIVE_SCROLL, POSITIVE_SCROLL, propertyChangeListener, scrollListener, scrollTimer, slider, thumbRect, tickRect, trackBuffer, trackListener, trackRect
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
Constructor and Description |
---|
IlvDoubleSliderUI(JSlider slider)
Creates an instance of the class.
|
Modifier and Type | Method and Description |
---|---|
void |
calculateThumbLocation()
This method assigns appropriate values to the fields x and y of the fields
thumbRect, thumbRect2, defined in the superclass.
|
protected void |
calculateThumbLocation(boolean first,
Rectangle rect)
This method assigns appropriate values to the fields x and y of the rect
argument, so that rect represents the bounding rectangle for the specified
knob (the first one, if first is true, otherwise the second one).
|
void |
calculateThumbSize()
This method assigns appropriate values to the width and height fields of
the fields thumbRect and thumbRect2 defined in the superclass.
|
void |
calculateTrackBuffer()
This method assigns appropriate values to the field trackBuffer defined in
the superclass.
|
protected PropertyChangeListener |
createPropertyChangeListener(JSlider slider)
This method returns an instance of the inner class PropertyChangeHandler2
that is related to this instance
|
protected BasicSliderUI.TrackListener |
createTrackListener(JSlider slider)
This method returns an instance of the inner class TrackListener2 that is
related to this instance.
|
static ComponentUI |
createUI(JComponent c)
This method assumes that the parameter is an instance of IlvDoubleSlider
and returns an instance of IlvDoubleSliderUI.
|
createChangeListener, getThumbSize, getTickLength, paint, paintThumb, paintThumb, paintTrack, paintTriangle, setSliderFixed
calculateContentRect, calculateFocusRect, calculateGeometry, calculateLabelRect, calculateTickRect, calculateTrackRect, createComponentListener, createFocusListener, createScrollListener, drawInverted, getBaseline, getBaselineResizeBehavior, getFocusColor, getHeightOfHighValueLabel, getHeightOfLowValueLabel, getHeightOfTallestLabel, getHighestValue, getHighestValueLabel, getHighlightColor, getLowestValue, getLowestValueLabel, getMaximumSize, getMinimumHorizontalSize, getMinimumSize, getMinimumVerticalSize, getPreferredHorizontalSize, getPreferredSize, getPreferredVerticalSize, getShadowColor, getWidthOfHighValueLabel, getWidthOfLowValueLabel, getWidthOfWidestLabel, installDefaults, installKeyboardActions, installListeners, installUI, isDragging, labelsHaveSameBaselines, paintFocus, paintHorizontalLabel, paintLabels, paintMajorTickForHorizSlider, paintMajorTickForVertSlider, paintMinorTickForHorizSlider, paintMinorTickForVertSlider, paintTicks, paintVerticalLabel, recalculateIfInsetsChanged, recalculateIfOrientationChanged, scrollByBlock, scrollByUnit, scrollDueToClickInTrack, setThumbLocation, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, valueForXPosition, valueForYPosition, xPositionForValue, yPositionForValue, yPositionForValue
contains, getAccessibleChild, getAccessibleChildrenCount, update
public IlvDoubleSliderUI(JSlider slider)
slider
- This is used to initialize the super class.public static ComponentUI createUI(JComponent c)
c
- Instance of IlvDoubleSlider.public void calculateThumbSize()
calculateThumbSize
in class ilog.views.chart.swing.internal.IlvBasicDoubleSliderUI
public void calculateTrackBuffer()
calculateTrackBuffer
in class ilog.views.chart.swing.internal.IlvBasicDoubleSliderUI
public void calculateThumbLocation()
calculateThumbLocation
in class ilog.views.chart.swing.internal.IlvBasicDoubleSliderUI
protected void calculateThumbLocation(boolean first, Rectangle rect)
calculateThumbLocation
in class ilog.views.chart.swing.internal.IlvBasicDoubleSliderUI
first
- If true values are assigned to first rectangle or otherwise
the second one.rect
- The rectangle parameter.protected PropertyChangeListener createPropertyChangeListener(JSlider slider)
createPropertyChangeListener
in class ilog.views.chart.swing.internal.IlvBasicDoubleSliderUI
slider
- Instance of JSlider.protected BasicSliderUI.TrackListener createTrackListener(JSlider slider)
createTrackListener
in class BasicSliderUI
slider
- Double slider.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.