org.jfree.ui
public class StandardGradientPaintTransformer extends Object implements GradientPaintTransformer, Cloneable, PublicCloneable, Serializable
GradientPaint
to range over the width of a target
shape.
Constructor Summary | |
---|---|
StandardGradientPaintTransformer()
Creates a new transformer. | |
StandardGradientPaintTransformer(GradientPaintTransformType type)
Creates a new transformer.
|
Method Summary | |
---|---|
Object | clone()
Returns a clone of the transformer.
|
boolean | equals(Object obj)
Tests this instance for equality with an arbitrary object.
|
int | hashCode()
Returns a hash code for this object.
|
GradientPaint | transform(GradientPaint paint, Shape target)
Transforms a GradientPaint instance.
|
Parameters: type the transform type.
Returns: A clone.
Throws: CloneNotSupportedException not thrown by this class, but subclasses (if any) might.
Parameters: obj the object to test against (null
permitted).
Returns: A boolean.
Returns: A hash code.
GradientPaint
instance.
Parameters: paint the original paint. target the target shape.
Returns: The transformed paint.