All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.basic.BasicScrollBarUI

java.lang.Object
   |
   +----com.sun.java.swing.plaf.ComponentUI
           |
           +----com.sun.java.swing.plaf.ScrollBarUI
                   |
                   +----com.sun.java.swing.basic.BasicScrollBarUI

public class BasicScrollBarUI
extends ScrollBarUI
implements LayoutManager, Serializable
Implementation of ScrollBarUI for the Basic Look and Feel


Variable Index

 o buttonListener
 o decrButton
 o DECREASE_HIGHLIGHT
 o incrButton
 o INCREASE_HIGHLIGHT
 o isDragging
 o modelListener
 o NO_HIGHLIGHT
 o scrollbar
 o scrollbarTrack
 o scrollListener
 o scrollTimer
 o thumbRect
 o trackListener
 o trayHighlight

Constructor Index

 o BasicScrollBarUI(JScrollBar)

Method Index

 o addLayoutComponent(String, Component)
 o createDecreaseButton(int)
Returns the view that represents the decrease view.
 o createIncreaseButton(int)
Returns the view that represents the increase view.
 o createUI(JComponent)
 o decrementButton()
 o getMaximumSize(JComponent)
 o getMaximumThumbSize()
 o getMinimumSize(JComponent)
 o getMinimumThumbSize()
 o getPreferredSize(JComponent)
 o getThumbRect()
 o incrementButton()
 o installUI(JComponent)
 o layoutContainer(Container)
 o layoutHScrollbar(JScrollBar)
 o layoutVScrollbar(JScrollBar)
 o minimumLayoutSize(Container)
 o paint(Graphics, JComponent)
 o paintDecreaseHighlight(Graphics)
 o paintIncreaseHighlight(Graphics)
 o paintKnob(Graphics, JComponent, Rectangle)
 o paintTray(Graphics, JComponent, Rectangle)
 o preferredLayoutSize(Container)
 o removeLayoutComponent(Component)
 o scrollByBlock(int)
 o scrollByUnit(int)
 o scrollTrayRect()
 o setThumbRectBounds(int, int, int, int)
 o uninstallUI(JComponent)

Variables

 o scrollbar
 protected JScrollBar scrollbar
 o incrButton
 protected JButton incrButton
 o decrButton
 protected JButton decrButton
 o isDragging
 protected boolean isDragging
 o trackListener
 protected BasicScrollBarUI. TrackListener trackListener
 o buttonListener
 protected BasicScrollBarUI. ArrowButtonListener buttonListener
 o modelListener
 protected BasicScrollBarUI. ModelListener modelListener
 o thumbRect
 protected Rectangle thumbRect
 o trayHighlight
 protected int trayHighlight
 o NO_HIGHLIGHT
 protected static final int NO_HIGHLIGHT
 o DECREASE_HIGHLIGHT
 protected static final int DECREASE_HIGHLIGHT
 o INCREASE_HIGHLIGHT
 protected static final int INCREASE_HIGHLIGHT
 o scrollbarTrack
 protected static final Color scrollbarTrack
 o scrollListener
 protected BasicScrollBarUI. ScrollListener scrollListener
 o scrollTimer
 protected Timer scrollTimer

Constructors

 o BasicScrollBarUI
 public BasicScrollBarUI(JScrollBar 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 paint
 public void paint(Graphics g,
                   JComponent c)
Overrides:
paint 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 decrementButton
 protected JButton decrementButton()
 o incrementButton
 protected JButton incrementButton()
 o createDecreaseButton
 protected JButton createDecreaseButton(int orientation)
Returns the view that represents the decrease view.

 o createIncreaseButton
 protected JButton createIncreaseButton(int orientation)
Returns the view that represents the increase view.

 o paintDecreaseHighlight
 public void paintDecreaseHighlight(Graphics g)
 o paintIncreaseHighlight
 public void paintIncreaseHighlight(Graphics g)
 o paintTray
 public void paintTray(Graphics g,
                       JComponent c,
                       Rectangle trayBounds)
 o scrollTrayRect
 public Rectangle scrollTrayRect()
 o paintKnob
 public void paintKnob(Graphics g,
                       JComponent c,
                       Rectangle knobBounds)
 o getMinimumThumbSize
 protected Dimension getMinimumThumbSize()
 o getMaximumThumbSize
 protected Dimension getMaximumThumbSize()
 o addLayoutComponent
 public void addLayoutComponent(String name,
                                Component comp)
 o removeLayoutComponent
 public void removeLayoutComponent(Component comp)
 o preferredLayoutSize
 public Dimension preferredLayoutSize(Container scrollbarContainer)
 o minimumLayoutSize
 public Dimension minimumLayoutSize(Container scrollbarContainer)
 o layoutVScrollbar
 protected void layoutVScrollbar(JScrollBar sb)
 o layoutHScrollbar
 protected void layoutHScrollbar(JScrollBar sb)
 o layoutContainer
 public void layoutContainer(Container scrollbarContainer)
 o setThumbRectBounds
 public void setThumbRectBounds(int x,
                                int y,
                                int width,
                                int height)
 o getThumbRect
 public Rectangle getThumbRect()
 o scrollByBlock
 public void scrollByBlock(int direction)
 o scrollByUnit
 public void scrollByUnit(int direction)

All Packages  Class Hierarchy  This Package  Previous  Next  Index