|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.Vector | +--gov.noaa.pmel.sgt.contour.ContourLine
ContourLine
contains a single closed or open contour
and a list of its labels.
The level, closedness, and path are properties.
The path is stored as a Vector
of Point2D
user coordinate values. ContourLine
objects are
created by Contour
and drawn by
GridCartesianRenderer
. Time coordinates are stored in
the Point2D
objects releative to a reference time.
Contour
,
ContourLineAttribute
,
DefaultContourLineAttribute
,
GridCartesianRenderer
, Serialized FormConstructor Summary | |
ContourLine()
Default constructor. |
|
ContourLine(int size)
Constructor setting initial size of coordinate Vector . |
|
ContourLine(int size,
int extend)
Constructor setting initial size and extend values of coordinate Vector . |
Method Summary | |
void |
addLabel(int point,
SGLabel lab,
double hgt,
double wid)
Add a label to the contour line. |
void |
draw(java.awt.Graphics g)
Used internally by sgt. |
ContourLineAttribute |
getContourLineAttribute()
Get the ContourLineAttribute |
DefaultContourLineAttribute |
getDefaultContourLineAttribute()
Get the DefaultContourLineAttribute |
int |
getKmax()
Get the number of points in the contour line. |
double |
getLevel()
The level value of the contour line. |
GeoDate |
getReferenceTime()
Get reference time for the time point of the Point2D object. |
double[] |
getXArrayP()
Get x physical coordinates of the contour line. |
double[] |
getYArrayP()
Get y physical coordinates of the contour line. |
boolean |
isClosed()
Is the contour line closed? |
boolean |
isXTime()
Is the x coordinate time? |
boolean |
isYTime()
Is the y coordinate time? |
void |
removeAllLabels()
Remove all labels. |
void |
setAttributes(DefaultContourLineAttribute def,
ContourLineAttribute attr)
Set the attributes for the contour line. |
void |
setCartesianGraph(CartesianGraph cg)
Set the parent CartesianGraph . |
void |
setContourLineAttribute(ContourLineAttribute attr)
Set the ContourLineAttribute |
void |
setDefaultContourLineAttribute(DefaultContourLineAttribute def)
Set the DefaultContourLineAttribute |
Methods inherited from class java.util.Vector |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.util.AbstractList |
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
iterator, listIterator, listIterator |
Constructor Detail |
public ContourLine()
public ContourLine(int size, int extend)
Vector
.public ContourLine(int size)
Vector
.Method Detail |
public void setCartesianGraph(CartesianGraph cg)
CartesianGraph
. Used internally by
sgt.public void setAttributes(DefaultContourLineAttribute def, ContourLineAttribute attr)
public void setContourLineAttribute(ContourLineAttribute attr)
ContourLineAttribute
public ContourLineAttribute getContourLineAttribute()
ContourLineAttribute
public void setDefaultContourLineAttribute(DefaultContourLineAttribute def)
DefaultContourLineAttribute
public DefaultContourLineAttribute getDefaultContourLineAttribute()
DefaultContourLineAttribute
public boolean isClosed()
public double getLevel()
public int getKmax()
public GeoDate getReferenceTime()
Point2D
object.public boolean isXTime()
public boolean isYTime()
public void addLabel(int point, SGLabel lab, double hgt, double wid)
public void removeAllLabels()
public void draw(java.awt.Graphics g)
public double[] getXArrayP()
public double[] getYArrayP()
|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |