| |
|
| java.lang.Object com.jeta.forms.gui.effects.RadialGradientPainter
RadialGradientPainter | public class RadialGradientPainter implements Painter(Code) | | This class is an implementation of a Painter that renders a radial gradient
on part of a canvas or component. This class uses the Batik SVG library for
rendering the gradient. See http://xml.apache.org/batik/
author: Jeff Tassin |
Field Summary | |
final public static int | HEIGHT_BASED The radius is calculated as the height of the paint area. | final public static int | SQUARE_BASED The radius is calculated based on the distance from the center of a
rectangle to its corners or sides. | final public static int | WIDTH_BASED The radius is calculated as the width of the paint area. |
HEIGHT_BASED | final public static int HEIGHT_BASED(Code) | | The radius is calculated as the height of the paint area.
|
SQUARE_BASED | final public static int SQUARE_BASED(Code) | | The radius is calculated based on the distance from the center of a
rectangle to its corners or sides.
|
WIDTH_BASED | final public static int WIDTH_BASED(Code) | | The radius is calculated as the width of the paint area.
|
RadialGradientPainter | public RadialGradientPainter()(Code) | | Creates a RadialGradientProperty instance with no paint
attributes.
|
RadialGradientPainter | public RadialGradientPainter(RadialGradientProperty prop)(Code) | | Creates a RadialGradientProperty instance with the
specified paint properties.
|
paint | public void paint(Component c, Graphics g, Rectangle rect)(Code) | | Painter implementation. Paints a radial gradient on a given graphics
context.
Parameters: g - the graphics context Parameters: rect - the rectangle that defines the region to paint. Note, thatthis is different than the clipping rectangle. |
setGradientProperty | public void setGradientProperty(RadialGradientProperty prop)(Code) | | Sets the gradient attributes for this painter
Parameters: prop - the gradient property to associate with this painter. |
setRadiusType | public void setRadiusType(int rtype)(Code) | | Sets the radius type for this painter. Valid values are:
RadialGradientPainter.SQUARE_BASED RadialGradientPainter.WIDTH_BASED
RadialGradientPainter.HEIGHT_BASED
Parameters: rtype - the radius type to set. |
|
|
|