Class StaticGaugeData

  • All Implemented Interfaces:
    ComponentData

    public class StaticGaugeData
    extends java.lang.Object
    implements ComponentData
    Filename: StaticGaugeData.java Created on Apr 11, 2016 Author: Kathy Applebaum Copyright Inductive Automation 2016 Project: gateway-api

    Allows a static value and description that will then be formatted in a way that gauge.js likes. This should be rarely used -- MetricsGaugeData should be used instead. The JSON is built with the value's toString, so make sure this is what you want on the screen.

    • Constructor Summary

      Constructors 
      Constructor Description
      StaticGaugeData​(java.lang.Object value, java.lang.String label)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getLabel()  
      java.lang.Object getValue()  
      void setLabel​(java.lang.String label)  
      void setValue​(java.lang.Object value)  
      JSONObject toJson()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StaticGaugeData

        public StaticGaugeData​(@Nonnull
                               java.lang.Object value,
                               java.lang.String label)
    • Method Detail

      • getValue

        public java.lang.Object getValue()
      • setValue

        public void setValue​(@Nonnull
                             java.lang.Object value)
      • getLabel

        public java.lang.String getLabel()
      • setLabel

        public void setLabel​(java.lang.String label)