public class Transect
extends java.lang.Object
Constructor and Description |
---|
Transect()
Default ctor
|
Transect(java.lang.String name,
ucar.unidata.geoloc.LatLonPoint p1,
ucar.unidata.geoloc.LatLonPoint p2)
Construct a Transect
|
Transect(java.lang.String name,
java.util.List points)
ctor
|
Transect(Transect that)
Copy ctor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
equals
|
java.awt.Color |
getColor()
Get the Color property.
|
boolean |
getEditable()
Get the Editable property.
|
java.lang.String |
getEndText()
Get the EndText property.
|
java.lang.String |
getName()
Get the Name property.
|
java.util.List |
getPoints()
Get the Points property.
|
java.lang.String |
getStartText()
Get the StartText property.
|
java.lang.String |
getWaypointText()
Get the EndText property.
|
static java.util.List |
parseXml(org.w3c.dom.Element root)
Process the xml
|
void |
setColor(java.awt.Color value)
Set the Color property.
|
void |
setEditable(boolean value)
Set the Editable property.
|
void |
setEndText(java.lang.String value)
Set the EndText property.
|
void |
setName(java.lang.String value)
Set the Name property.
|
void |
setPoints(java.util.List value)
Set the Points property.
|
void |
setStartText(java.lang.String value)
Set the StartText property.
|
void |
setWaypointText(java.lang.String value)
Set the waypointText property.
|
void |
shiftPercent(double latPercent,
double lonPercent,
boolean doPoint1,
boolean doPoint2)
Shift the line by a percent
|
java.lang.String |
toString()
tostring
|
static java.lang.String |
toXml(java.util.List transects)
Convert to xml
|
public Transect()
public Transect(Transect that)
that
- The transect to copypublic Transect(java.lang.String name, java.util.List points)
name
- namepoints
- list of LatLonPointspublic Transect(java.lang.String name, ucar.unidata.geoloc.LatLonPoint p1, ucar.unidata.geoloc.LatLonPoint p2)
name
- name of transectp1
- start pointp2
- end pointpublic static java.util.List parseXml(org.w3c.dom.Element root)
root
- doc rootpublic static java.lang.String toXml(java.util.List transects)
transects
- transectspublic void shiftPercent(double latPercent, double lonPercent, boolean doPoint1, boolean doPoint2)
latPercent
- lat percentlonPercent
- lon percentdoPoint1
- point 1doPoint2
- point 2public void setName(java.lang.String value)
value
- The new value for Namepublic java.lang.String getName()
public void setPoints(java.util.List value)
value
- The new value for Pointspublic java.util.List getPoints()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- thatpublic void setEditable(boolean value)
value
- The new value for Editablepublic boolean getEditable()
public void setStartText(java.lang.String value)
value
- The new value for StartTextpublic java.lang.String getStartText()
public void setEndText(java.lang.String value)
value
- The new value for EndTextpublic java.lang.String getEndText()
public void setWaypointText(java.lang.String value)
value
- The new value for waypointTextpublic java.lang.String getWaypointText()
public void setColor(java.awt.Color value)
value
- The new value for Colorpublic java.awt.Color getColor()