All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.basic.BasicSliderUI

java.lang.Object
   |
   +----com.sun.java.swing.plaf.ComponentUI
           |
           +----com.sun.java.swing.plaf.SliderUI
                   |
                   +----com.sun.java.swing.basic.BasicSliderUI

public class BasicSliderUI
extends SliderUI
implements Serializable
A Basic L&F implementation of SliderUI.


Variable Index

 o defaultInsets
 o focusListener
 o isDragging
 o modelListener
 o scrollbarTrack
 o scrollListener
 o scrollTimer
 o sizeListener
 o slider
 o thumbRect
 o trackListener

Constructor Index

 o BasicSliderUI(JSlider)

Method Index

 o calculateThumbBounds()
 o createUI(JComponent)
 o getMaximumSize(JComponent)
 o getMinimumSize(JComponent)
 o getPreferredSize(JComponent)
 o getThumbRect()
 o getTickSize()
 o installUI(JComponent)
 o paint(Graphics, JComponent)
 o paintKnob(Graphics, JComponent, Rectangle)
 o paintTicks(Graphics, JComponent, Rectangle)
 o paintTray(Graphics, JComponent, Rectangle)
 o scrollByBlock(int)
 o scrollByUnit(int)
 o scrollTickRect()
 o scrollTrayRect()
 o setThumbBounds(int, int, int, int)
 o setThumbLocation(int, int)
 o uninstallUI(JComponent)
 o xPositionForValue(int)
 o yPositionForValue(int)

Variables

 o slider
 protected JSlider slider
 o isDragging
 protected transient boolean isDragging
 o trackListener
 protected BasicSliderUI. TrackListener trackListener
 o modelListener
 protected BasicSliderUI. ModelListener modelListener
 o sizeListener
 protected BasicSliderUI. SizingListener sizeListener
 o focusListener
 protected BasicSliderUI. FListener focusListener
 o thumbRect
 protected Rectangle thumbRect
 o scrollbarTrack
 protected static final Color scrollbarTrack
 o scrollListener
 protected BasicSliderUI. ScrollListener scrollListener
 o scrollTimer
 protected Timer scrollTimer
 o defaultInsets
 protected static final Insets defaultInsets

Constructors

 o BasicSliderUI
 public BasicSliderUI(JSlider b)

Methods

 o createUI
 public static ComponentUI createUI(JComponent b)
 o installUI
 public void installUI(JComponent c)
Overrides:
installUI in class ComponentUI
 o uninstallUI
 public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class ComponentUI
 o getPreferredSize
 public Dimension getPreferredSize(JComponent x)
Overrides:
getPreferredSize in class ComponentUI
 o getMinimumSize
 public Dimension getMinimumSize(JComponent x)
Overrides:
getMinimumSize in class ComponentUI
 o getMaximumSize
 public Dimension getMaximumSize(JComponent x)
Overrides:
getMaximumSize in class ComponentUI
 o scrollTrayRect
 public Rectangle scrollTrayRect()
 o scrollTickRect
 public Rectangle scrollTickRect()
 o getTickSize
 public int getTickSize()
 o paint
 public void paint(Graphics g,
                   JComponent c)
Overrides:
paint in class ComponentUI
 o paintTray
 public void paintTray(Graphics g,
                       JComponent c,
                       Rectangle trayBounds)
 o paintTicks
 public void paintTicks(Graphics g,
                        JComponent c,
                        Rectangle tickBounds)
 o paintKnob
 public void paintKnob(Graphics g,
                       JComponent c,
                       Rectangle knobBounds)
 o setThumbBounds
 public void setThumbBounds(int x,
                            int y,
                            int width,
                            int height)
 o setThumbLocation
 public void setThumbLocation(int x,
                              int y)
 o getThumbRect
 public Rectangle getThumbRect()
 o scrollByBlock
 public void scrollByBlock(int direction)
 o scrollByUnit
 public void scrollByUnit(int direction)
 o xPositionForValue
 protected int xPositionForValue(int randomValue)
 o yPositionForValue
 protected int yPositionForValue(int randomValue)
 o calculateThumbBounds
 public void calculateThumbBounds()

All Packages  Class Hierarchy  This Package  Previous  Next  Index