public class IlvDoubleSlider extends IlvJSlider
JSlider
variant that lets you modify the value and the extent of a
BoundedRangeModel
.
The following figure shows an horizontal double slider:
value = min
and extent = max-min
.JSlider.AccessibleJSlider
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_THUMB_SIZE
Default value for thumb size.
|
static int |
DEFAULT_TICK_SIZE
Default value for tick size.
|
static int |
DEFAULT_TRACK_SIZE
Default value for track size.
|
changeEvent, changeListener, majorTickSpacing, minorTickSpacing, orientation, sliderModel, snapToTicks
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
IlvDoubleSlider()
Creates an horizontal slider with the range from 0 to 100, an initial value
of 0, and an extent of 100.
|
IlvDoubleSlider(int orientation,
int min,
int max,
int value,
int extent)
Creates a new slider with the specified orientation and initial values.
|
Modifier and Type | Method and Description |
---|---|
String |
getIntervalToolTipText(double lowerBound,
double upperBound)
Returns the tooltip text corresponding to the interval (both thumbs).
|
String |
getLowerBoundToolTipText(double value)
Returns the tooltip text corresponding to the lower bound (left thumb).
|
boolean |
getShowToolTip()
Indicates whether an overlayed window displays the value and the extent
of the model during an interaction.
|
int |
getThumbSize()
Returns the size of the thumb.
|
int |
getTickSize()
Returns the size of tick marks.
|
int |
getTrackSize()
Returns the size of the tracker.
|
String |
getUIClassID()
Returns the name of the look and feel class that renders this component.
|
String |
getUpperBoundToolTipText(double value)
Returns the tooltip text corresponding to the upper bound (right thumb).
|
void |
resetSliderValues()
Resets the slider values.
|
void |
setFont(Font font)
Changes the font used to display tick labels.
|
void |
setLabelTable(Dictionary labels)
Specifies what label will be drawn at any given value.
|
void |
setShowToolTip(boolean value)
Specifies whether an overlayed window should display the value and the extent
of the model during an interaction.
|
void |
setThumbSize(int size)
Sets the size of the thumb.
|
void |
setTickSize(int size)
Sets the size of tick marks.
|
void |
setTrackSize(int size)
Sets the size of the tracker.
|
void |
updateUI()
Resets the UI property to a value from the current look and feel.
|
createStandardLabels, getLocale, getULocale, setLocale, setULocale
addChangeListener, createChangeListener, createStandardLabels, fireStateChanged, getAccessibleContext, getChangeListeners, getExtent, getInverted, getLabelTable, getMajorTickSpacing, getMaximum, getMinimum, getMinorTickSpacing, getModel, getOrientation, getPaintLabels, getPaintTicks, getPaintTrack, getSnapToTicks, getUI, getValue, getValueIsAdjusting, imageUpdate, paramString, removeChangeListener, setExtent, setInverted, setMajorTickSpacing, setMaximum, setMinimum, setMinorTickSpacing, setModel, setOrientation, setPaintLabels, setPaintTicks, setPaintTrack, setSnapToTicks, setUI, setValue, setValueIsAdjusting, updateLabelUIs
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int DEFAULT_TICK_SIZE
setTickSize(int)
,
Constant Field Valuespublic static final int DEFAULT_TRACK_SIZE
setTrackSize(int)
,
Constant Field Valuespublic static final int DEFAULT_THUMB_SIZE
setThumbSize(int)
,
Constant Field Valuespublic IlvDoubleSlider()
public IlvDoubleSlider(int orientation, int min, int max, int value, int extent)
public void updateUI()
public String getUIClassID()
getUIClassID
in class JSlider
public int getTickSize()
public void setTickSize(int size)
public int getTrackSize()
public void setTrackSize(int size)
public int getThumbSize()
public void setThumbSize(int size)
public boolean getShowToolTip()
setShowToolTip(boolean)
public void setShowToolTip(boolean value)
true
.getShowToolTip()
public String getLowerBoundToolTipText(double value)
value
- Usually getValue()
public String getUpperBoundToolTipText(double value)
value
- Usually getValue()+getExtent()
public String getIntervalToolTipText(double lowerBound, double upperBound)
lowerBound
- Usually getValue()
upperBound
- Usually getValue()+getExtent()
public void resetSliderValues()
public void setLabelTable(Dictionary labels)
setLabelTable
in class JSlider
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.