public class BEButtonUI
extends javax.swing.plaf.basic.BasicButtonUI
限定符和类型 | 类和说明 |
---|---|
static class |
BEButtonUI.NormalColor
按钮颜色方案枚举类型。.
|
static class |
BEButtonUI.XPEmptyBorder
The Class XPEmptyBorder.
|
限定符和类型 | 字段和说明 |
---|---|
protected int |
dashedRectGapHeight
The dashed rect gap height.
|
protected int |
dashedRectGapWidth
The dashed rect gap width.
|
protected int |
dashedRectGapX
The dashed rect gap x.
|
protected int |
dashedRectGapY
The dashed rect gap y.
|
protected java.awt.Color |
focusColor
The focus color.
|
构造器和说明 |
---|
BEButtonUI() |
限定符和类型 | 方法和说明 |
---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Creates the ui.
|
protected java.awt.Color |
getFocusColor()
Gets the focus color.
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c) |
protected void |
installDefaults(javax.swing.AbstractButton b) |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
protected void |
paintFocus(java.awt.Graphics g,
javax.swing.AbstractButton b,
java.awt.Rectangle viewRect,
java.awt.Rectangle textRect,
java.awt.Rectangle iconRect) |
static void |
paintXPButtonBackground(BEButtonUI.NormalColor nomalColor,
java.awt.Graphics g,
javax.swing.JComponent c)
Paint xp button background.
|
BEButtonUI |
setNormalColor(BEButtonUI.NormalColor nc)
Sets the normal color.
|
protected void |
uninstallDefaults(javax.swing.AbstractButton b) |
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paintButtonPressed, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
protected int dashedRectGapX
protected int dashedRectGapY
protected int dashedRectGapWidth
protected int dashedRectGapHeight
protected java.awt.Color focusColor
public BEButtonUI setNormalColor(BEButtonUI.NormalColor nc)
nc
- the ncpublic static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c
- the cprotected void installDefaults(javax.swing.AbstractButton b)
installDefaults
在类中 javax.swing.plaf.basic.BasicButtonUI
protected void uninstallDefaults(javax.swing.AbstractButton b)
uninstallDefaults
在类中 javax.swing.plaf.basic.BasicButtonUI
protected java.awt.Color getFocusColor()
protected void paintFocus(java.awt.Graphics g, javax.swing.AbstractButton b, java.awt.Rectangle viewRect, java.awt.Rectangle textRect, java.awt.Rectangle iconRect)
paintFocus
在类中 javax.swing.plaf.basic.BasicButtonUI
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize
在类中 javax.swing.plaf.basic.BasicButtonUI
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
在类中 javax.swing.plaf.basic.BasicButtonUI
public static void paintXPButtonBackground(BEButtonUI.NormalColor nomalColor, java.awt.Graphics g, javax.swing.JComponent c)
nomalColor
- the nomal colorg
- the gc
- the c