Save This Page
Home » openjdk-7 » javax » swing » plaf » synth » [javadoc | source]
public class: SynthScrollBarUI [javadoc | source]

All Implemented Interfaces:
    SynthUI, PropertyChangeListener, LayoutManager, SwingConstants

Provides the Synth L&F UI delegate for javax.swing.JScrollBar .
Fields inherited from javax.swing.plaf.basic.BasicScrollBarUI:
minimumThumbSize,  maximumThumbSize,  thumbHighlightColor,  thumbLightShadowColor,  thumbDarkShadowColor,  thumbColor,  trackColor,  trackHighlightColor,  scrollbar,  incrButton,  decrButton,  isDragging,  trackListener,  buttonListener,  modelListener,  thumbRect,  trackRect,  trackHighlight,  NO_HIGHLIGHT,  DECREASE_HIGHLIGHT,  INCREASE_HIGHLIGHT,  scrollListener,  propertyChangeListener,  scrollTimer,  scrollBarWidth,  incrGap,  decrGap
Method from javax.swing.plaf.synth.SynthScrollBarUI Summary:
configureScrollBarColors,   createDecreaseButton,   createIncreaseButton,   createUI,   getContext,   getMinimumThumbSize,   getPreferredSize,   getSupportsAbsolutePositioning,   installDefaults,   installListeners,   paint,   paint,   paintBorder,   paintThumb,   paintTrack,   propertyChange,   setThumbRollover,   uninstallDefaults,   uninstallListeners,   update
Methods from javax.swing.plaf.basic.BasicScrollBarUI:
addLayoutComponent,   configureScrollBarColors,   createArrowButtonListener,   createDecreaseButton,   createIncreaseButton,   createModelListener,   createPropertyChangeListener,   createScrollListener,   createTrackListener,   createUI,   getMaximumSize,   getMaximumThumbSize,   getMinimumThumbSize,   getPreferredSize,   getSupportsAbsolutePositioning,   getThumbBounds,   getTrackBounds,   installComponents,   installDefaults,   installKeyboardActions,   installListeners,   installUI,   isThumbRollover,   layoutContainer,   layoutHScrollbar,   layoutVScrollbar,   loadActionMap,   minimumLayoutSize,   paint,   paintDecreaseHighlight,   paintIncreaseHighlight,   paintThumb,   paintTrack,   preferredLayoutSize,   removeLayoutComponent,   scrollByBlock,   scrollByBlock,   scrollByUnit,   scrollByUnits,   setThumbBounds,   setThumbRollover,   uninstallComponents,   uninstallDefaults,   uninstallKeyboardActions,   uninstallListeners,   uninstallUI
Methods from javax.swing.plaf.ComponentUI:
contains,   createUI,   getAccessibleChild,   getAccessibleChildrenCount,   getBaseline,   getBaselineResizeBehavior,   getMaximumSize,   getMinimumSize,   getPreferredSize,   installUI,   paint,   uninstallUI,   update
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.plaf.synth.SynthScrollBarUI Detail:
 protected  void configureScrollBarColors() 
 protected JButton createDecreaseButton(int orientation) 
 protected JButton createIncreaseButton(int orientation) 
 public static ComponentUI createUI(JComponent c) 
 public SynthContext getContext(JComponent c) 
 protected Dimension getMinimumThumbSize() 
 public Dimension getPreferredSize(JComponent c) 
    A vertical scrollbar's preferred width is the maximum of preferred widths of the (non null) increment/decrement buttons, and the minimum width of the thumb. The preferred height is the sum of the preferred heights of the same parts. The basis for the preferred size of a horizontal scrollbar is similar.

    The preferredSize is only computed once, subsequent calls to this method just return a cached size.

 public boolean getSupportsAbsolutePositioning() 
 protected  void installDefaults() 
 protected  void installListeners() 
 public  void paint(Graphics g,
    JComponent c) 
    Paints the specified component according to the Look and Feel.

    This method is not used by Synth Look and Feel. Painting is handled by the #paint(SynthContext,Graphics) method.

 protected  void paint(SynthContext context,
    Graphics g) 
    Paints the specified component.
 public  void paintBorder(SynthContext context,
    Graphics g,
    int x,
    int y,
    int w,
    int h) 
 protected  void paintThumb(SynthContext context,
    Graphics g,
    Rectangle thumbBounds) 
    Paints the scrollbar thumb.
 protected  void paintTrack(SynthContext context,
    Graphics g,
    Rectangle trackBounds) 
    Paints the scrollbar track.
 public  void propertyChange(PropertyChangeEvent e) 
 protected  void setThumbRollover(boolean active) 
 protected  void uninstallDefaults() 
 protected  void uninstallListeners() 
 public  void update(Graphics g,
    JComponent c) 
    Notifies this UI delegate to repaint the specified component. This method paints the component background, then calls the #paint(SynthContext,Graphics) method.

    In general, this method does not need to be overridden by subclasses. All Look and Feel rendering code should reside in the {@code paint} method.