CmxColor

Inheritance: java.lang.Object

public class CmxColor

Represents a color value.

Constructors

ConstructorDescription
CmxColor()
CmxColor(int colorModel, long value)Creates a new CmxColor

Methods

MethodDescription
getColorModel()Gets the color model.
setColorModel(int value)Sets the color model.
getValue()Gets the color value.
setValue(long value)Sets the color value.
toString()Returns a String that represents this instance.
equals(Object o)Check if objects are equal.
hashCode()Get hash code of the current object.

CmxColor()

public CmxColor()

CmxColor(int colorModel, long value)

public CmxColor(int colorModel, long value)

Creates a new CmxColor

Parameters:

ParameterTypeDescription
colorModelintthe color model.
valuelongThe color value.

getColorModel()

public final int getColorModel()

Gets the color model.

Returns: int - the color model.

setColorModel(int value)

public final void setColorModel(int value)

Sets the color model.

Parameters:

ParameterTypeDescription
valueintthe color model.

getValue()

public final long getValue()

Gets the color value.

Returns: long - the color value.

setValue(long value)

public final void setValue(long value)

Sets the color value.

Parameters:

ParameterTypeDescription
valuelongthe color value.

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.