API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf.metal. MetalSliderUI View Source
Author(s)
Tom Santos
Since
Version
1.36 11/30/05
Serial
Hierarchy
 Object
      ComponentUI
          SliderUI
              BasicSliderUI
                  MetalSliderUI
Implements
Subclasses
Description
public class MetalSliderUI
  A Java L&F implementation of SliderUI.
See also:   
Constructors
public MetalSliderUI ()
Methods
Hide/Show inherited methods
protected void calculateContentRect () [Inherited From BasicSliderUI]
protected void calculateFocusRect () [Inherited From BasicSliderUI]
protected void calculateGeometry () [Inherited From BasicSliderUI]
protected void calculateLabelRect () [Inherited From BasicSliderUI]
protected void calculateThumbLocation () [Inherited From BasicSliderUI]
protected void calculateThumbSize () [Inherited From BasicSliderUI]
protected void calculateTickRect () [Inherited From BasicSliderUI]
protected void calculateTrackBuffer () [Inherited From BasicSliderUI]
protected void calculateTrackRect () [Inherited From BasicSliderUI]
public boolean contains (JComponent c, int x, int y) [Inherited From ComponentUI]
  Returns true if the specified x,y location is contained within the look and feel's defined shape of the specified component.
protected ChangeListener createChangeListener (JSlider slider) [Inherited From BasicSliderUI]
protected ComponentListener createComponentListener (JSlider slider) [Inherited From BasicSliderUI]
protected FocusListener createFocusListener (JSlider slider) [Inherited From BasicSliderUI]
protected PropertyChangeListener createPropertyChangeListener (JSlider slider) [Overrides BasicSliderUI]
protected ScrollListener createScrollListener (JSlider slider) [Inherited From BasicSliderUI]
protected TrackListener createTrackListener (JSlider slider) [Inherited From BasicSliderUI]
publicstatic ComponentUI createUI (JComponent c) [Overrides BasicSliderUI]
protected boolean drawInverted () [Inherited From BasicSliderUI]
public Accessible getAccessibleChild (JComponent c, int i) [Inherited From ComponentUI]
  Returns the ith Accessible child of the object.
public int getAccessibleChildrenCount (JComponent c) [Inherited From ComponentUI]
  Returns the number of accessible children in the object.
public int getBaseline (JComponent c, int width, int height) [Inherited From BasicSliderUI]
  Returns the baseline.
public BaselineResizeBehavior getBaselineResizeBehavior (JComponent c) [Inherited From BasicSliderUI]
  Returns an enum indicating how the baseline of the component changes as the size changes.
protected Color getFocusColor () [Inherited From BasicSliderUI]
protected int getHeightOfHighValueLabel () [Inherited From BasicSliderUI]
protected int getHeightOfLowValueLabel () [Inherited From BasicSliderUI]
protected int getHeightOfTallestLabel () [Inherited From BasicSliderUI]
protected Integer getHighestValue () [Inherited From BasicSliderUI]
  Returns the biggest value that has an entry in the label table.
protected Component getHighestValueLabel () [Inherited From BasicSliderUI]
  Returns the label that corresponds to the lowest slider value in the label table.
protected Color getHighlightColor () [Inherited From BasicSliderUI]
protected Integer getLowestValue () [Inherited From BasicSliderUI]
  Returns the smallest value that has an entry in the label table.
protected Component getLowestValueLabel () [Inherited From BasicSliderUI]
  Returns the label that corresponds to the highest slider value in the label table.
public Dimension getMaximumSize (JComponent c) [Inherited From BasicSliderUI]
public Dimension getMinimumHorizontalSize () [Inherited From BasicSliderUI]
public Dimension getMinimumSize (JComponent c) [Inherited From BasicSliderUI]
public Dimension getMinimumVerticalSize () [Inherited From BasicSliderUI]
public Dimension getPreferredHorizontalSize () [Inherited From BasicSliderUI]
public Dimension getPreferredSize (JComponent c) [Inherited From BasicSliderUI]
public Dimension getPreferredVerticalSize () [Inherited From BasicSliderUI]
protected Color getShadowColor () [Inherited From BasicSliderUI]
protected int getThumbOverhang ()
Returns the amount that the thumb goes past the slide bar.
protected Dimension getThumbSize () [Overrides BasicSliderUI]
public int getTickLength () [Overrides BasicSliderUI]
  Gets the height of the tick area for horizontal sliders and the width of the tick area for vertical sliders.
protected int getTrackLength ()
  Returns the longer dimension of the slide bar.
protected int getTrackWidth ()
Returns the shorter dimension of the track.
protected int getWidthOfHighValueLabel () [Inherited From BasicSliderUI]
protected int getWidthOfLowValueLabel () [Inherited From BasicSliderUI]
protected int getWidthOfWidestLabel () [Inherited From BasicSliderUI]
protected void installDefaults (JSlider slider) [Inherited From BasicSliderUI]
protected void installKeyboardActions (JSlider slider) [Inherited From BasicSliderUI]
protected void installListeners (JSlider slider) [Inherited From BasicSliderUI]
public void installUI (JComponent c) [Overrides BasicSliderUI]
protected boolean isDragging () [Inherited From BasicSliderUI]
  Returns true if the user is dragging the slider.
protected boolean labelsHaveSameBaselines () [Inherited From BasicSliderUI]
  Returns true if all the labels from the label table have the same baseline.
