public class RangeSelector
extends javax.swing.JComponent
implements java.awt.event.ComponentListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener
javax.swing.JComponent.AccessibleJComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
RangeSelector()
Initializes a new instance of the
RangeSelector class. |
Modifier and Type | Method and Description |
---|---|
void |
addRangeSelectorListener(RangeSelectorListener listener) |
void |
componentHidden(java.awt.event.ComponentEvent e) |
void |
componentMoved(java.awt.event.ComponentEvent e) |
void |
componentResized(java.awt.event.ComponentEvent e) |
void |
componentShown(java.awt.event.ComponentEvent e) |
protected void |
fireDrawBackground(DrawEvent e) |
protected void |
fireValueChanged(java.util.EventObject e) |
Brush |
getBorderBrush()
Gets the border of the selector.
|
Brush |
getButtonBackgroundBrush()
Gets the brush used to fill the selector buttons when they are in normal state.
|
Brush |
getButtonBackgroundBrushDisabled()
Gets the brush used to fill selector buttons when the selector is disabled.
|
Brush |
getButtonBackgroundBrushDown()
Gets the brush used to fill the selector buttons when they are pressed.
|
Brush |
getButtonBackgroundBrushOver()
Gets the brush used to fill the selector buttons when they are pointed with the mouse.
|
Brush |
getButtonBorderBrush()
Gets the brush used to draw the border of selector buttons.
|
Brush |
getButtonBorderBrushDisabled()
Gets the border brush used to draw the border of selector buttons when the selector is disabled.
|
Brush |
getButtonBorderBrushDown()
Gets the brush used to draw the border of selector buttons when they are pressed.
|
Brush |
getButtonBorderBrushOver()
Gets the brush used to draw the border of selector buttons when they are pointed with the mouse.
|
int |
getButtonBorderThickness()
Gets the border thickness of the selector buttons.
|
double |
getButtonSize()
Gets the size of the buttons.
|
int |
getHeight()
Gets the height of the range selector.
|
boolean |
getIsRightToLeft()
Gets whether the control is right-to-left.
|
double |
getMaximum()
Gets the maximum of the control range.
|
double |
getMinimum()
Gets the minimum of the control range.
|
double |
getMinimumSelectionLength()
Gets the minimum size of the selected range.
|
Brush |
getProjectionBrush()
Gets the brush used to fill the selection projection.
|
Brush |
getScrollBackgroundBrush()
Gets the brush used to fill the scroll background.
|
Brush |
getSelectionBrush()
Gets the brush used to fill the selection.
|
double |
getSelectionEnd()
Gets the end of the selected range.
|
double |
getSelectionStart()
Gets the start of the selected range.
|
double |
getStep()
Gets the step to scroll with when using the buttons.
|
int |
getWidth()
Gets the width of the range selector.
|
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseDragged(java.awt.event.MouseEvent e) |
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mouseMoved(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
void |
paintComponent(java.awt.Graphics e) |
void |
removeRangeSelectorListener(RangeSelectorListener listener) |
void |
setBorderBrush(Brush value)
Sets the border of the selector.
|
void |
setButtonBackgroundBrush(Brush value)
Sets the brush used to fill the selector buttons when they are in normal state.
|
void |
setButtonBackgroundBrushDisabled(Brush value)
Sets the brush used to fill selector buttons when the selector is disabled.
|
void |
setButtonBackgroundBrushDown(Brush value)
Sets the brush used to fill the selector buttons when they are pressed.
|
void |
setButtonBackgroundBrushOver(Brush value)
Sets the brush used to fill the selector buttons when they are pointed with the mouse.
|
void |
setButtonBorderBrush(Brush value)
Sets the brush used to draw the border of selector buttons.
|
void |
setButtonBorderBrushDisabled(Brush value)
Sets the border brush used to draw the border of selector buttons when the selector is disabled.
|
void |
setButtonBorderBrushDown(Brush value)
Sets the brush used to draw the border of selector buttons when they are pressed.
|
void |
setButtonBorderBrushOver(Brush value)
Sets the brush used to draw the border of selector buttons when they are pointed with the mouse.
|
void |
setButtonBorderThickness(int value)
Sets the border thickness of the selector buttons.
|
void |
setButtonSize(int value)
Sets the size of the buttons.
|
void |
setHeight(int value)
Sets the height of the range selector.
|
void |
setMaximum(double value)
Sets the maximum of the control range.
|
void |
setMinimum(double value)
Sets the minimum of the control range.
|
void |
setMinimumSelectionLength(double value)
Sets the minimum size of the selected range.
|
void |
setProjectionBrush(Brush value)
Sets the brush used to fill the selection projection.
|
void |
setScrollBackgroundBrush(Brush value)
Sets the brush used to fill the scroll background.
|
void |
setSelectionBrush(Brush value)
Sets the brush used to fill the selection.
|
void |
setSelectionEnd(double value)
Sets the end of the selected range.
|
void |
setSelectionStart(double value)
Sets the start of the selected range.
|
void |
setStep(double value)
Sets the step to scroll with when using the buttons.
|
void |
setWidth(int value)
Sets the width of the range selector.
|
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, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, 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, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
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, getAccessibleContext, 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, 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, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public RangeSelector()
RangeSelector
class.public void addRangeSelectorListener(RangeSelectorListener listener)
public void removeRangeSelectorListener(RangeSelectorListener listener)
protected void fireValueChanged(java.util.EventObject e)
protected void fireDrawBackground(DrawEvent e)
public void paintComponent(java.awt.Graphics e)
paintComponent
in class javax.swing.JComponent
public void componentResized(java.awt.event.ComponentEvent e)
componentResized
in interface java.awt.event.ComponentListener
public void componentMoved(java.awt.event.ComponentEvent e)
componentMoved
in interface java.awt.event.ComponentListener
public void componentShown(java.awt.event.ComponentEvent e)
componentShown
in interface java.awt.event.ComponentListener
public void componentHidden(java.awt.event.ComponentEvent e)
componentHidden
in interface java.awt.event.ComponentListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public double getMinimum()
public void setMinimum(double value)
public double getMaximum()
public void setMaximum(double value)
public double getSelectionStart()
public void setSelectionStart(double value)
public double getSelectionEnd()
public void setSelectionEnd(double value)
public double getMinimumSelectionLength()
public void setMinimumSelectionLength(double value)
public double getStep()
public void setStep(double value)
public double getButtonSize()
public void setButtonSize(int value)
public int getWidth()
getWidth
in class javax.swing.JComponent
public void setWidth(int value)
public int getHeight()
getHeight
in class javax.swing.JComponent
public void setHeight(int value)
public boolean getIsRightToLeft()
public Brush getBorderBrush()
public void setBorderBrush(Brush value)
public Brush getSelectionBrush()
public void setSelectionBrush(Brush value)
public Brush getProjectionBrush()
public void setProjectionBrush(Brush value)
public Brush getScrollBackgroundBrush()
public void setScrollBackgroundBrush(Brush value)
public int getButtonBorderThickness()
public void setButtonBorderThickness(int value)
public Brush getButtonBorderBrush()
public void setButtonBorderBrush(Brush value)
public Brush getButtonBorderBrushOver()
public void setButtonBorderBrushOver(Brush value)
public Brush getButtonBorderBrushDown()
public void setButtonBorderBrushDown(Brush value)
public Brush getButtonBorderBrushDisabled()
public void setButtonBorderBrushDisabled(Brush value)
public Brush getButtonBackgroundBrush()
public void setButtonBackgroundBrush(Brush value)
public Brush getButtonBackgroundBrushOver()
public void setButtonBackgroundBrushOver(Brush value)
public Brush getButtonBackgroundBrushDown()
public void setButtonBackgroundBrushDown(Brush value)
public Brush getButtonBackgroundBrushDisabled()
public void setButtonBackgroundBrushDisabled(Brush value)