|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cosylab.gui.displayers.DefaultConditionDescriptor
public class DefaultConditionDescriptor
DefaultConditionDescriptor take cares of Condition Colors , it defines default colors for Conditions , sets Conditions other Colors.
| Field Summary | |
|---|---|
static java.awt.Color |
DEFAULT_ERROR
Default ERROR color. |
static java.awt.Color |
DEFAULT_OK
Default OK color. |
static java.awt.Color |
DEFAULT_UNUSED
Defaut UNUSED color. |
static java.awt.Color |
DEFAULT_WARNING
Default WARNING color. |
| Constructor Summary | |
|---|---|
DefaultConditionDescriptor()
Simple constructor... |
|
| Method Summary | |
|---|---|
void |
clear()
Clears all colors |
boolean |
isOverRideOn()
Tells if DefaultConditionDescriptor is in overRide mode |
void |
putConditionToColor(BitCondition condition,
java.awt.Color color)
Changes Conditions old Color to new Color , if new Color is allready used by other Condition then it throws IllegalArgumentException(). |
void |
setDefaultColors()
Sets the default colors for conditions |
void |
setOverRideOn(boolean value)
If in override mode , then color can be used on more then one Condition , else olny for one (if Color is allready used by other condition , it will throw IllegalArgumentException). |
java.awt.Color |
toColor(BitCondition condition)
returns color of condition |
BitCondition |
toCondition(java.awt.Color color)
returns condition of color |
| 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.Color DEFAULT_ERROR
public static final java.awt.Color DEFAULT_UNUSED
public static final java.awt.Color DEFAULT_WARNING
public static final java.awt.Color DEFAULT_OK
| Constructor Detail |
|---|
public DefaultConditionDescriptor()
| Method Detail |
|---|
public void setDefaultColors()
public java.awt.Color toColor(BitCondition condition)
ConditionDescriptor
toColor in interface ConditionDescriptor
public void putConditionToColor(BitCondition condition,
java.awt.Color color)
condition - to change colorcolor - to what colorpublic void setOverRideOn(boolean value)
value - public boolean isOverRideOn()
public BitCondition toCondition(java.awt.Color color)
ConditionDescriptor
toCondition in interface ConditionDescriptorpublic void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||