de.java2html.util
Class RGB
java.lang.Object
de.java2html.util.RGB
public class RGB
- extends java.lang.Object
A color representation similar to Color
, but more lightweight, since it does not rquire GUI
libraries.
- Author:
- Markus Gebhard
Constructor Summary |
RGB(int red,
int green,
int blue)
|
Method Summary |
boolean |
equals(java.lang.Object obj)
|
int |
getBlue()
|
int |
getGreen()
|
int |
getRed()
|
int |
hashCode()
|
java.lang.String |
toString()
Returns a string containing a concise, human-readable
description of the receiver. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
MAGENTA
public static final RGB MAGENTA
GREEN
public static final RGB GREEN
BLACK
public static final RGB BLACK
RED
public static final RGB RED
WHITE
public static final RGB WHITE
ORANGE
public static final RGB ORANGE
CYAN
public static final RGB CYAN
BLUE
public static final RGB BLUE
LIGHT_GRAY
public static final RGB LIGHT_GRAY
GRAY
public static final RGB GRAY
DARK_GRAY
public static final RGB DARK_GRAY
YELLOW
public static final RGB YELLOW
PINK
public static final RGB PINK
RGB
public RGB(int red,
int green,
int blue)
getRed
public int getRed()
getGreen
public int getGreen()
getBlue
public int getBlue()
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Returns a string containing a concise, human-readable
description of the receiver.
- Overrides:
toString
in class java.lang.Object
- Returns:
- a string representation of the
RGB
Copyright © 2003 - 2006