Interface RotatablePaint

  • All Superinterfaces:
    java.awt.Paint, java.awt.Transparency
    All Known Implementing Classes:
    RelativeLinearGradientPaint, RelativeRadialGradientPaint

    public interface RotatablePaint
    extends java.awt.Paint
    Indicates a paint that needs to be rotated when a shape is rotated.
    • Field Summary

      • Fields inherited from interface java.awt.Transparency

        BITMASK, OPAQUE, TRANSLUCENT
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void rotatePaint​(double angle, java.awt.geom.Point2D anchor, java.awt.geom.Rectangle2D r1, java.awt.geom.Rectangle2D r2)
      Call to rotate this paint.
      • Methods inherited from interface java.awt.Paint

        createContext
      • Methods inherited from interface java.awt.Transparency

        getTransparency
    • Method Detail

      • rotatePaint

        void rotatePaint​(double angle,
                         java.awt.geom.Point2D anchor,
                         java.awt.geom.Rectangle2D r1,
                         java.awt.geom.Rectangle2D r2)
        Call to rotate this paint.
        Parameters:
        r1 - The bounds of the shape before rotation.
        r2 - The bounds of the shape after rotation.