API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf.basic. BasicToolBarUI View Source
Author(s)
Georges Saab
Jeff Shapiro
Since
Version
1.102 04/12/06
Serial
Hierarchy
 Object
      ComponentUI
          ToolBarUI
              BasicToolBarUI
Implements
 SwingConstants
Subclasses
Description
public class BasicToolBarUI
  A Basic L&F implementation of ToolBarUI.
See also:   
Constructors
public BasicToolBarUI ()
Methods
Hide/Show inherited methods
public boolean canDock (Component c, Point p)
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 MouseInputListener createDockingListener ()
protected DragWindow createDragWindow (JToolBar toolbar)
protected JFrame createFloatingFrame (JToolBar toolbar)
  No longer used, use BasicToolBarUI.createFloatingWindow(JToolBar)
protected RootPaneContainer createFloatingWindow (JToolBar toolbar)
  Creates a window which contains the toolbar after it has been dragged out from its container
protected WindowListener createFrameListener ()
protected Border createNonRolloverBorder ()
  Creates the non rollover border for toolbar components.
protected PropertyChangeListener createPropertyListener ()
protected Border createRolloverBorder ()
  Creates a rollover border for toolbar components.
protected ContainerListener createToolBarContListener ()
protected FocusListener createToolBarFocusListener ()
publicstatic ComponentUI createUI (JComponent c) [Overrides ComponentUI]
protected void dragTo (Point position, Point origin)
protected void floatAt (Point position, Point origin)
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 ()
Gets the color displayed when over a docking area
public Color getFloatingColor ()
Gets the color displayed when over a floating area
pack-private InputMap getInputMap (int condition)
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)
  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)
  Returns a rollover border for the button.
protected void installComponents ()
protected void installDefaults ()
protected void installKeyboardActions ()
protected void installListeners ()
protected void installNonRolloverBorders (JComponent c)
  Installs non-rollover borders on all the child components of the JComponent.
protected void installNormalBorders (JComponent c)
  Installs normal borders on all the child components of the JComponent.
protected void installRolloverBorders (JComponent c)
  Installs rollover borders on all the child components of the JComponent.
public void installUI (JComponent c) [Overrides ComponentUI]
public boolean isFloating ()
public boolean isRolloverBorders ()
  Returns a flag to determine whether rollover button borders are enabled.
pack-privatestatic void loadActionMap (LazyActionMap map)
protected void navigateFocusedComp (int direction)
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)
  Paints the contents of the window used for dragging.
protected void setBorderToNonRollover (Component c)
  Sets the border of the component to have a non-rollover border which was created by createNonRolloverBorder.
protected void setBorderToNormal (Component c)
  Sets the border of the component to have a normal border.
protected void setBorderToRollover (Component c)
  Sets the border of the component to have a rollover border which was created by createRolloverBorder.
public void setDockingColor (Color c)
Sets the color displayed when over a docking area
public void setFloating (boolean b, Point p)
public void setFloatingColor (Color c)
Sets the color displayed when over a floating area
public void setFloatingLocation (int x, int y)
public void setOrientation (int orientation)
public void setRolloverBorders (boolean rollover)
  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 ()
protected void uninstallDefaults ()
protected void uninstallKeyboardActions ()
protected void uninstallListeners ()
public void uninstallUI (JComponent c) [Overrides ComponentUI]
public void update (Graphics g, JComponent c) [Inherited From ComponentUI]
  Notifies this UI delegate that it's time to paint the specified component.
Fields
Hide/Show inherited fields
publicfinalstatic int BOTTOM = "3" [Inherited From SwingConstants]
Box-orientation constant used to specify the bottom of a box.
publicfinalstatic int CENTER = "0" [Inherited From SwingConstants]
  The central position in an area.
protected String constraintBeforeFloating
protected Color dockingBorderColor
protected Color dockingColor
protected MouseInputListener dockingListener
@Deprecated
protected KeyStroke downKey
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
protected DragWindow dragWindow
publicfinalstatic int EAST = "3" [Inherited From SwingConstants]
Compass-direction east (right).
protected Color floatingBorderColor
protected Color floatingColor
protected int focusedCompIndex
publicfinalstatic int HORIZONTAL = "0" [Inherited From SwingConstants]
  Horizontal orientation.
publicfinalstatic int LEADING = "10" [Inherited From SwingConstants]
  Identifies the leading edge of text for use with left-to-right and right-to-left languages.
publicfinalstatic int LEFT = "2" [Inherited From SwingConstants]
Box-orientation constant used to specify the left side of a box.
@Deprecated
protected KeyStroke leftKey
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
publicfinalstatic int NEXT = "12" [Inherited From SwingConstants]
  Identifies the next direction in a sequence.
publicfinalstatic int NORTH = "1" [Inherited From SwingConstants]
Compass-direction North (up).
publicfinalstatic int NORTH_EAST = "2" [Inherited From SwingConstants]
Compass-direction north-east (upper right).
publicfinalstatic int NORTH_WEST = "8" [Inherited From SwingConstants]
Compass-direction north west (upper left).
publicfinalstatic int PREVIOUS = "13" [Inherited From SwingConstants]
  Identifies the previous direction in a sequence.
protected PropertyChangeListener propertyListener
publicfinalstatic int RIGHT = "4" [Inherited From SwingConstants]
Box-orientation constant used to specify the right side of a box.
@Deprecated
protected KeyStroke rightKey
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
publicfinalstatic int SOUTH = "5" [Inherited From SwingConstants]
Compass-direction south (down).
publicfinalstatic int SOUTH_EAST = "4" [Inherited From SwingConstants]
Compass-direction south-east (lower right).
publicfinalstatic int SOUTH_WEST = "6" [Inherited From SwingConstants]
Compass-direction south-west (lower left).
protected JToolBar toolBar
protected ContainerListener toolBarContListener
protected FocusListener toolBarFocusListener
publicfinalstatic int TOP = "1" [Inherited From SwingConstants]
Box-orientation constant used to specify the top of a box.
publicfinalstatic int TRAILING = "11" [Inherited From SwingConstants]
  Identifies the trailing edge of text for use with left-to-right and right-to-left languages.
@Deprecated
protected KeyStroke upKey
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
publicfinalstatic int VERTICAL = "1" [Inherited From SwingConstants]
  Vertical orientation.
publicfinalstatic int WEST = "7" [Inherited From SwingConstants]
Compass-direction west (left).
Nested Classes
  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