public class DirectionalGradientPaintTransformer extends java.lang.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 |
---|---|
java.awt.GradientPaint |
transform(java.awt.GradientPaint paint,
java.awt.Shape target)
Transforms a
GradientPaint instance to fit some target
shape. |
public DirectionalGradientPaintTransformer()
public java.awt.GradientPaint transform(java.awt.GradientPaint paint, java.awt.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
).