Class GFillSolid
java.lang.Object
com.iizix.prop.GFill
com.iizix.prop.GFillSolid
- All Implemented Interfaces:
Cloneable
Solid fill using a single color to fill a shape.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class GFill
GFill.TypeField Summary
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionclone()Clones this instance.booleanChecks if two fill objects are equal.getColor()Gets the color.getType()Gets the fill type.inthashCode()Gets the hash code of this instance, consistent withequals: the color.protected StringReturns the parameter string representing the state of this event.
Constructor Details
GFillSolid
Creates a solid fill from a color.- Parameters:
color- The color, never null.- Throws:
NullPointerException- Ifcoloris null. A solid fill with no colour is not a fill:append(PropMgr,SendTransaction),equals(Object)andhashCode()all dereference it, so the failure would otherwise surface far from the caller that caused it.
Method Details
getColor
Gets the color.getType
equals
hashCode
clone
Clones this instance.paramString
Returns the parameter string representing the state of this event. This string is useful for debugging. Subclasses adds extra information to the string by preceding it with a comma followed by the extra information.- Returns:
- the parameter string of this event.