Class GFillGradient
java.lang.Object
com.iizix.prop.GFill
com.iizix.prop.GFillGradient
- All Implemented Interfaces:
Cloneable
Gradient fill for a shape with a close relation to dojox/gfx.LinearGradient and dojox/gfx.RadialGradient.
- 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.Gets the gradient.getType()Gets the fill type.inthashCode()Gets the hash code of this instance, consistent withequals: the gradient.protected StringReturns the parameter string representing the state of this event.
Constructor Details
GFillGradient
Creates a gradient fill from a gradient.- Parameters:
gradient- The gradient, never null.- Throws:
NullPointerException- Ifgradientis null. A gradient fill with no gradient 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
getGradient
Gets the gradient.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.