org.jfree.ui
Class StandardGradientPaintTransformer
java.lang.Object
org.jfree.ui.StandardGradientPaintTransformer
- Cloneable, GradientPaintTransformer, PublicCloneable, Serializable
Transforms a GradientPaint
to range over the width of a target
shape. Instances of this class are immutable.
Object | clone() - Returns a clone of the transformer.
|
boolean | equals(Object obj) - Tests this instance for equality with an arbitrary object.
|
GradientPaintTransformType | getType() - Returns the type of transform.
|
int | hashCode() - Returns a hash code for this object.
|
GradientPaint | transform(GradientPaint paint, Shape target) - Transforms a
GradientPaint instance to fit the specified
target shape.
|
clone
public Object clone()
throws CloneNotSupportedException
Returns a clone of the transformer. Note that instances of this class
are immutable, so cloning an instance isn't really necessary.
- clone in interface PublicCloneable
equals
public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.
obj
- the object (null
permitted).
hashCode
public int hashCode()
Returns a hash code for this object.
transform
public GradientPaint transform(GradientPaint paint,
Shape target)
Transforms a GradientPaint
instance to fit the specified
target
shape.
- transform in interface GradientPaintTransformer
paint
- the original paint (null
not permitted).target
- the target shape (null
not permitted).