JPlanner Programmer's Guide
Color Members
Constructors Fields Methods
 


Provides a platform-independent representation of a color. Instances of this class are immutable.

The following tables list the members exposed by the Color type.

 Public Constructors

  Name Description

Color

Overloaded. Initializes a new instance of the Color class.

 Public Fields

  Name Description

Empty

Represents an empty color.

 Public Methods

  Name Description

clone

Cloneable.clone implementation.

equals

Checks whether this color has the same ARGB values as the specified object.

getA

Gets the alpha component value of the color.

getB

Gets the blue component value of the color.

getG

Gets the green component value of the color.

getName

Gets the name of the color.

getNamedColor

Returns the predefined color with the specified name.

getR

Gets the red component value of the color.

hashCode

Returns a hash code for the color.

isEmpty

Gets a value indicating whether this color is uninitialized.

isNamedColor

Gets a value indicating whether this color is a named color.

readExternal

Externalizable.readExternal implementation.

toArgb

Obtains a 32-bit ARGB representation of the color.

toString

Converts this color to a human-readable string.

writeExternal

Externalizable.writeExternal implementation.

 See Also

Color Class
com.mindfusion.drawing Namespace