public abstract static class RegionPainter.Alpha extends java.lang.Object implements RegionPainter<java.lang.Float>
RegionPainter.Alpha, RegionPainter.Image| Constructor and Description |
|---|
Alpha() |
| Modifier and Type | Method and Description |
|---|---|
protected float |
getAlpha(java.lang.Float value)
Calculates alpha from the specified value.
|
protected java.awt.Composite |
getComposite(float alpha)
Returns new composite with the specified alpha.
|
protected abstract void |
paint(java.awt.Graphics2D g,
int x,
int y,
int width,
int height)
Renders to the given
Graphics2D object. |
void |
paint(java.awt.Graphics2D g,
int x,
int y,
int width,
int height,
java.lang.Float value)
Renders to the given
Graphics2D object. |
public void paint(java.awt.Graphics2D g,
int x,
int y,
int width,
int height,
java.lang.Float value)
RegionPainterGraphics2D object.paint in interface RegionPainter<java.lang.Float>g - the Graphics2D object to render tox - X position of the area to painty - Y position of the area to paintwidth - width of the area to paintheight - height of the area to paintvalue - an optional configuration parameterprotected float getAlpha(java.lang.Float value)
value - a configuration parameter used to calculate alphaprotected java.awt.Composite getComposite(float alpha)
alpha - the constant alpha to be multiplied with the alpha of the sourceprotected abstract void paint(java.awt.Graphics2D g,
int x,
int y,
int width,
int height)
Graphics2D object.g - the Graphics2D object to render tox - X position of the area to painty - Y position of the area to paintwidth - width of the area to paintheight - height of the area to paint