Groovy Documentation

eu.hansolo.custom
[Java] Class RangeSlider

java.lang.Object
  java.awt.Component
      java.awt.Container
          javax.swing.JComponent
              javax.swing.JSlider
                  eu.hansolo.custom.RangeSlider

public class RangeSlider
extends JSlider

Authors:
Gerrit Grunwald


Nested Class Summary
static enum RangeSlider.ThumbDesign

static enum RangeSlider.ThumbShape

static enum RangeSlider.TrackWidth

 
Field Summary
private boolean darkTrack

private int lowerValue

private Color rangeColor

private boolean rangeSelectionEnabled

private boolean rangeVisible

private RangeSlider.ThumbDesign thumbDesign

@author Gerrit Grunwald

private RangeSlider.ThumbShape thumbShape

@author Gerrit Grunwald

private RangeSlider.TrackWidth trackWidth

@author Gerrit Grunwald

private int upperValue

 
Fields inherited from class JSlider
CENTER, TOP, LEFT, BOTTOM, RIGHT, NORTH, NORTH_EAST, EAST, SOUTH_EAST, SOUTH, SOUTH_WEST, WEST, NORTH_WEST, HORIZONTAL, VERTICAL, LEADING, TRAILING, NEXT, PREVIOUS, WHEN_FOCUSED, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_WINDOW, UNDEFINED_CONDITION, TOOL_TIP_TEXT_KEY, TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORT
 
Fields inherited from class JComponent
WHEN_FOCUSED, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_WINDOW, UNDEFINED_CONDITION, TOOL_TIP_TEXT_KEY, TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORT
 
Constructor Summary
RangeSlider()

RangeSlider(int min, int max)

 
Method Summary
int getLowerValue()

Color getRangeColor()

RangeSlider.ThumbDesign getThumbDesign()

RangeSlider.ThumbShape getThumbShape()

RangeSlider.TrackWidth getTrackWidth()

int getUpperValue()

int getValue()

private void initSlider()

boolean isDarkTrack()

boolean isRangeSelectionEnabled()

boolean isRangeVisible()

void setDarkTrack(boolean DARK_TRACK)

void setLowerValue(int LOWER_VALUE)

void setOrientation(int orientation)

void setRangeColor(Color RANGE_COLOR)

void setRangeSelectionEnabled(boolean RANGE_SELECTION_ENABLED)

void setRangeVisible(boolean RANGE_VISIBLE)

void setThumbDesign(RangeSlider.ThumbDesign THUMB_DESIGN)

void setThumbShape(RangeSlider.ThumbShape THUMB_SHAPE)

void setTrackWidth(RangeSlider.TrackWidth TRACK_DESIGN)

void setUpperValue(int UPPER_VALUE)

void setValue(int value)

void updateUI()

RangeSlider valueOf(String name)

Returns the enum constant of this type with the specified name.

RangeSlider valueOf(String name)

Returns the enum constant of this type with the specified name.

RangeSlider valueOf(String name)

Returns the enum constant of this type with the specified name.

RangeSlider[] values()

Returns an array containing the constants of this enum type, in the order they are declared.

RangeSlider[] values()

Returns an array containing the constants of this enum type, in the order they are declared.

RangeSlider[] values()

Returns an array containing the constants of this enum type, in the order they are declared.

 
Methods inherited from class JSlider
getValue, setValue, setFont, getAccessibleContext, setUI, updateUI, getUIClassID, getUI, setModel, getModel, addChangeListener, removeChangeListener, getChangeListeners, getOrientation, setOrientation, getMinimum, getMaximum, getValueIsAdjusting, setMinimum, setMaximum, setValueIsAdjusting, getExtent, setExtent, getLabelTable, setLabelTable, createStandardLabels, createStandardLabels, getInverted, setInverted, getMajorTickSpacing, setMajorTickSpacing, getMinorTickSpacing, setMinorTickSpacing, getSnapToTicks, setSnapToTicks, getPaintTicks, setPaintTicks, getPaintTrack, setPaintTrack, getPaintLabels, setPaintLabels, contains, getLocation, print, getSize, isOpaque, enable, disable, update, getY, getX, getInsets, getInsets, getPreferredSize, getMinimumSize, getMaximumSize, getAlignmentX, getAlignmentY, paint, getListeners, addNotify, removeNotify, setFocusTraversalKeys, requestFocus, requestFocus, firePropertyChange, firePropertyChange, firePropertyChange, setEnabled, isDoubleBuffered, setVisible, setForeground, setBackground, getBounds, reshape, getWidth, getHeight, setPreferredSize, setMinimumSize, setMaximumSize, getBaseline, getBaselineResizeBehavior, getGraphics, getFontMetrics, repaint, repaint, printAll, requestFocusInWindow, addAncestorListener, setInheritsPopupMenu, getInheritsPopupMenu, setComponentPopupMenu, getComponentPopupMenu, isPaintingTile, isPaintingForPrint, isManagingFocus, setNextFocusableComponent, getNextFocusableComponent, setRequestFocusEnabled, isRequestFocusEnabled, grabFocus, setVerifyInputWhenFocusTarget, getVerifyInputWhenFocusTarget, setBorder, getBorder, setAlignmentY, setAlignmentX, setInputVerifier, getInputVerifier, setDebugGraphicsOptions, getDebugGraphicsOptions, registerKeyboardAction, registerKeyboardAction, unregisterKeyboardAction, getRegisteredKeyStrokes, getConditionForKeyStroke, getActionForKeyStroke, resetKeyboardActions, setInputMap, getInputMap, getInputMap, setActionMap, getActionMap, requestDefaultFocus, getDefaultLocale, setDefaultLocale, setToolTipText, getToolTipText, getToolTipText, getToolTipLocation, getPopupLocation, createToolTip, scrollRectToVisible, setAutoscrolls, getAutoscrolls, setTransferHandler, getTransferHandler, getClientProperty, putClientProperty, isLightweightComponent, setOpaque, computeVisibleRect, getVisibleRect, addVetoableChangeListener, removeVetoableChangeListener, getVetoableChangeListeners, getTopLevelAncestor, removeAncestorListener, getAncestorListeners, revalidate, isValidateRoot, isOptimizedDrawingEnabled, paintImmediately, paintImmediately, setDoubleBuffered, getRootPane, add, add, add, add, add, remove, remove, list, list, removeAll, getComponent, invalidate, validate, getComponentCount, countComponents, getComponents, insets, setComponentZOrder, getComponentZOrder, getLayout, setLayout, doLayout, layout, preferredSize, minimumSize, paintComponents, printComponents, addContainerListener, removeContainerListener, getContainerListeners, deliverEvent, getComponentAt, getComponentAt, locate, getMousePosition, findComponentAt, findComponentAt, isAncestorOf, getFocusTraversalKeys, areFocusTraversalKeysSet, isFocusCycleRoot, isFocusCycleRoot, transferFocusBackward, setFocusTraversalPolicy, getFocusTraversalPolicy, isFocusTraversalPolicySet, setFocusCycleRoot, setFocusTraversalPolicyProvider, isFocusTraversalPolicyProvider, transferFocusDownCycle, applyComponentOrientation, addPropertyChangeListener, addPropertyChangeListener, add, toString, getName, contains, size, getParent, getLocation, remove, setName, list, list, list, getSize, resize, resize, setSize, setSize, enable, location, isValid, setLocale, action, getMousePosition, getGraphicsConfiguration, dispatchEvent, isVisible, isEnabled, isDisplayable, isFocusable, getTreeLock, isLightweight, getPeer, isFocusOwner, transferFocus, getFont, isPreferredSizeSet, isMinimumSizeSet, isMaximumSizeSet, isShowing, handleEvent, postEvent, getFocusCycleRootAncestor, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, setDropTarget, getDropTarget, getToolkit, enableInputMethods, show, show, hide, getForeground, isForegroundSet, getBackground, isBackgroundSet, isFontSet, getLocale, getColorModel, getLocationOnScreen, setLocation, setLocation, move, getBounds, bounds, setBounds, setBounds, setCursor, getCursor, isCursorSet, paintAll, repaint, repaint, repaint, imageUpdate, createImage, createImage, createVolatileImage, createVolatileImage, prepareImage, prepareImage, checkImage, checkImage, setIgnoreRepaint, getIgnoreRepaint, inside, addComponentListener, removeComponentListener, getComponentListeners, addFocusListener, removeFocusListener, getFocusListeners, addHierarchyListener, removeHierarchyListener, getHierarchyListeners, addHierarchyBoundsListener, removeHierarchyBoundsListener, getHierarchyBoundsListeners, addKeyListener, removeKeyListener, getKeyListeners, addMouseListener, removeMouseListener, getMouseListeners, addMouseMotionListener, removeMouseMotionListener, getMouseMotionListeners, addMouseWheelListener, removeMouseWheelListener, getMouseWheelListeners, addInputMethodListener, removeInputMethodListener, getInputMethodListeners, getInputMethodRequests, getInputContext, mouseDown, mouseDrag, mouseUp, mouseMove, mouseEnter, mouseExit, keyDown, keyUp, gotFocus, lostFocus, isFocusTraversable, setFocusable, setFocusTraversalKeysEnabled, getFocusTraversalKeysEnabled, nextFocus, transferFocusUpCycle, hasFocus, removePropertyChangeListener, removePropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, setComponentOrientation, getComponentOrientation, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll
 
