public class JCassisTableConfiguration
extends java.lang.Object
JCassisTable.| Modifier and Type | Field and Description |
|---|---|
static java.awt.Color |
DEFAULT_COLOR |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(java.lang.String source,
int rgbColorValue)
Add a color for a source.
|
java.awt.Color |
getColorFor(java.lang.String source)
Return the color for a source if one is definited for it
or the default color.
|
static JCassisTableConfiguration |
getInstance()
Create if needed then return the instance of
JCassisTableConfiguration. |
java.util.Set<java.lang.String> |
getKeys()
Return the configured sources
|
void |
saveConfig()
Save the current parameters in the config file.
|
public static JCassisTableConfiguration getInstance()
JCassisTableConfiguration.JCassisTableConfiguration.public java.awt.Color getColorFor(java.lang.String source)
source - The source for which we want the color.public void saveConfig()
public void addElement(java.lang.String source,
int rgbColorValue)
source - The name of the source.rgbColorValue - The rgb color value associated with the source.public java.util.Set<java.lang.String> getKeys()