Package com.iizix.prop
Class GFill
java.lang.Object
com.iizix.prop.GFill
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
GFillGradient,GFillPattern,GFillSolid
Abstract class to defines how to fill a shape. Four types of fills can be used: solid, linear gradient, radial gradient and pattern.
- Author:
- Christopher Mindus
Nested Class Summary
Nested ClassesField Summary
FieldsConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionabstract GFillclone()Clones this instance.abstract booleanChecks if two fill objects are equal.final StringGets the fill as a String in the form described below.abstract GFill.TypegetType()Gets the fill type.final StringtoString()Returns a string representation of this class instance and its values.
Field Details
DEFAULT
The default fill: solid transparent.
Constructor Details
GFill
public GFill()
Method Details
getType
Gets the fill type.- Returns:
- One of the types SOLID, LINEAR_GRADIENT, RADIAL_GRADIENT or PATTERN.
equals
Checks if two fill objects are equal.clone
Clones this instance.getString
Gets the fill as a String in the form described below.- Returns:
- the String as described above.
toString
Returns a string representation of this class instance and its values.