public static class ColorTable.EnvironmentColorTable
extends java.lang.Object
implements java.io.Externalizable
Modifier and Type | Field and Description |
---|---|
private java.util.List<ColorTableEntry> |
colors
The environment's color-table.
|
private boolean |
dirty
Dirty flag
|
private java.lang.String |
envName
The environment's name.
|
private java.util.Map<java.lang.String,ColorTable.ColorPair> |
standardColors
The environment's standard colors NORMAL, INPUT and MESSAGES
|
Constructor and Description |
---|
EnvironmentColorTable()
Default constructor
|
EnvironmentColorTable(java.lang.String name,
java.util.List<ColorTableEntry> colorTable,
java.util.Map<java.lang.String,ColorTable.ColorPair> standardColors)
Create a new color-table, for the specified environment.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<ColorTableEntry> |
getColors()
Get environment color-table
|
java.lang.String |
getEnvName()
Get environment name
|
java.util.Map<java.lang.String,ColorTable.ColorPair> |
getStandardColors()
Get environment standard colors
|
void |
readExternal(java.io.ObjectInput in)
Replacement for the default object reading method.
|
void |
setEnvName(java.lang.String envName)
Set environment name
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
private transient volatile boolean dirty
private java.lang.String envName
private java.util.List<ColorTableEntry> colors
private java.util.Map<java.lang.String,ColorTable.ColorPair> standardColors
public EnvironmentColorTable()
public EnvironmentColorTable(java.lang.String name, java.util.List<ColorTableEntry> colorTable, java.util.Map<java.lang.String,ColorTable.ColorPair> standardColors)
name
- The environment's name. Default environment has null
name.colorTable
- The colors part of this color-table.standardColors
- Standard colors table.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
- 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 java.lang.String getEnvName()
public void setEnvName(java.lang.String envName)
envName
- environment namepublic java.util.List<ColorTableEntry> getColors()
public java.util.Map<java.lang.String,ColorTable.ColorPair> getStandardColors()