Class TankModel

All Implemented Interfaces:
IPVWidgetModel, IAdaptable, IPropertySource

public class TankModel extends AbstractMarkedWidgetModel
This class defines a tank widget model.
  • Field Details

    • PROP_FILL_COLOR

      public static final String PROP_FILL_COLOR
      The ID of the fill color property.
      See Also:
    • PROP_FILLCOLOR_ALARM_SENSITIVE

      public static final String PROP_FILLCOLOR_ALARM_SENSITIVE
      The ID of the fillcolor alarm sensitive property.
      See Also:
    • PROP_EFFECT3D

      public static final String PROP_EFFECT3D
      The ID of the show minor ticks property.
      See Also:
    • PROP_FILLBACKGROUND_COLOR

      public static final String PROP_FILLBACKGROUND_COLOR
      The ID of the fillbackground-Color property.
      See Also:
    • ID

      public static final String ID
      The ID of this widget model.
      See Also:
  • Constructor Details

    • TankModel

      public TankModel()
  • 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
    • isEffect3D

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

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