Package org.jfree.ui

Class StandardGradientPaintTransformer

    • Method Detail

      • transform

        public java.awt.GradientPaint transform​(java.awt.GradientPaint paint,
                                                java.awt.Shape target)
        Transforms a GradientPaint instance to fit the specified target shape.
        Specified by:
        transform in interface GradientPaintTransformer
        Parameters:
        paint - the original paint (null not permitted).
        target - the target shape (null not permitted).
        Returns:
        The transformed paint.
      • equals

        public boolean equals​(java.lang.Object obj)
        Tests this instance for equality with an arbitrary object.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the object (null permitted).
        Returns:
        A boolean.
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Returns a clone of the transformer. Note that instances of this class are immutable, so cloning an instance isn't really necessary.
        Specified by:
        clone in interface PublicCloneable
        Overrides:
        clone in class java.lang.Object
        Returns:
        A clone.
        Throws:
        java.lang.CloneNotSupportedException - not thrown by this class, but subclasses (if any) might.
      • hashCode

        public int hashCode()
        Returns a hash code for this object.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        A hash code.