Methods inherited from class JComponent
contains, getLocation, print, getSize, isOpaque, enable, disable, update, getY, getX, getInsets, getInsets, setFont, getPreferredSize, getMinimumSize, getMaximumSize, getAlignmentX, getAlignmentY, paint, getListeners, addNotify, removeNotify, setFocusTraversalKeys, requestFocus, requestFocus, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, setEnabled, isDoubleBuffered, setVisible, setForeground, setBackground, getBounds, reshape, getWidth, getHeight, setPreferredSize, setMinimumSize, setMaximumSize, getBaseline, getBaselineResizeBehavior, getGraphics, getFontMetrics, repaint, repaint, printAll, requestFocusInWindow, updateUI, getUIClassID, addAncestorListener, setInheritsPopupMenu, getInheritsPopupMenu, setComponentPopupMenu, getComponentPopupMenu, isPaintingTile, isPaintingForPrint, isManagingFocus, setNextFocusableComponent, getNextFocusableComponent, setRequestFocusEnabled, isRequestFocusEnabled, grabFocus, setVerifyInputWhenFocusTarget, getVerifyInputWhenFocusTarget, setBorder, getBorder, setAlignmentY, setAlignmentX, setInputVerifier, getInputVerifier, setDebugGraphicsOptions, getDebugGraphicsOptions, registerKeyboardAction, registerKeyboardAction, unregisterKeyboardAction, getRegisteredKeyStrokes, getConditionForKeyStroke, getActionForKeyStroke, resetKeyboardActions, setInputMap, getInputMap, getInputMap, setActionMap, getActionMap, requestDefaultFocus, getDefaultLocale, setDefaultLocale, setToolTipText, getToolTipText, getToolTipText, getToolTipLocation, getPopupLocation, createToolTip, scrollRectToVisible, setAutoscrolls, getAutoscrolls, setTransferHandler, getTransferHandler, getClientProperty, putClientProperty, isLightweightComponent, setOpaque, computeVisibleRect, getVisibleRect, addVetoableChangeListener, removeVetoableChangeListener, getVetoableChangeListeners, getTopLevelAncestor, removeAncestorListener, getAncestorListeners, revalidate, isValidateRoot, isOptimizedDrawingEnabled, paintImmediately, paintImmediately, setDoubleBuffered, getRootPane, add, add, add, add, add, remove, remove, list, list, removeAll, getComponent, invalidate, validate, getComponentCount, countComponents, getComponents, insets, setComponentZOrder, getComponentZOrder, getLayout, setLayout, doLayout, layout, preferredSize, minimumSize, paintComponents, printComponents, addContainerListener, removeContainerListener, getContainerListeners, deliverEvent, getComponentAt, getComponentAt, locate, getMousePosition, findComponentAt, findComponentAt, isAncestorOf, getFocusTraversalKeys, areFocusTraversalKeysSet, isFocusCycleRoot, isFocusCycleRoot, transferFocusBackward, setFocusTraversalPolicy, getFocusTraversalPolicy, isFocusTraversalPolicySet, setFocusCycleRoot, setFocusTraversalPolicyProvider, isFocusTraversalPolicyProvider, transferFocusDownCycle, applyComponentOrientation, addPropertyChangeListener, addPropertyChangeListener, add, toString, getName, contains, size, getParent, getLocation, remove, setName, list, list, list, getSize, resize, resize, setSize, setSize, enable, location, isValid, setLocale, action, getMousePosition, getGraphicsConfiguration, dispatchEvent, isVisible, isEnabled, isDisplayable, isFocusable, getTreeLock, isLightweight, getPeer, isFocusOwner, transferFocus, getFont, isPreferredSizeSet, isMinimumSizeSet, isMaximumSizeSet, isShowing, handleEvent, postEvent, getFocusCycleRootAncestor, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, setDropTarget, getDropTarget, getToolkit, enableInputMethods, show, show, hide, getForeground, isForegroundSet, getBackground, isBackgroundSet, isFontSet, getLocale, getColorModel, getLocationOnScreen, setLocation, setLocation, move, getBounds, bounds, setBounds, setBounds, setCursor, getCursor, isCursorSet, paintAll, repaint, repaint, repaint, imageUpdate, createImage, createImage, createVolatileImage, createVolatileImage, prepareImage, prepareImage, checkImage, checkImage, setIgnoreRepaint, getIgnoreRepaint, inside, addComponentListener, removeComponentListener, getComponentListeners, addFocusListener, removeFocusListener, getFocusListeners, addHierarchyListener, removeHierarchyListener, getHierarchyListeners, addHierarchyBoundsListener, removeHierarchyBoundsListener, getHierarchyBoundsListeners, addKeyListener, removeKeyListener, getKeyListeners, addMouseListener, removeMouseListener, getMouseListeners, addMouseMotionListener, removeMouseMotionListener, getMouseMotionListeners, addMouseWheelListener, removeMouseWheelListener, getMouseWheelListeners, addInputMethodListener, removeInputMethodListener, getInputMethodListeners, getInputMethodRequests, getInputContext, mouseDown, mouseDrag, mouseUp, mouseMove, mouseEnter, mouseExit, keyDown, keyUp, gotFocus, lostFocus, isFocusTraversable, setFocusable, setFocusTraversalKeysEnabled, getFocusTraversalKeysEnabled, nextFocus, transferFocusUpCycle, hasFocus, removePropertyChangeListener, removePropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, setComponentOrientation, getComponentOrientation, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll
 

