ColorComponent

Inheritance: java.lang.Object

public final class ColorComponent

Color component is an abstraction over Channel Value and Channel Value. Any color is composed from an array of ColorComponent

Constructors

ConstructorDescription
ColorComponent(byte bitDepth, String fullName)Initializes a new instance of the ColorComponent class.

Methods

MethodDescription
equals(Object arg0)
getBitDepth()Gets the bit depth of Color Component/Channel
getClass()
getDescription()Gets the description of Color Component
getFullName()Gets the full name of color component with name and space-separated description
getName()Gets the name of color component.
getPermittedFullNames()Gets the permitted full names.
getValue()Gets or sets the value.
hashCode()
notify()
notifyAll()
setValue(long value)Gets or sets the value.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

ColorComponent(byte bitDepth, String fullName)

public ColorComponent(byte bitDepth, String fullName)

Initializes a new instance of the ColorComponent class. Please check

Parameters:

ParameterTypeDescription
bitDepthbyteThe bit depth.
fullNamejava.lang.StringThe full name.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getBitDepth()

public final byte getBitDepth()

Gets the bit depth of Color Component/Channel

Value: The bit depth.

Returns: byte

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getDescription()

public final String getDescription()

Gets the description of Color Component

Value: The description.

Returns: java.lang.String

getFullName()

public final String getFullName()

Gets the full name of color component with name and space-separated description

Value: The full name.

Returns: java.lang.String

getName()

public final String getName()

Gets the name of color component.

Value: The name.

Returns: java.lang.String

getPermittedFullNames()

public static String[] getPermittedFullNames()

Gets the permitted full names.

Value: The permitted full names.

Returns: java.lang.String[]

getValue()

public final long getValue()

Gets or sets the value. Please note, if you try to set value that is more than possible stored in current bit depth, you’ll get an exception

Value: The value.

Returns: long

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setValue(long value)

public final void setValue(long value)

Gets or sets the value. Please note, if you try to set value that is more than possible stored in current bit depth, you’ll get an exception

Value: The value.

Parameters:

ParameterTypeDescription
valuelong

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int