Package com.iizix.prop
Class GFill
- java.lang.Object
- com.iizix.prop.GFill
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
GFillGradient,GFillPattern,GFillSolid
public abstract class GFill extends java.lang.Object implements java.lang.CloneableAbstract 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 Classes Modifier and Type Class Description static classGFill.TypeThe fill type.
Constructor Summary
Constructors Constructor Description GFill()
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract GFillclone()Clones this instance.abstract booleanequals(java.lang.Object o)Checks if two fill objects are equal.java.lang.StringgetString()Gets the fill as a String in the form described below.abstract GFill.TypegetType()Gets the fill type.java.lang.StringtoString()Returns a string representation of this class instance and its values.
Field Detail
DEFAULT
public static final GFill DEFAULT
The default fill: solid transparent.
Method Detail
getType
public abstract GFill.Type getType()
Gets the fill type.- Returns:
- One of the types SOLID, LINEAR_GRADIENT, RADIAL_GRADIENT or PATTERN.
equals
public abstract boolean equals(java.lang.Object o)
Checks if two fill objects are equal.- Overrides:
equalsin classjava.lang.Object
clone
public abstract GFill clone()
Clones this instance.- Overrides:
clonein classjava.lang.Object- Returns:
- As GFillGradient is immutable, cloning will return "this".
getString
public final java.lang.String getString()
Gets the fill as a String in the form described below.- Returns:
- the String as described above.
toString
public final java.lang.String toString()
Returns a string representation of this class instance and its values.- Overrides:
toStringin classjava.lang.Object- Returns:
- a string representation of this class instance.