Package ucar.unidata.data.gis
Class Transect
java.lang.Object
ucar.unidata.data.gis.Transect
Holds a list of lat/lon points
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequalsgetColor()Get the Color property.booleanGet the Editable property.Get the EndText property.getName()Get the Name property.Get the Points property.Get the StartText property.Get the EndText property.static ListProcess the xmlvoidSet the Color property.voidsetEditable(boolean value) Set the Editable property.voidsetEndText(String value) Set the EndText property.voidSet the Name property.voidSet the Points property.voidsetStartText(String value) Set the StartText property.voidsetWaypointText(String value) Set the waypointText property.voidshiftPercent(double latPercent, double lonPercent, boolean doPoint1, boolean doPoint2) Shift the line by a percenttoString()tostringstatic StringConvert to xml
-
Constructor Details
-
Transect
public Transect()Default ctor -
Transect
Copy ctor- Parameters:
that- The transect to copy
-
Transect
ctor- Parameters:
name- namepoints- 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 transectp1- start pointp2- end point
-
-
Method Details
-
parseXml
Process the xml- Parameters:
root- doc root- Returns:
- List of Transect objects
-
toXml
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 percentlonPercent- lon percentdoPoint1- point 1doPoint2- point 2
-
setName
Set the Name property.- Parameters:
value- The new value for Name
-
getName
Get the Name property.- Returns:
- The Name
-
setPoints
Set the Points property.- Parameters:
value- The new value for Points
-
getPoints
Get the Points property.- Returns:
- The Points
-
toString
tostring -
equals
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
Set the StartText property.- Parameters:
value- The new value for StartText
-
getStartText
Get the StartText property.- Returns:
- The StartText
-
setEndText
Set the EndText property.- Parameters:
value- The new value for EndText
-
getEndText
Get the EndText property.- Returns:
- The EndText
-
setWaypointText
Set the waypointText property.- Parameters:
value- The new value for waypointText
-
getWaypointText
Get the EndText property.- Returns:
- The EndText
-
setColor
Set the Color property.- Parameters:
value- The new value for Color
-
getColor
Get the Color property.- Returns:
- The Color
-