Class GraphMLStatus

    • Constructor Detail

      • GraphMLStatus

        public GraphMLStatus​(OnmsSeverity severity,
                             java.util.Map<java.lang.String,​java.lang.String> styleProperties)
      • GraphMLStatus

        public GraphMLStatus​(OnmsSeverity severity)
    • Method Detail

      • getAllowedStyleProperties

        protected abstract java.util.Set<java.lang.String> getAllowedStyleProperties()
      • computeStatus

        public final java.lang.String computeStatus()
        Specified by:
        computeStatus in interface Status
      • getStatusProperties

        public java.util.Map<java.lang.String,​java.lang.String> getStatusProperties()
        Specified by:
        getStatusProperties in interface Status
      • getStyleProperties

        public final java.util.Map<java.lang.String,​java.lang.String> getStyleProperties()
        Description copied from interface: Status
        Defines a CSS-Property to Value mapping, where the key defines the CSS-Property and the value the according value. Each entry is applied to the GWTEdge style attribute. If no style should be applied in addition, return an empty map.
        Specified by:
        getStyleProperties in interface Status
        Returns:
        CSS-Property to Value-Mapping for each GWTEdge. Must NOT be null
      • style

        public final GraphMLStatus style​(java.util.Map<java.lang.String,​java.lang.String> style)
      • style

        public final GraphMLStatus style​(java.lang.String key,
                                         java.lang.String value)
      • checkStylePropertyNames

        protected final java.util.Map<java.lang.String,​java.lang.String> checkStylePropertyNames​(java.util.Map<java.lang.String,​java.lang.String> styleProperties)
      • mergeStyleProperties

        protected static java.util.Map<java.lang.String,​java.lang.String> mergeStyleProperties​(GraphMLStatus s1,
                                                                                                     GraphMLStatus s2)