Class ThermometerModel

All Implemented Interfaces:
IPVWidgetModel, IAdaptable, IPropertySource

public class ThermometerModel extends AbstractMarkedWidgetModel
This class defines a thermometer widget model.
  • Field Details

  • Constructor Details

    • ThermometerModel

      public ThermometerModel()
  • Method Details

    • configureProperties

      protected void configureProperties()
      Description copied from class: AbstractWidgetModel
      Configure the properties of the widget. Subclass should add new properties in this method.
      Overrides:
      configureProperties in class AbstractMarkedWidgetModel
    • getTypeID

      public String getTypeID()
      Specified by:
      getTypeID in class AbstractWidgetModel
      Returns:
      the unique typeID of the model.
    • getFillColor

      public Color getFillColor()
      Returns:
      the fill color
    • isFillColorAlarmSensitive

      public boolean isFillColorAlarmSensitive()
      Returns:
      true if the fill color is sensitive to alarm
    • isShowBulb

      public boolean isShowBulb()
      Returns:
      true if the bulb should be shown, false otherwise
    • getUnit

      Returns:
      true if unit is in fahrenheit, false otherwise
    • isEffect3D

      public boolean isEffect3D()
      Returns:
      true if the widget would be painted with 3D effect, false otherwise
    • getFillbackgroundColor

      public Color getFillbackgroundColor()
      Gets the RGB for fillbackground.
      Returns:
      The fillbackground color