|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--DoubleSlider
Basic double-ended slider for Swing.
Inner classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Field Summary | |
static int |
HORIZONTAL
Orientations |
static int |
VERTICAL
Orientations |
Fields inherited from class javax.swing.JComponent |
accessibleContext,
listenerList,
TOOL_TIP_TEXT_KEY,
ui,
UNDEFINED_CONDITION,
WHEN_ANCESTOR_OF_FOCUSED_COMPONENT,
WHEN_FOCUSED,
WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
DoubleSlider()
Construct a default DoubleSlider with minimum 0.0 and maximum 100.0, oriented HORIZONTALly |
|
DoubleSlider(int orientation,
double minValue,
double maxValue)
Construct a DoubleSlider with given minimum, maximum and orientation |
Method Summary | |
void |
addAdjustmentListener(DoubleSliderAdjustmentListener i)
Add a DoubleSliderAdjustmentListener to listen for adjustment events |
double |
getAbsoluteMaximum()
Get the current absolute maximum value |
double |
getAbsoluteMinimum()
Get the current absolute minimum value |
double |
getHilitedMaximum()
Get the current hilited maximum value |
double |
getHilitedMinimum()
Get the current hilited minimum value |
boolean |
getHiliteVisible()
Determine whether or not the hilited range is currently marked |
double |
getSelectedMaximum()
Get the current selected maximum value |
double |
getSelectedMinimum()
Get the current selected maximum value |
java.awt.Color |
getTrackColor()
Get the current color for the track |
boolean |
isTrackingDrag()
Check whether the user is currently dragging the slider. |
void |
removeAdjustmentListener(DoubleSliderAdjustmentListener i)
Remove the given DoubleSliderAdjustmentListener from the list of event listeners |
void |
setAbsoluteMaximum(double max)
Set the maximum possible value |
void |
setAbsoluteMinimum(double min)
Set the minimum possible value |
void |
setAbsoluteRange(double min,
double max)
Set the maximum possible range |
void |
setHilitedMaximum(double max)
Set the maximum hilited value |
void |
setHilitedMinimum(double min)
Set the minimum hilited value |
void |
setHilitedRange(double min,
double max)
Set the hilited range |
void |
setHiliteVisible(boolean visible)
Set the marking status of the hilited range |
void |
setSelectedMaximum(double max)
Set the maximum selected value |
void |
setSelectedMinimum(double min)
Set the minimum selected value |
void |
setSelectedRange(double min,
double max)
Set the selected range |
void |
setTrackColor(java.awt.Color c)
Set the current color for the track |
void |
setTrackNotificationThrottle(long i)
Set the time interval between consecutive DoubleSliderAdjustmentListener notifications whilst tracking a drag. |
void |
setValues(double absMin,
double absMax,
double selectedMin,
double selectedMax)
Set the maximum possible range and selected range all together |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext,
getUIClassID,
paramString,
updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener,
addNotify,
addPropertyChangeListener,
addVetoableChangeListener,
computeVisibleRect,
contains,
createToolTip,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
fireVetoableChange,
getActionForKeyStroke,
getAlignmentX,
getAlignmentY,
getAutoscrolls,
getBorder,
getBounds,
getClientProperty,
getComponentGraphics,
getConditionForKeyStroke,
getDebugGraphicsOptions,
getGraphics,
getHeight,
getInsets,
getInsets,
getLocation,
getMaximumSize,
getMinimumSize,
getNextFocusableComponent,
getPreferredSize,
getRegisteredKeyStrokes,
getRootPane,
getSize,
getToolTipLocation,
getToolTipText,
getToolTipText,
getTopLevelAncestor,
getVisibleRect,
getWidth,
getX,
getY,
grabFocus,
hasFocus,
isDoubleBuffered,
isFocusCycleRoot,
isFocusTraversable,
isLightweightComponent,
isManagingFocus,
isOpaque,
isOptimizedDrawingEnabled,
isPaintingTile,
isRequestFocusEnabled,
isValidateRoot,
paint,
paintBorder,
paintChildren,
paintComponent,
paintImmediately,
paintImmediately,
processComponentKeyEvent,
processFocusEvent,
processKeyEvent,
processMouseMotionEvent,
putClientProperty,
registerKeyboardAction,
registerKeyboardAction,
removeAncestorListener,
removeNotify,
removePropertyChangeListener,
removeVetoableChangeListener,
repaint,
repaint,
requestDefaultFocus,
requestFocus,
resetKeyboardActions,
reshape,
revalidate,
scrollRectToVisible,
setAlignmentX,
setAlignmentY,
setAutoscrolls,
setBackground,
setBorder,
setDebugGraphicsOptions,
setDoubleBuffered,
setEnabled,
setFont,
setForeground,
setMaximumSize,
setMinimumSize,
setNextFocusableComponent,
setOpaque,
setPreferredSize,
setRequestFocusEnabled,
setToolTipText,
setUI,
setVisible,
unregisterKeyboardAction,
update |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setLayout,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
getBackground,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getToolkit,
getTreeLock,
gotFocus,
handleEvent,
hide,
imageUpdate,
inside,
isDisplayable,
isEnabled,
isLightweight,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
postEvent,
prepareImage,
prepareImage,
printAll,
processComponentEvent,
processInputMethodEvent,
processMouseEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
resize,
resize,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
show,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int HORIZONTAL
public static final int VERTICAL
Constructor Detail |
public DoubleSlider()
public DoubleSlider(int orientation, double minValue, double maxValue)
orientation
- HORIZONTAL or VERTICALminValue
- The minimum valuemaxValue
- The maximum valueMethod Detail |
public boolean isTrackingDrag()
public void addAdjustmentListener(DoubleSliderAdjustmentListener i)
i
- the listener to addpublic void removeAdjustmentListener(DoubleSliderAdjustmentListener i)
i
- the listener to removepublic void setTrackNotificationThrottle(long i)
i
- the new interval in millisecondspublic double getHilitedMinimum()
public double getHilitedMaximum()
public double getSelectedMinimum()
public double getSelectedMaximum()
public double getAbsoluteMinimum()
public double getAbsoluteMaximum()
public void setHilitedMinimum(double min)
min
- the new minimum hilited valuepublic void setHilitedMaximum(double max)
max
- the new maximum hilited valuepublic void setHilitedRange(double min, double max)
min
- the new minimum hilited valuemax
- the new maximum hilited valuepublic boolean getHiliteVisible()
public void setHiliteVisible(boolean visible)
visible
- the new marking statuspublic void setSelectedMinimum(double min)
min
- the new minimum selected valuepublic void setSelectedMaximum(double max)
max
- the new maximum selected valuepublic void setSelectedRange(double min, double max)
min
- the new minimum selected valuemax
- the new maximum selected valuepublic void setAbsoluteMinimum(double min)
min
- the new minimum possible valuepublic void setAbsoluteMaximum(double max)
max
- the new maximum possible valuepublic void setAbsoluteRange(double min, double max)
min
- the new minimum possible valuemax
- the new maximum possible valuepublic void setValues(double absMin, double absMax, double selectedMin, double selectedMax)
absMin
- the new minimum possible valueabsMax
- the new maximum possible valueselectedMin
- the new minimum selected valueselectedMax
- the new maximum selected valuepublic java.awt.Color getTrackColor()
public void setTrackColor(java.awt.Color c)
c
- the new color
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |