Class AlarmRepresentationScheme

java.lang.Object
org.csstudio.opibuilder.util.AlarmRepresentationScheme

public class AlarmRepresentationScheme extends Object
The scheme for alarm color which provide unified colors and borders for alarms.
  • Field Details

  • Constructor Details

    • AlarmRepresentationScheme

      public AlarmRepresentationScheme()
  • Method Details

    • isReservedColor

      public static boolean isReservedColor(String colorName)
    • getAlarmColor

      public static RGB getAlarmColor(AlarmSeverity severity)
      Returns color of alarm severity.
      Parameters:
      severity -
      Returns:
      RGB color of the given alarm severity. Null if alarm severity is "OK".
    • getMajorColor

      public static RGB getMajorColor()
    • getMinorColor

      public static RGB getMinorColor()
    • getInvalidColor

      public static RGB getInvalidColor()
    • getDisconnectedColor

      public static RGB getDisconnectedColor()
    • getMajorBorder

      public static org.eclipse.draw2d.Border getMajorBorder(BorderStyle borderStyle)
    • getMinorBorder

      public static org.eclipse.draw2d.Border getMinorBorder(BorderStyle borderStyle)
    • getInvalidBorder

      public static org.eclipse.draw2d.Border getInvalidBorder(BorderStyle borderStyle)
    • getDisconnectedBorder

      public static org.eclipse.draw2d.Border getDisconnectedBorder()