|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.esrf.tangoatk.widget.util.ATKConstant
public class ATKConstant
Contains various constants used in ATK.
| Field Summary | |
|---|---|
static java.awt.Font |
labelFont
Default font used by some ATK viewers |
| Constructor Summary | |
|---|---|
ATKConstant()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.awt.Font labelFont
| Constructor Detail |
|---|
public ATKConstant()
| Method Detail |
|---|
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||