CmxColor
Contents
[
Hide
]Inheritance: java.lang.Object
public class CmxColor
Represents a color value.
Constructors
Constructor | Description |
---|---|
CmxColor() | |
CmxColor(int colorModel, long value) | Creates a new CmxColor |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
colorModel | int | the color model. |
value | long | The 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:
Parameter | Type | Description |
---|---|---|
value | int | the 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:
Parameter | Type | Description |
---|---|---|
value | long | the 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:
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.