| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class BasicButtonUI extends ButtonUI
BasicButton implementation
Field Summary | |
---|---|
protected int |
defaultTextIconGap
|
protected int |
defaultTextShiftOffset
|
Constructor Summary | |
---|---|
|
Method Summary | |
---|---|
protected void |
|
protected BasicButtonListener |
|
static ComponentUI |
|
int |
getBaseline(JComponent c, int width, int height) Returns the baseline. |
Component.BaselineResizeBehavior |
Returns an enum indicating how the baseline of the component changes as the size changes. |
int |
|
Dimension |
Returns the specified component's maximum size appropriate for the look and feel. |
Dimension |
Returns the specified component's minimum size appropriate for the look and feel. |
Dimension |
Returns the specified component's preferred size appropriate for the look and feel. |
protected String |
|
protected int |
|
protected void |
|
protected void |
|
protected void |
|
void |
Configures the specified component appropriate for the look and feel. |
void |
paint(Graphics g, JComponent c) Paints the specified component appropriate for the look and feel. |
protected void |
|
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 |
|
protected void |
|
protected void |
|
protected void |
|
void |
Reverses configuration which was done on the specified component during installUI .
|
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int defaultTextIconGap
protected int defaultTextShiftOffset
Constructor Detail |
---|
public BasicButtonUI()
Method Detail |
---|
protected void clearTextShiftOffset()
protected BasicButtonListener createButtonListener(AbstractButton b)
b
public static ComponentUI createUI(JComponent c)
c
public int getBaseline(JComponent c, int width, int height)
getBaseline
in class ComponentUI
c
width
height
public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c)
getBaselineResizeBehavior
in class ComponentUI
c
public int getDefaultTextIconGap(AbstractButton b)
b
public Dimension getMaximumSize(JComponent c)
getMaximumSize
in class ComponentUI
c
public Dimension getMinimumSize(JComponent c)
getMinimumSize
in class ComponentUI
c
public Dimension getPreferredSize(JComponent c)
getPreferredSize
in class ComponentUI
c
protected String getPropertyPrefix()
protected int getTextShiftOffset()
protected void installDefaults(AbstractButton b)
b
protected void installKeyboardActions(AbstractButton b)
b
protected void installListeners(AbstractButton b)
b
public void installUI(JComponent c)
installUI
in class ComponentUI
c
public void paint(Graphics g, JComponent c)
paint
in class ComponentUI
g
c
protected void paintButtonPressed(Graphics g, AbstractButton b)
g
b
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
g
b
viewRect
textRect
iconRect
protected void paintIcon(Graphics g, JComponent c, Rectangle iconRect)
g
c
iconRect
protected void paintText(Graphics g, AbstractButton b, Rectangle textRect, String text)
g
- Graphics contextb
- Current button to rendertextRect
- Bounding rectangle to render the text.text
- String to renderprotected void paintText(Graphics g, JComponent c, Rectangle textRect, String text)
g
c
textRect
text
protected void setTextShiftOffset()
protected void uninstallDefaults(AbstractButton b)
b
protected void uninstallKeyboardActions(AbstractButton b)
b
protected void uninstallListeners(AbstractButton b)
b
public void uninstallUI(JComponent c)
uninstallUI
in class ComponentUI
c
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |