Package org.csstudio.opibuilder.util
Class AlarmRepresentationScheme
java.lang.Object
org.csstudio.opibuilder.util.AlarmRepresentationScheme
The scheme for alarm color which provide unified colors and borders for alarms.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RGBgetAlarmColor(AlarmSeverity severity) Returns color of alarm severity.static org.eclipse.draw2d.Borderstatic RGBstatic org.eclipse.draw2d.BordergetInvalidBorder(BorderStyle borderStyle) static RGBstatic org.eclipse.draw2d.BordergetMajorBorder(BorderStyle borderStyle) static RGBstatic org.eclipse.draw2d.BordergetMinorBorder(BorderStyle borderStyle) static RGBstatic booleanisReservedColor(String colorName)
-
Field Details
-
ALARM_BORDER_WIDTH
public static final int ALARM_BORDER_WIDTH- See Also:
-
MAJOR
- See Also:
-
MINOR
- See Also:
-
INVALID
- See Also:
-
DISCONNECTED
- See Also:
-
-
Constructor Details
-
AlarmRepresentationScheme
public AlarmRepresentationScheme()
-
-
Method Details
-
isReservedColor
-
getAlarmColor
Returns color of alarm severity.- Parameters:
severity-- Returns:
- RGB color of the given alarm severity. Null if alarm severity is "OK".
-
getMajorColor
-
getMinorColor
-
getInvalidColor
-
getDisconnectedColor
-
getMajorBorder
-
getMinorBorder
-
getInvalidBorder
-
getDisconnectedBorder
public static org.eclipse.draw2d.Border getDisconnectedBorder()
-