Module platform

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 Type
    Method
    Description
    transform(GradientPaint paint, Shape target)
    Transforms a GradientPaint instance to fit some target shape.
  • Method Details

    • transform

      GradientPaint transform(GradientPaint paint, Shape target)
      Transforms a GradientPaint instance to fit some target shape. Classes that implement this method typically return a new instance of GradientPaint.
      Parameters:
      paint - the original paint (not null).
      target - the reference area (not null).
      Returns:
      A transformed paint.