All Implemented Interfaces:
DynamicPropertyProvider, LocaleListener, MutableDynamicPropertyProvider, StyleProvider, ComponentLifecycle, DesignerInitializable, QualityMonitor, VisionComponent, ImageObserver, MenuContainer, Serializable

public class PMICylindricalTank extends AbstractRangedComponent implements DesignerInitializable
See Also:
  • Field Details

    • tankColor

      protected Color tankColor
    • liquidColor

      protected Color liquidColor
    • fontColor

      protected Color fontColor
    • showPercent

      protected boolean showPercent
    • showValue

      protected boolean showValue
    • antiAlias

      protected boolean antiAlias
    • units

      protected String units
    • rotator

      protected Rotator rotator
  • Constructor Details

    • PMICylindricalTank

      public PMICylindricalTank()
  • Method Details

    • initialize

      public void initialize()
      Specified by:
      initialize in interface DesignerInitializable
    • setShowPercent

      public void setShowPercent(boolean b)
    • setValue

      public void setValue(double value)
      This override is needed to fix IGN-2898
      Overrides:
      setValue in class AbstractRangedComponent
    • isShowPercent

      public boolean isShowPercent()
    • setModel

      @Deprecated public void setModel(BoundedRangeModel model)
      Deprecated.
      This component used to hold its value in a BoundedRangeModel, so this is here for serialization backwards-capacity.
    • paintComponent

      public void paintComponent(Graphics g)
      Overrides:
      paintComponent in class AbstractVisionComponent
    • getLiquidColor

      public Color getLiquidColor()
    • getTankColor

      public Color getTankColor()
    • setLiquidColor

      public void setLiquidColor(Color color)
    • setTankColor

      public void setTankColor(Color color)
    • isShowValue

      public boolean isShowValue()
    • setShowValue

      public void setShowValue(boolean b)
    • getUnits

      public String getUnits()
    • setUnits

      public void setUnits(String string)
    • isAntiAlias

      public boolean isAntiAlias()
    • setAntiAlias

      public void setAntiAlias(boolean ignored)
    • getRotation

      public int getRotation()
    • setRotation

      public void setRotation(int i)
    • getFontColor

      public Color getFontColor()
    • setFontColor

      public void setFontColor(Color color)