|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.substance.painter.ControlBackgroundComposite
org.jvnet.substance.painter.AlphaControlBackgroundComposite
public class AlphaControlBackgroundComposite
Constant-translucency ControlBackgroundComposite
that paints all
non-active components with translucent composite.
Field Summary | |
---|---|
protected java.awt.Composite |
active
Composite for active controls. |
protected float |
alpha
Alpha value for this composite. |
protected float |
alphaActive
Alpha value for this composite. |
protected java.awt.Composite |
nonActive
Composite for non-active controls. |
Constructor Summary | |
---|---|
AlphaControlBackgroundComposite(float alpha)
Creates the new constant-translucent composite. |
|
AlphaControlBackgroundComposite(float alpha,
float alphaActive)
Creates the new constant-translucenct composite. |
Method Summary | |
---|---|
java.awt.Composite |
getBackgroundComposite(java.awt.Component component,
java.awt.Container container,
int componentIndex,
boolean isPaintedActive)
Returns the background composite for the specified component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected float alpha
this
composite.
protected float alphaActive
this
composite.
protected java.awt.Composite active
protected java.awt.Composite nonActive
Constructor Detail |
---|
public AlphaControlBackgroundComposite(float alpha)
alpha
- Alpha value for this
composite for controls in
non-active state.public AlphaControlBackgroundComposite(float alpha, float alphaActive)
alpha
- Alpha value for this
composite for controls in
non-active state.alphaActive
- Alpha value for this
composite for controls in
active state.Method Detail |
---|
public java.awt.Composite getBackgroundComposite(java.awt.Component component, java.awt.Container container, int componentIndex, boolean isPaintedActive)
ControlBackgroundComposite
getBackgroundComposite
in class ControlBackgroundComposite
component
- Component.container
- Container of the component.componentIndex
- Index of the component in its container.isPaintedActive
- Indication whether the component is in active visual state.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |