public class DirectionalGradientPaintTransformer extends Object implements 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 GradientPaintTransformer
paint
- the original paint (not null
).target
- the reference area (not null
).Copyright © 2001–2017 JFree.org. All rights reserved.