Class Transect

java.lang.Object
ucar.unidata.data.gis.Transect

public class Transect extends Object
Holds a list of lat/lon points
  • Constructor Details

    • Transect

      public Transect()
      Default ctor
    • Transect

      public Transect(Transect that)
      Copy ctor
      Parameters:
      that - The transect to copy
    • Transect

      public Transect(String name, List points)
      ctor
      Parameters:
      name - name
      points - list of LatLonPoints
    • Transect

      public Transect(String name, ucar.unidata.geoloc.LatLonPoint p1, ucar.unidata.geoloc.LatLonPoint p2)
      Construct a Transect
      Parameters:
      name - name of transect
      p1 - start point
      p2 - end point
  • Method Details

    • parseXml

      public static List parseXml(Element root)
      Process the xml
      Parameters:
      root - doc root
      Returns:
      List of Transect objects
    • toXml

      public static String toXml(List transects)
      Convert to xml
      Parameters:
      transects - transects
      Returns:
      Xml
    • shiftPercent

      public void shiftPercent(double latPercent, double lonPercent, boolean doPoint1, boolean doPoint2)
      Shift the line by a percent
      Parameters:
      latPercent - lat percent
      lonPercent - lon percent
      doPoint1 - point 1
      doPoint2 - point 2
    • setName

      public void setName(String value)
      Set the Name property.
      Parameters:
      value - The new value for Name
    • getName

      public String getName()
      Get the Name property.
      Returns:
      The Name
    • setPoints

      public void setPoints(List value)
      Set the Points property.
      Parameters:
      value - The new value for Points
    • getPoints

      public List getPoints()
      Get the Points property.
      Returns:
      The Points
    • toString

      public String toString()
      tostring
      Overrides:
      toString in class Object
      Returns:
      tostring
    • equals

      public boolean equals(Object o)
      equals
      Overrides:
      equals in class Object
      Parameters:
      o - that
      Returns:
      equals
    • setEditable

      public void setEditable(boolean value)
      Set the Editable property.
      Parameters:
      value - The new value for Editable
    • getEditable

      public boolean getEditable()
      Get the Editable property.
      Returns:
      The Editable
    • setStartText

      public void setStartText(String value)
      Set the StartText property.
      Parameters:
      value - The new value for StartText
    • getStartText

      public String getStartText()
      Get the StartText property.
      Returns:
      The StartText
    • setEndText

      public void setEndText(String value)
      Set the EndText property.
      Parameters:
      value - The new value for EndText
    • getEndText

      public String getEndText()
      Get the EndText property.
      Returns:
      The EndText
    • setWaypointText

      public void setWaypointText(String value)
      Set the waypointText property.
      Parameters:
      value - The new value for waypointText
    • getWaypointText

      public String getWaypointText()
      Get the EndText property.
      Returns:
      The EndText
    • setColor

      public void setColor(Color value)
      Set the Color property.
      Parameters:
      value - The new value for Color
    • getColor

      public Color getColor()
      Get the Color property.
      Returns:
      The Color