CmxFillStyle

Inheritance: java.lang.Object

public class CmxFillStyle

Fill style for shapes.

Constructors

ConstructorDescription
CmxFillStyle()

Methods

MethodDescription
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:

ParameterTypeDescription
valueintthe 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:

ParameterTypeDescription
valueCmxColorthe 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:

ParameterTypeDescription
valueCmxColorthe 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:

ParameterTypeDescription
valueCmxGradientthe 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:

ParameterTypeDescription
valueCmxImageFillthe 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:

ParameterTypeDescription
valueMatrixthe 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:

ParameterTypeDescription
ojava.lang.ObjectThe other object.

Returns: boolean - The equality comparison result.

hashCode()

public int hashCode()

Get hash code of the current object.

Returns: int - The hash code.