Package org.jfree.chart.ui
Class GradientPaintTransformType
java.lang.Object
org.jfree.chart.ui.GradientPaintTransformType
- All Implemented Interfaces:
Serializable
Represents a type of transform for a
GradientPaint.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GradientPaintTransformTypeCenter/horizontal.static final GradientPaintTransformTypeCenter/vertical.static final GradientPaintTransformTypeHorizontal.private StringThe name.private static final longFor serialization.static final GradientPaintTransformTypeVertical. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePrivate constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif this object is equal to the specified object, andfalseotherwise.inthashCode()Returns a hash code value for the object.private ObjectEnsures that serialization returns the unique instances.toString()Returns a string representing the object.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor serialization.- See Also:
-
VERTICAL
Vertical. -
HORIZONTAL
Horizontal. -
CENTER_VERTICAL
Center/vertical. -
CENTER_HORIZONTAL
Center/horizontal. -
name
The name.
-
-
Constructor Details
-
GradientPaintTransformType
Private constructor.- Parameters:
name- the name.
-
-
Method Details
-
toString
Returns a string representing the object. -
equals
Returnstrueif this object is equal to the specified object, andfalseotherwise. -
hashCode
public int hashCode()Returns a hash code value for the object. -
readResolve
Ensures that serialization returns the unique instances.- Returns:
- The object.
- Throws:
ObjectStreamException- if there is a problem.
-