public class DirectionalGradientPaintTransformer extends Object implements org.jfree.ui.GradientPaintTransformer
GradientPaint
to range over the width of a target
shape. The orientation of the resulting GradientPaint
depend on the coordinates of the original paint:
In all cases, the cyclic flag of the original paint will be taken into account.
Constructor and Description |
---|
DirectionalGradientPaintTransformer()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
GradientPaint |
transform(GradientPaint paint,
Shape target)
Transforms a
GradientPaint instance to fit some target
shape. |
public DirectionalGradientPaintTransformer()
public GradientPaint transform(GradientPaint paint, Shape target)
GradientPaint
instance to fit some target
shape.transform
in interface org.jfree.ui.GradientPaintTransformer
paint
- the original paint (not null
).target
- the reference area (not null
).Jas4pp 1.5 © Java Analysis Studio for Particle Physics