public class RangeComponent extends javax.swing.JPanel implements javax.swing.event.ChangeListener
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
RangeComponent() |
RangeComponent(double min,
double max,
double step) |
RangeComponent(int orientation) |
RangeComponent(int orientation,
double min,
double max,
double step) |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener listener) |
double |
getHigh()
Get the higher range value.
|
javax.swing.SpinnerNumberModel |
getHighModel() |
javax.swing.JSpinner |
getHighSpinner() |
double |
getLow()
Get the lower range value.
|
javax.swing.SpinnerNumberModel |
getLowModel() |
javax.swing.JSpinner |
getLowSpinner() |
double |
getMax()
Get range minimum value.
|
double |
getMin()
Get range minimum value.
|
RangeSlider |
getSlider() |
double |
getStep()
Get range step value.
|
boolean |
isInteger()
Return true if the range use integer number
|
void |
removeChangeListener(javax.swing.event.ChangeListener listener) |
void |
setEnabled(boolean enabled) |
void |
setHigh(double value)
Set the higher range value.
|
void |
setLow(double value)
Set the lower range value.
|
void |
setLowHigh(double low,
double high)
Set the lower and higher range value.
|
void |
setMax(double value)
Set range maximum value.
|
void |
setMin(double value)
Set range minimum value.
|
void |
setMinMax(double min,
double max)
Set range bounds value.
|
void |
setMinMaxStep(double min,
double max,
double step)
Set range bounds and step value.
|
void |
setSliderVisible(boolean value)
Set slider visible or not.
|
void |
setStep(double value)
Set range step value.
|
void |
setToolTipText(java.lang.String text) |
void |
stateChanged(javax.swing.event.ChangeEvent e) |
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, 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, 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, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public RangeComponent(int orientation, double min, double max, double step)
public RangeComponent(double min, double max, double step)
public RangeComponent(int orientation)
public RangeComponent()
public javax.swing.JSpinner getLowSpinner()
public javax.swing.JSpinner getHighSpinner()
public RangeSlider getSlider()
public javax.swing.SpinnerNumberModel getLowModel()
public javax.swing.SpinnerNumberModel getHighModel()
public void setLowHigh(double low, double high)
setLow(double)
,
setHigh(double)
,
setMin(double)
,
setMax(double)
public void setLow(double value)
setHigh(double)
,
setMin(double)
public void setHigh(double value)
setLow(double)
,
setMax(double)
public boolean isInteger()
public void setMinMaxStep(double min, double max, double step)
setMin(double)
,
setMax(double)
,
setStep(double)
public void setMinMax(double min, double max)
setMin(double)
,
setMax(double)
,
setLow(double)
,
setHigh(double)
public void setMin(double value)
setMax(double)
,
setLow(double)
public void setMax(double value)
setMin(double)
,
setHigh(double)
public void setStep(double value)
setMin(double)
,
setMax(double)
public void setSliderVisible(boolean value)
public void setToolTipText(java.lang.String text)
setToolTipText
in class javax.swing.JComponent
public void setEnabled(boolean enabled)
setEnabled
in class javax.swing.JComponent
public void addChangeListener(javax.swing.event.ChangeListener listener)
public void removeChangeListener(javax.swing.event.ChangeListener listener)
public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener