Class LabelSymbol

All Implemented Interfaces:
Cloneable

public class LabelSymbol extends TextSymbol
Label symbol.
Version:
$Revision: 1.11 $
Author:
Metapps development team
  • Constructor Details

    • LabelSymbol

      public LabelSymbol()
      Default constructor.
    • LabelSymbol

      public LabelSymbol(int x, int y)
      Construct a LabelSymbol without a canvas at the position specified. Use the parameter names and long names specified.
      Parameters:
      x - x position
      y - y position
    • LabelSymbol

      public LabelSymbol(DisplayCanvas canvas, int x, int y)
      Construct a LabelSymbol to use on the canvas specified at the position specified. Use the parameter names and long names specified.
      Parameters:
      canvas - canvas to draw on.
      x - x position on the canvas
      y - y position on the canvas
  • Method Details

    • initPropertyComponents

      protected void initPropertyComponents(List comps)
      Add any components to the list of widgets for the main property dialog tab.
      Overrides:
      initPropertyComponents in class MetSymbol
      Parameters:
      comps - List of components.
    • applyProperties

      protected void applyProperties()
      Apply properties from the properties dialog.
      Overrides:
      applyProperties in class MetSymbol
    • getParamIds

      public String[] getParamIds()
      Get the parameter ids for this MetSymbol.
      Overrides:
      getParamIds in class MetSymbol
      Returns:
      array of parameter ids
    • getStretchy

      public boolean getStretchy()
      Get whether this MetSymbol can be stretched or not.
      Overrides:
      getStretchy in class Glyph
      Returns:
      true if can be stretched.
    • setStretchy

      public void setStretchy(boolean s)
      Is this stretchy
      Overrides:
      setStretchy in class Glyph
      Parameters:
      s - Is this stretchy
    • getParamValue

      public Object getParamValue(int index)
      Get the parameter value at the index specified.
      Overrides:
      getParamValue in class TextSymbol
      Parameters:
      index - index into param array
      Returns:
      value of uOrSpeedParam if index = 0, otherwise vOrDirParam value
    • getValueString

      protected String getValueString()
      Get the value string
      Overrides:
      getValueString in class TextSymbol
      Returns:
      a string representation of the size
    • getEqualSides

      public boolean getEqualSides()
      Get whether this MetSymbol has equals sides (width and height).
      Overrides:
      getEqualSides in class RectangleGlyph
      Returns:
      true
    • xxxdoAllObs

      public boolean xxxdoAllObs()
      Should this symbol do all of the observations. Used by the StationModelDisplayable to determine if makeShapes should be called.
      Returns:
      Do all obs - true.
    • xxxmakeShapes

      public VisADGeometryArray[] xxxmakeShapes(PointOb ob)
      Make the shapes.
      Parameters:
      ob - The observation. We don't use this.
      Returns:
      The array of shapes.
    • getText

      public String getText()
      get the value string
      Returns:
      value string
    • getLabel

      public String getLabel()
      Get a label for this symbol.
      Overrides:
      getLabel in class TextSymbol
      Returns:
      a human readable label
    • toString

      public String toString()
      String representation of this object.
      Overrides:
      toString in class TextSymbol
      Returns:
      String version of this object.