| java.lang.Object com.jeta.forms.gui.effects.LinearGradientPainter
LinearGradientPainter | public class LinearGradientPainter implements Painter(Code) | | This class is an implementation of a Painter that renders a a linear gradient
on a part of a canvas or component. This class uses the Batik library for
rendering the gradient. See http://xml.apache.org/batik/
author: Jeff Tassin |
LinearGradientPainter | public LinearGradientPainter()(Code) | | Creates a LinearGradientProperty instance with no paint
attributes.
|
LinearGradientPainter | public LinearGradientPainter(GradientProperty prop)(Code) | | Creates a LinearGradientProperty instance with the
specified paint properties.
|
paint | public void paint(Component c, Graphics g, Rectangle rect)(Code) | | Painter Implementation. Paints a linear 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(GradientProperty prop)(Code) | | Sets the gradient attributes for this painter
Parameters: prop - the gradient property to associate with this painter. |
|
|