|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.extended.painter.AbstractPainter<javax.swing.AbstractButton> com.alee.examples.groups.button.ButtonPaintersExample.SeaGlassButtonPainter
public static class ButtonPaintersExample.SeaGlassButtonPainter
Custom SeaGlass button painter.
Field Summary | |
---|---|
protected float[] |
bgFractions
|
protected float[] |
borderFractions
|
protected java.awt.Color |
bottomBorder
|
protected java.awt.Color |
bottomDisabledBorder
|
protected java.awt.Color |
bottomPressedBorder
|
protected java.awt.Color |
focus
Focus color. |
protected java.awt.Color |
middleBg
|
protected java.awt.Color |
middleDisabledBg
|
protected java.awt.Color |
middlePressedBg
|
protected java.awt.Color |
middleSelectedBg
|
protected java.awt.Color |
sideBg
Background colors. |
protected java.awt.Color |
sideDisabledBg
|
protected java.awt.Color |
sidePressedBg
|
protected java.awt.Color |
sideSelectedBg
|
protected java.awt.Color |
topBorder
Border colors. |
protected java.awt.Color |
topDisabledBorder
|
protected java.awt.Color |
topPressedBorder
|
Fields inherited from class com.alee.extended.painter.AbstractPainter |
---|
listeners, margin, opaque, preferredSize |
Constructor Summary | |
---|---|
ButtonPaintersExample.SeaGlassButtonPainter()
Constructs new SeaGlass button painter. |
Method Summary | |
---|---|
protected java.awt.Paint |
getBackgroundPaint(javax.swing.AbstractButton button,
javax.swing.ButtonModel model)
Returns background paint. |
protected java.awt.Paint |
getBorderPaint(javax.swing.AbstractButton button,
javax.swing.ButtonModel model)
Returns border paint. |
void |
paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
javax.swing.AbstractButton c)
Paints visual data onto the component graphics. |
Methods inherited from class com.alee.extended.painter.AbstractPainter |
---|
addPainterListener, getMargin, getPreferredSize, install, isOpaque, p, removePainterListener, repaint, repaint, repaint, revalidate, setMargin, setMargin, setMargin, setOpaque, setPreferredSize, uninstall, updateAll, updateOpacity |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.awt.Color topBorder
protected java.awt.Color bottomBorder
protected java.awt.Color topPressedBorder
protected java.awt.Color bottomPressedBorder
protected java.awt.Color topDisabledBorder
protected java.awt.Color bottomDisabledBorder
protected float[] borderFractions
protected java.awt.Color sideBg
protected java.awt.Color middleBg
protected java.awt.Color sidePressedBg
protected java.awt.Color middlePressedBg
protected java.awt.Color sideSelectedBg
protected java.awt.Color middleSelectedBg
protected java.awt.Color sideDisabledBg
protected java.awt.Color middleDisabledBg
protected float[] bgFractions
protected java.awt.Color focus
Constructor Detail |
---|
public ButtonPaintersExample.SeaGlassButtonPainter()
Method Detail |
---|
public void paint(java.awt.Graphics2D g2d, java.awt.Rectangle bounds, javax.swing.AbstractButton c)
g2d
- component graphicsbounds
- bounds for painter visual datac
- component to processprotected java.awt.Paint getBackgroundPaint(javax.swing.AbstractButton button, javax.swing.ButtonModel model)
button
- buttonmodel
- button model
protected java.awt.Paint getBorderPaint(javax.swing.AbstractButton button, javax.swing.ButtonModel model)
button
- buttonmodel
- button model
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |