ucar.unidata.data.gis
Class Transect

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

public class Transect
extends Object

Holds a list of lat/lon points


Constructor Summary
Transect()
          Default ctor
Transect(String name, ucar.unidata.geoloc.LatLonPoint p1, ucar.unidata.geoloc.LatLonPoint p2)
           
Transect(String name, List points)
          ctor
Transect(Transect that)
          Copy ctor
 
Method Summary
 boolean equals(Object o)
          equals
 Color getColor()
          Get the Color property.
 boolean getEditable()
          Get the Editable property.
 String getEndText()
          Get the EndText property.
 String getName()
          Get the Name property.
 List getPoints()
          Get the Points property.
 String getStartText()
          Get the StartText property.
static List parseXml(Element root)
          Process the xml
 void setColor(Color value)
          Set the Color property.
 void setEditable(boolean value)
          Set the Editable property.
 void setEndText(String value)
          Set the EndText property.
 void setName(String value)
          Set the Name property.
 void setPoints(List value)
          Set the Points property.
 void setStartText(String value)
          Set the StartText property.
 String toString()
          tostring
static String toXml(List transects)
          Convert to xml
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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

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

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