Field Detail

darkTrack

private boolean darkTrack


lowerValue

private int lowerValue


rangeColor

private Color rangeColor


rangeSelectionEnabled

private boolean rangeSelectionEnabled


rangeVisible

private boolean rangeVisible


thumbDesign

private RangeSlider.ThumbDesign thumbDesign
Authors:
Gerrit Grunwald


thumbShape

private RangeSlider.ThumbShape thumbShape
Authors:
Gerrit Grunwald


trackWidth

private RangeSlider.TrackWidth trackWidth
Authors:
Gerrit Grunwald


upperValue

private int upperValue


 
Constructor Detail

RangeSlider

public RangeSlider()


RangeSlider

public RangeSlider(int min, int max)


 
Method Detail

getLowerValue

public int getLowerValue()


getRangeColor

public Color getRangeColor()


getThumbDesign

public RangeSlider.ThumbDesign getThumbDesign()


getThumbShape

public RangeSlider.ThumbShape getThumbShape()


getTrackWidth

public RangeSlider.TrackWidth getTrackWidth()


getUpperValue

public int getUpperValue()


getValue

@Override
public int getValue()


initSlider

private void initSlider()


isDarkTrack

public boolean isDarkTrack()


isRangeSelectionEnabled

public boolean isRangeSelectionEnabled()


isRangeVisible

public boolean isRangeVisible()


setDarkTrack

public void setDarkTrack(boolean DARK_TRACK)


setLowerValue

public void setLowerValue(int LOWER_VALUE)


setOrientation

@Override
public void setOrientation(int orientation)


setRangeColor

public void setRangeColor(Color RANGE_COLOR)


setRangeSelectionEnabled

public void setRangeSelectionEnabled(boolean RANGE_SELECTION_ENABLED)


setRangeVisible

public void setRangeVisible(boolean RANGE_VISIBLE)


setThumbDesign

public void setThumbDesign(RangeSlider.ThumbDesign THUMB_DESIGN)


setThumbShape

public void setThumbShape(RangeSlider.ThumbShape THUMB_SHAPE)


setTrackWidth

public void setTrackWidth(RangeSlider.TrackWidth TRACK_DESIGN)


setUpperValue

public void setUpperValue(int UPPER_VALUE)


setValue

@Override
public void setValue(int value)


updateUI

@Override
public void updateUI()


valueOf

RangeSlider valueOf(String name)
Returns the enum constant of this type with the specified name.


valueOf

RangeSlider valueOf(String name)
Returns the enum constant of this type with the specified name.


valueOf

RangeSlider valueOf(String name)
Returns the enum constant of this type with the specified name.


values

RangeSlider[] values()
Returns an array containing the constants of this enum type, in the order they are declared.


values

RangeSlider[] values()
Returns an array containing the constants of this enum type, in the order they are declared.


values

RangeSlider[] values()
Returns an array containing the constants of this enum type, in the order they are declared.


 

Groovy Documentation