| java.lang.Object org.jvnet.substance.SubstanceFillBackgroundDelegate
SubstanceFillBackgroundDelegate | public class SubstanceFillBackgroundDelegate (Code) | | Delegate for painting filled backgrounds.
author: Kirill Grouchnikov |
Method Summary | |
public void | fillAndWatermark(Graphics g, JComponent c, Color fillColor, Rectangle rect) Updates the background of the specified component on the specified
graphic context in the specified rectangle. | public void | setWatermarkAlpha(float watermarkAlpha) Sets the watermark alpha (translucency) attribute for this delegate. | public void | update(Graphics g, Component c, boolean force) Updates the background of the specified component on the specified
graphic context. | public void | updateIfOpaque(Graphics g, Component c) Updates the background of the specified component on the specified
graphic context. |
SubstanceFillBackgroundDelegate | public SubstanceFillBackgroundDelegate()(Code) | | Creates a new opaque fill background delegate.
|
SubstanceFillBackgroundDelegate | public SubstanceFillBackgroundDelegate(float watermarkAlpha)(Code) | | Creates a new translucent fill background delegate.
Parameters: watermarkAlpha - Alpha composite of this delegate. The defaultvalue is 1.0 which results in completely opaque background.However, in some cases, we need to draw partially translucentbackground, as in menus. |
fillAndWatermark | public void fillAndWatermark(Graphics g, JComponent c, Color fillColor, Rectangle rect)(Code) | | Updates the background of the specified component on the specified
graphic context in the specified rectangle.
Parameters: g - Graphic context. Parameters: c - Component. Parameters: fillColor - Fill color. Parameters: rect - The rectangle to fill. |
setWatermarkAlpha | public void setWatermarkAlpha(float watermarkAlpha)(Code) | | Sets the watermark alpha (translucency) attribute for this delegate.
Parameters: watermarkAlpha - Watermark alpha (translucency) attribute for this delegate. |
update | public void update(Graphics g, Component c, boolean force)(Code) | | Updates the background of the specified component on the specified
graphic context.
Parameters: g - Graphic context. Parameters: c - Component. |
updateIfOpaque | public void updateIfOpaque(Graphics g, Component c)(Code) | | Updates the background of the specified component on the specified
graphic context. The background is updated only if the component is
opaque.
Parameters: g - Graphic context. Parameters: c - Component. |
|
|