sum.kern
Class Farbe
java.lang.Object
sum.kern.Farbe
public class Farbe
- extends Object
Konstanten fuer Farben
- Version:
- 7.3 vom 11.10.2011
- Author:
- Bernard Schriek
Constructor Summary |
Farbe()
|
Method Summary |
static Color |
neueFarbe(Color pAlteFarbe)
In einem Dialog liefert der Farbwaehler eine neue Farbe. |
static Color |
rgb(int pR,
int pG,
int pB)
Mischen eigener RGB-Farben |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BLAU
public static final int BLAU
- See Also:
- Constant Field Values
CYAN
public static final int CYAN
- See Also:
- Constant Field Values
DUNKELGRAU
public static final int DUNKELGRAU
- See Also:
- Constant Field Values
GELB
public static final int GELB
- See Also:
- Constant Field Values
GRAU
public static final int GRAU
- See Also:
- Constant Field Values
GRUEN
public static final int GRUEN
- See Also:
- Constant Field Values
HELLGRAU
public static final int HELLGRAU
- See Also:
- Constant Field Values
MAGENTA
public static final int MAGENTA
- See Also:
- Constant Field Values
ORANGE
public static final int ORANGE
- See Also:
- Constant Field Values
PINK
public static final int PINK
- See Also:
- Constant Field Values
ROT
public static final int ROT
- See Also:
- Constant Field Values
SCHWARZ
public static final int SCHWARZ
- See Also:
- Constant Field Values
WEISS
public static final int WEISS
- See Also:
- Constant Field Values
Farbe
public Farbe()
neueFarbe
public static final Color neueFarbe(Color pAlteFarbe)
- In einem Dialog liefert der Farbwaehler eine neue Farbe.
- Parameters:
pAlteFarbe
- die Ausgangsfarbe
- Returns:
- die neue farbe, falls im Dialog Ok gewaehlt wurde
rgb
public static final Color rgb(int pR,
int pG,
int pB)
- Mischen eigener RGB-Farben
- Parameters:
pR
- Rotanteil der FarbepG
- Gruenanteil der FarbepB
- Blauanteil der Farbe
- Returns:
- die neue gemischte farbe