|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jvnet.substance.SubstanceFillBackgroundDelegate
public class SubstanceFillBackgroundDelegate
Delegate for painting filled backgrounds.
| Field Summary | |
|---|---|
static SubstanceFillBackgroundDelegate |
GLOBAL_INSTANCE
Background delegate. |
| Constructor Summary | |
|---|---|
SubstanceFillBackgroundDelegate()
Creates a new opaque fill background delegate. |
|
SubstanceFillBackgroundDelegate(float watermarkAlpha)
Creates a new translucent fill background delegate. |
|
| Method Summary | |
|---|---|
void |
fillAndWatermark(java.awt.Graphics g,
javax.swing.JComponent c,
java.awt.Color fillColor,
java.awt.Rectangle rect)
Updates the background of the specified component on the specified graphic context in the specified rectangle. |
void |
setWatermarkAlpha(float watermarkAlpha)
Sets the watermark alpha (translucency) attribute for this delegate. |
void |
update(java.awt.Graphics g,
java.awt.Component c,
boolean force)
Updates the background of the specified component on the specified graphic context. |
void |
updateIfOpaque(java.awt.Graphics g,
java.awt.Component c)
Updates the background of the specified component on the specified graphic context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final SubstanceFillBackgroundDelegate GLOBAL_INSTANCE
| Constructor Detail |
|---|
public SubstanceFillBackgroundDelegate()
public SubstanceFillBackgroundDelegate(float watermarkAlpha)
watermarkAlpha - Alpha composite of this delegate. The default
value is 1.0 which results in completely opaque background.
However, in some cases, we need to draw partially translucent
background, as in menus.| Method Detail |
|---|
public void updateIfOpaque(java.awt.Graphics g,
java.awt.Component c)
g - Graphic context.c - Component.
public void update(java.awt.Graphics g,
java.awt.Component c,
boolean force)
g - Graphic context.c - Component.
public void fillAndWatermark(java.awt.Graphics g,
javax.swing.JComponent c,
java.awt.Color fillColor,
java.awt.Rectangle rect)
g - Graphic context.c - Component.fillColor - Fill color.rect - The rectangle to fill.public void setWatermarkAlpha(float watermarkAlpha)
watermarkAlpha - Watermark alpha (translucency) attribute for this delegate.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||