Save This Page
Home » openjdk-7 » javax » swing » plaf » synth » [javadoc | source]
javax.swing.plaf.synth
public class: SynthToolBarUI [javadoc | source]
java.lang.Object
   javax.swing.plaf.ComponentUI
      javax.swing.plaf.ToolBarUI
         javax.swing.plaf.basic.BasicToolBarUI
            javax.swing.plaf.synth.SynthToolBarUI

All Implemented Interfaces:
    SynthUI, PropertyChangeListener, SwingConstants

Provides the Synth L&F UI delegate for javax.swing.JToolBar .
Nested Class Summary:
class  SynthToolBarUI.SynthToolBarLayoutManager   
Fields inherited from javax.swing.plaf.basic.BasicToolBarUI:
toolBar,  dragWindow,  focusedCompIndex,  dockingColor,  floatingColor,  dockingBorderColor,  floatingBorderColor,  dockingListener,  propertyListener,  toolBarContListener,  toolBarFocusListener,  constraintBeforeFloating,  upKey,  downKey,  leftKey,  rightKey
Method from javax.swing.plaf.synth.SynthToolBarUI Summary:
createLayout,   createUI,   getContext,   installComponents,   installDefaults,   installListeners,   paint,   paint,   paintBorder,   paintContent,   paintDragWindow,   propertyChange,   setBorderToNonRollover,   setBorderToNormal,   setBorderToRollover,   uninstallComponents,   uninstallDefaults,   uninstallListeners,   update
Methods from javax.swing.plaf.basic.BasicToolBarUI:
canDock,   createDockingListener,   createDragWindow,   createFloatingFrame,   createFloatingWindow,   createFrameListener,   createNonRolloverBorder,   createPropertyListener,   createRolloverBorder,   createToolBarContListener,   createToolBarFocusListener,   createUI,   dragTo,   floatAt,   getDockingColor,   getFloatingColor,   getInputMap,   getNonRolloverBorder,   getRolloverBorder,   installComponents,   installDefaults,   installKeyboardActions,   installListeners,   installNonRolloverBorders,   installNormalBorders,   installRolloverBorders,   installUI,   isFloating,   isRolloverBorders,   loadActionMap,   navigateFocusedComp,   paintDragWindow,   setBorderToNonRollover,   setBorderToNormal,   setBorderToRollover,   setDockingColor,   setFloating,   setFloatingColor,   setFloatingLocation,   setOrientation,   setRolloverBorders,   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.SynthToolBarUI Detail:
 protected LayoutManager createLayout() 
    Creates a {@code LayoutManager} to use with the toolbar.
 public static ComponentUI createUI(JComponent c) 
    Creates a new UI object for the given component.
 public SynthContext getContext(JComponent c) 
 protected  void installComponents() 
 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 toolbar.
 public  void paintBorder(SynthContext context,
    Graphics g,
    int x,
    int y,
    int w,
    int h) 
 protected  void paintContent(SynthContext context,
    Graphics g,
    Rectangle bounds) 
    Paints the toolbar content.
 protected  void paintDragWindow(Graphics g) 
 public  void propertyChange(PropertyChangeEvent e) 
 protected  void setBorderToNonRollover(Component c) 
    This implementation does nothing, because the {@code rollover} property of the {@code JToolBar} class is not used in the Synth Look and Feel.
 protected  void setBorderToNormal(Component c) 
    This implementation does nothing, because the {@code rollover} property of the {@code JToolBar} class is not used in the Synth Look and Feel.
 protected  void setBorderToRollover(Component c) 
    This implementation does nothing, because the {@code rollover} property of the {@code JToolBar} class is not used in the Synth Look and Feel.
 protected  void uninstallComponents() 
 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.