|
Eclipse Rich Ajax Platform Release 1.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.graphics.Resource
org.eclipse.swt.graphics.Color
Instances of this class manage resources that implement SWT's RGB color model.
To create a color, use one of the getColor
methods in class
Graphics
and either specify the individual color components as
integers in the range 0 to 255 or provide an instance of an RGB
.
RGB
,
Device.getSystemColor(int)
,
Graphics
Method Summary | |
boolean |
equals(Object object)
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. |
int |
getBlue()
Returns the amount of blue in the color, from 0 to 255. |
int |
getGreen()
Returns the amount of green in the color, from 0 to 255. |
int |
getRed()
Returns the amount of red in the color, from 0 to 255. |
RGB |
getRGB()
Returns an RGB representing the receiver. |
int |
hashCode()
Returns an integer hash code for the receiver. |
String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
public int getBlue()
SWTException
- public int getGreen()
SWTException
- public int getRed()
SWTException
- public RGB getRGB()
RGB
representing the receiver.
SWTException
- public boolean equals(Object object)
object
- the object to compare with this object
true
if the object is the same as this object and
false
otherwisehashCode()
public int hashCode()
true
when passed to equals
must return the
same value for this method.
equals(java.lang.Object)
public String toString()
|
Eclipse Rich Ajax Platform Release 1.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) Innoopract Informationssysteme GmbH and others 2002, 2008. All rights reserved.