Class ValueSymbol

All Implemented Interfaces:
Cloneable

public class ValueSymbol extends TextSymbol
Value Symbol meteorological Symbol. Used for displaying numeric values in specific units.
Version:
$Revision: 1.21 $
Author:
MetApps Development Team
  • Constructor Details

    • ValueSymbol

      public ValueSymbol()
      Default ctor
    • ValueSymbol

      public ValueSymbol(DisplayCanvas canvas, int x, int y)
      Create a new ValueSymbol
      Parameters:
      canvas - canvas for painting
      x - x position
      y - y position
    • ValueSymbol

      public ValueSymbol(int x, int y, String param, String paramDesc, Unit unit)
      Create a new ValueSymbol
      Parameters:
      x - x position
      y - y position
      param - the parameter name
      paramDesc - the parameter description
      unit - the unit for the param
    • ValueSymbol

      public ValueSymbol(int x, int y, String param, String paramDesc)
      Create a new ValueSymbol
      Parameters:
      x - x position
      y - y position
      param - the parameter name
      paramDesc - the parameter description
    • ValueSymbol

      public ValueSymbol(DisplayCanvas canvas, int x, int y, String param, String paramDesc)
      Create a new ValueSymbol
      Parameters:
      canvas - canvas to paint on
      x - x position
      y - y position
      param - the parameter name
      paramDesc - the parameter description
    • ValueSymbol

      public ValueSymbol(DisplayCanvas canvas, int x, int y, String param, String paramDesc, Unit u)
      Create a new ValueSymbol
      Parameters:
      canvas - canvas to paint on
      x - x position
      y - y position
      param - the parameter name
      paramDesc - the parameter description
      u - the unit
  • Method Details

    • showDisplayUnitInProperties

      protected boolean showDisplayUnitInProperties()
      Should we show the display unit widget in the properties dialog
      Overrides:
      showDisplayUnitInProperties in class MetSymbol
      Returns:
      true
    • getLabel

      public String getLabel()
      Get the label to show the user what I am in the properties
      Overrides:
      getLabel in class TextSymbol
      Returns:
      The label
    • getParamValue

      public Object getParamValue(int index)
      Get the parameter value at the particular index
      Overrides:
      getParamValue in class TextSymbol
      Parameters:
      index - index into list of params
      Returns:
      the value
    • setParamValue

      public void setParamValue(int index, Object v)
      Set the parameter value at the particular index
      Overrides:
      setParamValue in class TextSymbol
      Parameters:
      index - index into list of params
      v - the value
    • getDoubleValue

      public double getDoubleValue()
      Get the value as a double
      Returns:
      the double value
    • setDoubleValue

      public void setDoubleValue(double value)
      Set the double value
      Parameters:
      value - the value