API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf.metal. MetalToolBarUI View Source
Author(s)
Jeff Shapiro
Since
Version
1.42 11/30/05
Serial
Hierarchy
 Object
      ComponentUI
          ToolBarUI
              BasicToolBarUI
                  MetalToolBarUI
Implements
Subclasses
Description
public class MetalToolBarUI
  A Metal Look and Feel implementation of ToolBarUI.
See also:   
Constructors
public MetalToolBarUI ()
Methods
Hide/Show inherited methods
public boolean canDock (Component c, Point p) [Inherited From BasicToolBarUI]
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 ContainerListener createContainerListener ()
  Creates a container listener that will be added to the JToolBar.
protected MouseInputListener createDockingListener () [Overrides BasicToolBarUI]
protected DragWindow createDragWindow (JToolBar toolbar) [Inherited From BasicToolBarUI]
protected JFrame createFloatingFrame (JToolBar toolbar) [Inherited From BasicToolBarUI]
  No longer used, use BasicToolBarUI.createFloatingWindow(JToolBar)
protected RootPaneContainer createFloatingWindow (JToolBar toolbar) [Inherited From BasicToolBarUI]
  Creates a window which contains the toolbar after it has been dragged out from its container
protected WindowListener createFrameListener () [Inherited From BasicToolBarUI]
protected Border createNonRolloverBorder () [Overrides BasicToolBarUI]
protected PropertyChangeListener createPropertyListener () [Inherited From BasicToolBarUI]
protected Border createRolloverBorder () [Overrides BasicToolBarUI]
protected PropertyChangeListener createRolloverListener ()
  Creates a property change listener that will be added to the JToolBar.
protected ContainerListener createToolBarContListener () [Inherited From BasicToolBarUI]
protected FocusListener createToolBarFocusListener () [Inherited From BasicToolBarUI]
publicstatic ComponentUI createUI (JComponent c) [Overrides BasicToolBarUI]
pack-privatestatic boolean doesMenuBarBorderToolBar (JMenuBar c)
Returns true if the passed in JMenuBar is above a horizontal JToolBar.
protected void dragTo (Point position, Point origin) [Inherited From BasicToolBarUI]
pack-privatestaticsynchronized Object findRegisteredComponentOfType (JComponent from, Class target)
Finds a previously registered component of class target that shares the JRootPane ancestor of from.
protected void floatAt (Point position, Point origin) [Inherited From BasicToolBarUI]
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 ComponentUI]
  Returns the baseline.
public BaselineResizeBehavior getBaselineResizeBehavior (JComponent c) [Inherited From ComponentUI]
  Returns an enum indicating how the baseline of he component changes as the size changes.
public Color getDockingColor () [Inherited From BasicToolBarUI]
Gets the color displayed when over a docking area
public Color getFloatingColor () [Inherited From BasicToolBarUI]
Gets the color displayed when over a floating area
public Dimension getMaximumSize (JComponent c) [Inherited From ComponentUI]
  Returns the specified component's maximum size appropriate for the look and feel.
public Dimension getMinimumSize (JComponent c) [Inherited From ComponentUI]
  Returns the specified component's minimum size appropriate for the look and feel.
protected Border getNonRolloverBorder (AbstractButton b) [Inherited From BasicToolBarUI]
  Returns a non-rollover border for the button.
public Dimension getPreferredSize (JComponent c) [Inherited From ComponentUI]
  Returns the specified component's preferred size appropriate for the look and feel.
protected Border getRolloverBorder (AbstractButton b) [Inherited From BasicToolBarUI]
  Returns a rollover border for the button.
protected void installComponents () [Inherited From BasicToolBarUI]
protected void installDefaults () [Inherited From BasicToolBarUI]
protected void installKeyboardActions () [Inherited From BasicToolBarUI]
protected void installListeners () [Overrides BasicToolBarUI]
protected void installNonRolloverBorders (JComponent c) [Inherited From BasicToolBarUI]
  Installs non-rollover borders on all the child components of the JComponent.
protected void installNormalBorders (JComponent c) [Inherited From BasicToolBarUI]
  Installs normal borders on all the child components of the JComponent.
protected void installRolloverBorders (JComponent c) [Inherited From BasicToolBarUI]
  Installs rollover borders on all the child components of the JComponent.
public void installUI (JComponent c) [Overrides BasicToolBarUI]
public boolean isFloating () [Inherited From BasicToolBarUI]
public boolean isRolloverBorders () [Inherited From BasicToolBarUI]
  Returns a flag to determine whether rollover button borders are enabled.
protected void navigateFocusedComp (int direction) [Inherited From BasicToolBarUI]
public void paint (Graphics g, JComponent c) [Inherited From ComponentUI]
  Paints the specified component appropriate for the look and feel.
protected void paintDragWindow (Graphics g) [Inherited From BasicToolBarUI]
  Paints the contents of the window used for dragging.
pack-privatestaticsynchronized void register (JComponent c)
Registers the specified component.
protected void setBorderToNonRollover (Component c) [Overrides BasicToolBarUI]
protected void setBorderToNormal (Component c) [Inherited From BasicToolBarUI]
  Sets the border of the component to have a normal border.
protected void setBorderToRollover (Component c) [Inherited From BasicToolBarUI]
  Sets the border of the component to have a rollover border which was created by createRolloverBorder.
public void setDockingColor (Color c) [Inherited From BasicToolBarUI]
Sets the color displayed when over a docking area
protected void setDragOffset (Point p)
public void setFloating (boolean b, Point p) [Inherited From BasicToolBarUI]
public void setFloatingColor (Color c) [Inherited From BasicToolBarUI]
Sets the color displayed when over a floating area
public void setFloatingLocation (int x, int y) [Inherited From BasicToolBarUI]
public void setOrientation (int orientation) [Inherited From BasicToolBarUI]
public void setRolloverBorders (boolean rollover) [Inherited From BasicToolBarUI]
  Sets the flag for enabling rollover borders on the toolbar and it will also install the apropriate border depending on the state of the flag.
protected void uninstallComponents () [Inherited From BasicToolBarUI]
protected void uninstallDefaults () [Inherited From BasicToolBarUI]
protected void uninstallKeyboardActions () [Inherited From BasicToolBarUI]
protected void uninstallListeners () [Overrides BasicToolBarUI]
public void uninstallUI (JComponent c) [Overrides BasicToolBarUI]
pack-privatestaticsynchronized void unregister (JComponent c)
Unregisters the specified component.
public void update (Graphics g, JComponent c) [Overrides ComponentUI]
  If necessary paints the background of the component, then invokes paint.
Fields
Hide/Show inherited fields
protected String constraintBeforeFloating [Inherited From BasicToolBarUI]
protected ContainerListener contListener
  This protected field is implemenation specific.
protected Color dockingBorderColor [Inherited From BasicToolBarUI]
protected Color dockingColor [Inherited From BasicToolBarUI]
protected MouseInputListener dockingListener [Inherited From BasicToolBarUI]
@Deprecated
protected KeyStroke downKey [Inherited From BasicToolBarUI]
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
protected DragWindow dragWindow [Inherited From BasicToolBarUI]
protected Color floatingBorderColor [Inherited From BasicToolBarUI]
protected Color floatingColor [Inherited From BasicToolBarUI]
protected int focusedCompIndex [Inherited From BasicToolBarUI]
@Deprecated
protected KeyStroke leftKey [Inherited From BasicToolBarUI]
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
protected PropertyChangeListener propertyListener [Inherited From BasicToolBarUI]
@Deprecated
protected KeyStroke rightKey [Inherited From BasicToolBarUI]
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
protected PropertyChangeListener rolloverListener
  This protected field is implemenation specific.
protected JToolBar toolBar [Inherited From BasicToolBarUI]
protected ContainerListener toolBarContListener [Inherited From BasicToolBarUI]
protected FocusListener toolBarFocusListener [Inherited From BasicToolBarUI]
@Deprecated
protected KeyStroke upKey [Inherited From BasicToolBarUI]
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
Nested Classes
  MetalToolBarUI.MetalContainerListener
  MetalToolBarUI.MetalRolloverListener
  MetalToolBarUI.MetalDockingListener
  BasicToolBarUI.FrameListener
  BasicToolBarUI.ToolBarContListener
  BasicToolBarUI.ToolBarFocusListener
  BasicToolBarUI.PropertyListener
  BasicToolBarUI.DockingListener
This class should be treated as a "protected" inner class.
  BasicToolBarUI.DragWindow
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar