-
- All Known Implementing Classes:
DirectionalGradientPaintTransformer,StandardGradientPaintTransformer
public interface GradientPaintTransformer
The interface for a class that can transform aGradientPaintto fit an arbitrary shape.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GradientPainttransform(GradientPaint paint, Shape target)Transforms aGradientPaintinstance to fit some target shape.
-
-
-
Method Detail
-
transform
GradientPaint transform(GradientPaint paint, Shape target)
Transforms aGradientPaintinstance 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.
-
-