Class MeterModel

All Implemented Interfaces:
IPVWidgetModel, IAdaptable, IPropertySource

public class MeterModel extends AbstractMarkedWidgetModel
This class defines a XMeter widget model.
  • Field Details

  • Constructor Details

    • MeterModel

      public MeterModel()
  • 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.
    • getNeedleColor

      public Color getNeedleColor()
      Returns:
      the needle color
    • isRampGradient

      public boolean isRampGradient()
      Returns:
      true if the widget is in horizontal orientation, false otherwise
    • isShowValueLabelVisible

      public boolean isShowValueLabelVisible()
    • isTransparent

      public boolean isTransparent()
      Description copied from class: AbstractScaledWidgetModel
      Returns, if this widget should have a transparent background.
      Overrides:
      isTransparent in class AbstractScaledWidgetModel
      Returns:
      boolean True, if it should have a transparent background, false otherwise