|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.basic.BasicButtonUI
javax.swing.plaf.metal.MetalButtonUI
org.openbp.swing.plaf.sky.SkyButtonUI
public class SkyButtonUI
This class discribes the JButton UI. This is a Singleton.
| Field Summary |
|---|
| Fields inherited from class javax.swing.plaf.metal.MetalButtonUI |
|---|
disabledTextColor, focusColor, selectColor |
| Fields inherited from class javax.swing.plaf.basic.BasicButtonUI |
|---|
defaultTextIconGap, defaultTextShiftOffset |
| Constructor Summary | |
|---|---|
SkyButtonUI()
|
|
| Method Summary | |
|---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Create and returns the Singleton-instance of the JButton UI. |
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
Returns the preferred size of an button including shadow. |
int |
getShadowDepth()
Returns the depth of the shadow. |
void |
installUI(javax.swing.JComponent c)
Installs the UI to a JButton. |
boolean |
isShadowOn()
Returns true if the shadow is painted. |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
Paint the GUI of a JButton. |
void |
setShadowDepth(int depth)
Sets the depth of the shadow. |
void |
setShadowOn(boolean shadowOn)
Switchs the shadow on and off. |
| Methods inherited from class javax.swing.plaf.metal.MetalButtonUI |
|---|
createButtonListener, getDisabledTextColor, getFocusColor, getSelectColor, installDefaults, paintButtonPressed, paintFocus, paintText, uninstallDefaults, update |
| Methods inherited from class javax.swing.plaf.basic.BasicButtonUI |
|---|
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI |
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains, getAccessibleChild, getAccessibleChildrenCount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SkyButtonUI()
| Method Detail |
|---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c - a JComponent value
ComponentUI valuepublic void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.basic.BasicButtonUIc - a JComponent valuepublic boolean isShadowOn()
public void setShadowOn(boolean shadowOn)
public void setShadowDepth(int depth)
public int getShadowDepth()
public void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint in class javax.swing.plaf.basic.BasicButtonUIg - a Graphics valuec - a JComponent valuepublic java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize in class javax.swing.plaf.basic.BasicButtonUIc - a JComponent value
Dimension value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||