public class ATKConstant
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.awt.Font |
labelFont
Default font used by some ATK viewers
|
| Constructor and Description |
|---|
ATKConstant() |
| Modifier and Type | Method and Description |
|---|---|
static java.awt.Color |
getColor4Quality(java.lang.String quality)
Return the default background color according to the given attribute state.
|
static java.awt.Color |
getColor4State(java.lang.String state)
Return the default background color according to the given device state.
|
static java.awt.Color |
getColor4State(java.lang.String state,
boolean invertOpenClose,
boolean invertInsertExtract)
Return the default background color according to the given device state.
|
static javax.swing.ImageIcon |
getIcon4Quality(java.lang.String quality)
Return the default ImageIcon according to the given attribute state.
|
static javax.swing.ImageIcon |
getIcon4State(java.lang.String state)
Return the default ImageIcon according to the given device state.
|
static void |
setColor4Quality(java.lang.String quality,
java.awt.Color c)
Sets the default background color for the attribute quality factor.
|
static void |
setColor4State(java.lang.String state,
java.awt.Color c)
Sets the default background color for the given device state.
|
static void |
setIcon4Quality(java.lang.String quality,
javax.swing.ImageIcon c)
Sets the default ImageIcon for the attribute quality factor.
|
static void |
setIcon4State(java.lang.String state,
javax.swing.ImageIcon c)
Sets the default ImageIcon for the given device state.
|
public static final java.awt.Font labelFont
public static java.awt.Color getColor4State(java.lang.String state)
state - Attribute state.public static java.awt.Color getColor4State(java.lang.String state,
boolean invertOpenClose,
boolean invertInsertExtract)
state - Attribute state.invertOpenClose - The boolean which indicates if the colors should be inverted for open and close.invertInsertExtract - The boolean which indicates if the colors should be inverted for insert and extract.public static void setColor4State(java.lang.String state,
java.awt.Color c)
state - valuec - New colorpublic static java.awt.Color getColor4Quality(java.lang.String quality)
quality - Attribute quality factor (can be "INVALID","WARNING","ALARM","VALID","CHANGING")public static void setColor4Quality(java.lang.String quality,
java.awt.Color c)
quality - value (can be "INVALID","WARNING","ALARM","VALID","CHANGING")c - New colorpublic static javax.swing.ImageIcon getIcon4State(java.lang.String state)
state - Attribute state.public static void setIcon4State(java.lang.String state,
javax.swing.ImageIcon c)
state - valuec - New ImageIconpublic static javax.swing.ImageIcon getIcon4Quality(java.lang.String quality)
quality - Attribute quality factor (can be "INVALID","WARNING","ALARM","VALID","CHANGING")public static void setIcon4Quality(java.lang.String quality,
javax.swing.ImageIcon c)
quality - value (can be "INVALID","WARNING","ALARM","VALID","CHANGING")c - New ImageIcon