public class ColorPair
extends java.lang.Object
Constructor and Description |
---|
ColorPair(Color foreground_,
Color background_)
Construct a color-pair from a foreground color and a
background color.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object_)
Returns true if this color pair is equal to the specified color
pair.
|
int |
getBackground() |
int |
getForeground() |
void |
setBackground(int color_)
Set the background color.
|
void |
setForeground(int color_)
Set the foreground color.
|
java.lang.String |
toString()
Return a string representation of this object.
|
public boolean equals(java.lang.Object object_)
equals
in class java.lang.Object
public int getForeground()
public int getBackground()
public void setForeground(int color_)
public void setBackground(int color_)
public java.lang.String toString()
toString
in class java.lang.Object