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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RGB
getAlarmColor
(AlarmSeverity severity) Returns color of alarm severity.static org.eclipse.draw2d.Border
static RGB
static org.eclipse.draw2d.Border
getInvalidBorder
(BorderStyle borderStyle) static RGB
static org.eclipse.draw2d.Border
getMajorBorder
(BorderStyle borderStyle) static RGB
static org.eclipse.draw2d.Border
getMinorBorder
(BorderStyle borderStyle) static RGB
static boolean
isReservedColor
(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()
-