public static class ColorTable.ColorPair
extends java.lang.Object
implements java.io.Externalizable
Modifier and Type | Field and Description |
---|---|
private int |
bgColor
Background color index
|
private int |
fgColor
Foreground color index
|
Constructor and Description |
---|
ColorPair()
Default constructor.
|
ColorPair(int fgColor,
int bgColor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asString()
Return a color pair string comma separated.
|
int |
getBgColor()
Get background color index
|
int |
getFgColor()
Get foreground color index
|
void |
readExternal(java.io.ObjectInput in)
Replacement for default object reading method.
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
private int fgColor
private int bgColor
public ColorPair()
public ColorPair(int fgColor, int bgColor)
fgColor
- Foreground color;bgColor
- Background color;public final java.lang.String asString()
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- The output destination to which fields will be saved.java.io.IOException
- In case of I/O errors.public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- The input source from which fields will be restored.java.io.IOException
- In case of I/O errors.java.lang.ClassNotFoundException
- If payload can't be instantiated.public int getFgColor()
public int getBgColor()