public void paint (Graphics g, JComponent c) [Inherited From BasicSliderUI]
public void paintFocus (Graphics g) [Overrides BasicSliderUI]
protected void paintHorizontalLabel (Graphics g, int value, Component label) [Inherited From BasicSliderUI]
  Called for every label in the label table.
public void paintLabels (Graphics g) [Inherited From BasicSliderUI]
protected void paintMajorTickForHorizSlider (Graphics g, Rectangle tickBounds, int x) [Overrides BasicSliderUI]
protected void paintMajorTickForVertSlider (Graphics g, Rectangle tickBounds, int y) [Overrides BasicSliderUI]
protected void paintMinorTickForHorizSlider (Graphics g, Rectangle tickBounds, int x) [Overrides BasicSliderUI]
protected void paintMinorTickForVertSlider (Graphics g, Rectangle tickBounds, int y) [Overrides BasicSliderUI]
public void paintThumb (Graphics g) [Overrides BasicSliderUI]
public void paintTicks (Graphics g) [Inherited From BasicSliderUI]
public void paintTrack (Graphics g) [Overrides BasicSliderUI]
protected void paintVerticalLabel (Graphics g, int value, Component label) [Inherited From BasicSliderUI]
  Called for every label in the label table.
protected void recalculateIfInsetsChanged () [Inherited From BasicSliderUI]
protected void recalculateIfOrientationChanged () [Inherited From BasicSliderUI]
public void scrollByBlock (int direction) [Inherited From BasicSliderUI]
public void scrollByUnit (int direction) [Inherited From BasicSliderUI]
protected void scrollDueToClickInTrack (int dir) [Overrides BasicSliderUI]
public void setThumbLocation (int x, int y) [Inherited From BasicSliderUI]
protected void uninstallKeyboardActions (JSlider slider) [Inherited From BasicSliderUI]
protected void uninstallListeners (JSlider slider) [Inherited From BasicSliderUI]
public void uninstallUI (JComponent c) [Inherited From BasicSliderUI]
public void update (Graphics g, JComponent c) [Inherited From ComponentUI]
  Notifies this UI delegate that it's time to paint the specified component.
public int valueForXPosition (int xPos) [Inherited From BasicSliderUI]
  Returns a value give an x position.
public int valueForYPosition (int yPos) [Inherited From BasicSliderUI]
  Returns a value give a y position.
protected int xPositionForValue (int value) [Inherited From BasicSliderUI]
protected int yPositionForValue (int value) [Inherited From BasicSliderUI]
protected int yPositionForValue (int value, int trackY, int trackHeight) [Inherited From BasicSliderUI]
  Returns the y location for the specified value.
Fields
Hide/Show inherited fields
protected ChangeListener changeListener [Inherited From BasicSliderUI]
protected ComponentListener componentListener [Inherited From BasicSliderUI]
protected Rectangle contentRect [Inherited From BasicSliderUI]
protectedstatic Color darkShadowColor
protected boolean filledSlider
protected Insets focusInsets [Inherited From BasicSliderUI]
protected FocusListener focusListener [Inherited From BasicSliderUI]
protected Rectangle focusRect [Inherited From BasicSliderUI]
protectedstatic Color highlightColor
protectedstatic Icon horizThumbIcon
  A default horizontal thumb Icon.
protected Insets insetCache [Inherited From BasicSliderUI]
protected Rectangle labelRect [Inherited From BasicSliderUI]
protected boolean leftToRightCache [Inherited From BasicSliderUI]
publicfinalstatic int MAX_SCROLL = "2" [Inherited From BasicSliderUI]
publicfinalstatic int MIN_SCROLL = "-2" [Inherited From BasicSliderUI]
publicfinalstatic int NEGATIVE_SCROLL = "-1" [Inherited From BasicSliderUI]
publicfinalstatic int POSITIVE_SCROLL = "1" [Inherited From BasicSliderUI]
protected PropertyChangeListener propertyChangeListener [Inherited From BasicSliderUI]
protected ScrollListener scrollListener [Inherited From BasicSliderUI]
protected Timer scrollTimer [Inherited From BasicSliderUI]
protected JSlider slider [Inherited From BasicSliderUI]
protectedfinal String SLIDER_FILL = "JSlider.isFilled"
protectedstatic Color thumbColor
protected Rectangle thumbRect [Inherited From BasicSliderUI]
protectedfinal int TICK_BUFFER = "4"
protectedstatic int tickLength
protected Rectangle tickRect [Inherited From BasicSliderUI]
protected int trackBuffer [Inherited From BasicSliderUI]
protected TrackListener trackListener [Inherited From BasicSliderUI]
protected Rectangle trackRect [Inherited From BasicSliderUI]
protectedstatic int trackWidth
protectedstatic Icon vertThumbIcon
  A default vertical thumb Icon.
Nested Classes
  MetalSliderUI.MetalPropertyListener
  BasicSliderUI.PropertyChangeHandler
  BasicSliderUI.ChangeHandler
Data model listener.
  BasicSliderUI.TrackListener
Track mouse movements.
  BasicSliderUI.ScrollListener
Scroll-event listener.
  BasicSliderUI.ComponentHandler
Listener for resizing events.
  BasicSliderUI.FocusHandler
Focus-change listener.
  BasicSliderUI.ActionScroller
As of Java 2 platform v1.3 this undocumented class is no longer used.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar