API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf.basic. BasicButtonUI View Source
Author(s)
Jeff Dinkins
Since
Version
1.118 07/20/06
Serial
Hierarchy
 Object
      ComponentUI
          ButtonUI
              BasicButtonUI
Implements
Subclasses
Description
public class BasicButtonUI
BasicButton implementation
See also:   
Constructors
public BasicButtonUI ()
Methods
Hide/Show inherited methods
protected void clearTextShiftOffset ()
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 BasicButtonListener createButtonListener (AbstractButton b)
publicstatic ComponentUI createUI (JComponent c) [Overrides ComponentUI]
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) [Overrides ComponentUI]
  Returns the baseline.
public BaselineResizeBehavior getBaselineResizeBehavior (JComponent c) [Overrides ComponentUI]
  Returns an enum indicating how the baseline of the component changes as the size changes.
public int getDefaultTextIconGap (AbstractButton b)
public Dimension getMaximumSize (JComponent c) [Overrides ComponentUI]
public Dimension getMinimumSize (JComponent c) [Overrides ComponentUI]
public Dimension getPreferredSize (JComponent c) [Overrides ComponentUI]
protected String getPropertyPrefix ()
protected int getTextShiftOffset ()
protected void installDefaults (AbstractButton b)
protected void installKeyboardActions (AbstractButton b)
protected void installListeners (AbstractButton b)
public void installUI (JComponent c) [Overrides ComponentUI]
public void paint (Graphics g, JComponent c) [Overrides ComponentUI]
protected void paintButtonPressed (Graphics g, AbstractButton b)
protected void paintFocus (Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
protected void paintIcon (Graphics g, JComponent c, Rectangle iconRect)
protected void paintText (Graphics g, AbstractButton b, Rectangle textRect, String text)
  Method which renders the text of the current button.
protected void paintText (Graphics g, JComponent c, Rectangle textRect, String text)
  As of Java 2 platform v 1.4 this method should not be used or overriden.
protected void setTextShiftOffset ()
protected void uninstallDefaults (AbstractButton b)
protected void uninstallKeyboardActions (AbstractButton b)
protected void uninstallListeners (AbstractButton b)
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
protected int defaultTextIconGap
protected int defaultTextShiftOffset
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar