CmxFillStyle
Inheritance: java.lang.Object
public class CmxFillStyle
Fill style for shapes.
Constructors
Constructor | Description |
---|---|
CmxFillStyle() |
Methods
Method | Description |
---|---|
getFillType() | Gets the type of the fill. |
setFillType(int value) | Sets the type of the fill. |
getColor1() | Gets the primary color. |
setColor1(CmxColor value) | Sets the primary color. |
getColor2() | Gets the secondary color. |
setColor2(CmxColor value) | Sets the secondary color. |
getGradient() | Gets the gradient info. |
setGradient(CmxGradient value) | Sets the gradient info. |
getImageFill() | Gets the image fill info. |
setImageFill(CmxImageFill value) | Sets the image fill info. |
getTransform() | Gets the fill transform. |
setTransform(Matrix value) | Sets the fill transform. |
toString() | Returns a String that represents this instance. |
equals(Object o) | Check if objects are equal. |
hashCode() | Get hash code of the current object. |
CmxFillStyle()
public CmxFillStyle()
getFillType()
public final int getFillType()
Gets the type of the fill.
Returns: int - the type of the fill.
setFillType(int value)
public final void setFillType(int value)
Sets the type of the fill.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | the type of the fill. |
getColor1()
public final CmxColor getColor1()
Gets the primary color.
Returns: CmxColor - the primary color.
setColor1(CmxColor value)
public final void setColor1(CmxColor value)
Sets the primary color.
Parameters:
Parameter | Type | Description |
---|---|---|
value | CmxColor | the primary color. |
getColor2()
public final CmxColor getColor2()
Gets the secondary color.
Returns: CmxColor - the secondary color.
setColor2(CmxColor value)
public final void setColor2(CmxColor value)
Sets the secondary color.
Parameters:
Parameter | Type | Description |
---|---|---|
value | CmxColor | the secondary color. |
getGradient()
public final CmxGradient getGradient()
Gets the gradient info.
Returns: CmxGradient - the gradient info.
setGradient(CmxGradient value)
public final void setGradient(CmxGradient value)
Sets the gradient info.
Parameters:
Parameter | Type | Description |
---|---|---|
value | CmxGradient | the gradient info. |
getImageFill()
public final CmxImageFill getImageFill()
Gets the image fill info.
Returns: CmxImageFill - the image fill info.
setImageFill(CmxImageFill value)
public final void setImageFill(CmxImageFill value)
Sets the image fill info.
Parameters:
Parameter | Type | Description |
---|---|---|
value | CmxImageFill | the image fill info. |
getTransform()
public final Matrix getTransform()
Gets the fill transform.
Returns: Matrix - the fill transform.
setTransform(Matrix value)
public final void setTransform(Matrix value)
Sets the fill transform.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Matrix | the fill transform. |
toString()
public String toString()
Returns a String that represents this instance.
Returns: java.lang.String - A String that represents this instance.
equals(Object o)
public boolean equals(Object o)
Check if objects are equal.
Parameters:
Parameter | Type | Description |
---|---|---|
o | java.lang.Object | The other object. |
Returns: boolean - The equality comparison result.
hashCode()
public int hashCode()
Get hash code of the current object.
Returns: int - The hash code.