public class ColorTableEntry extends ColorRgb implements java.io.Externalizable
| Modifier and Type | Field and Description |
|---|---|
private boolean |
dynamic
Dynamic attribute
|
private int |
index
Color index
|
| Constructor and Description |
|---|
ColorTableEntry()
Default constructor.
|
ColorTableEntry(int index,
ColorRgb rgb)
Constructor.
|
ColorTableEntry(int index,
int red,
int green,
int blue)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex()
Get color index.
|
boolean |
isDynamic()
Check if dynamic color.
|
void |
readExternal(java.io.ObjectInput in)
Replacement for default object reading method.
|
void |
setDynamic(boolean dynamic)
Set color as dynamic.
|
void |
setIndex(int index)
Set color index.
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for default object writing method.
|
asHexString, asHtmlString, asRGBAString, asRGBString, asString, equals, fromHSL, fromRgb, fromString, getBlue, getGreen, getGuiRgb, getName, getRed, getRgb, hashCode, readColorRgb, setBlue, setGreen, setGuiRgb, setName, setRed, setRgb, toHSL, toString, writeColorRgbpublic ColorTableEntry()
public ColorTableEntry(int index,
int red,
int green,
int blue)
index - Color index.red - Red value.green - Green value.blue - Blue value.public ColorTableEntry(int index,
ColorRgb rgb)
index - Color index.rgb - ColorRgb instance.public int getIndex()
public void setIndex(int index)
index - New index.public boolean isDynamic()
public void setDynamic(boolean dynamic)
dynamic - true if dynamic.public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class ColorRgbin - 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 void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class ColorRgbout - The output destination to which fields will be saved.java.io.IOException - In case of I/O errors.