Package org.jfree.chart.ui
Interface GradientPaintTransformer
- All Known Implementing Classes:
DirectionalGradientPaintTransformer
,StandardGradientPaintTransformer
public interface GradientPaintTransformer
The interface for a class that can transform a
GradientPaint
to
fit an arbitrary shape.-
Method Summary
Modifier and TypeMethodDescriptiontransform
(GradientPaint paint, Shape target) Transforms aGradientPaint
instance to fit some target shape.
-
Method Details
-
transform
Transforms aGradientPaint
instance to fit some target shape. Classes that implement this method typically return a new instance ofGradientPaint
.- Parameters:
paint
- the original paint (notnull
).target
- the reference area (notnull
).- Returns:
- A transformed paint.
-