sgtplot.contour
Class ContourLine
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.Vector
-
- sgtplot.contour.ContourLine
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess
public class ContourLine extends java.util.VectorContourLinecontains a single closed or open contour and a list of its labels. The level, closedness, and path are properties. The path is stored as aVectorofPoint2Duser coordinate values.ContourLineobjects are created byContourand drawn byGridCartesianRenderer. Time coordinates are stored in thePoint2Dobjects releative to a reference time.- Since:
- 2.0
- See Also:
Contour,ContourLineAttribute,DefaultContourLineAttribute,GridCartesianRenderer, Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ContourLine()Default constructor.ContourLine(int size)Constructor setting initial size of coordinateVector.ContourLine(int size, int extend)Constructor setting initial size and extend values of coordinateVector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddLabel(int point, SGLabel lab, double hgt, double wid)Add a label to the contour line.voiddraw(org.freehep.graphics2d.VectorGraphics g)Used internally by sgtplot.ContourLineAttributegetContourLineAttribute()Get theContourLineAttributeDefaultContourLineAttributegetDefaultContourLineAttribute()Get theDefaultContourLineAttributeintgetKmax()Get the number of points in the contour line.doublegetLevel()The level value of the contour line.GeoDategetReferenceTime()Get reference time for the time point of thePoint2Dobject.double[]getXArrayP()Get x physical coordinates of the contour line.double[]getYArrayP()Get y physical coordinates of the contour line.booleanisClosed()Is the contour line closed?booleanisXTime()Is the x coordinate time?booleanisYTime()Is the y coordinate time?voidremoveAllLabels()Remove all labels.voidsetAttributes(DefaultContourLineAttribute def, ContourLineAttribute attr)Set the attributes for the contour line.voidsetCartesianGraph(CartesianGraph cg)Set the parentCartesianGraph.voidsetContourLineAttribute(ContourLineAttribute attr)Set theContourLineAttributevoidsetDefaultContourLineAttribute(DefaultContourLineAttribute def)Set theDefaultContourLineAttribute-
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
-
-
-
-
Constructor Detail
-
ContourLine
public ContourLine()
Default constructor.
-
ContourLine
public ContourLine(int size, int extend)Constructor setting initial size and extend values of coordinateVector.
-
ContourLine
public ContourLine(int size)
Constructor setting initial size of coordinateVector.
-
-
Method Detail
-
setCartesianGraph
public void setCartesianGraph(CartesianGraph cg)
Set the parentCartesianGraph. Used internally by sgtplot.
-
setAttributes
public void setAttributes(DefaultContourLineAttribute def, ContourLineAttribute attr)
Set the attributes for the contour line.
-
setContourLineAttribute
public void setContourLineAttribute(ContourLineAttribute attr)
Set theContourLineAttribute
-
getContourLineAttribute
public ContourLineAttribute getContourLineAttribute()
Get theContourLineAttribute
-
setDefaultContourLineAttribute
public void setDefaultContourLineAttribute(DefaultContourLineAttribute def)
Set theDefaultContourLineAttribute
-
getDefaultContourLineAttribute
public DefaultContourLineAttribute getDefaultContourLineAttribute()
Get theDefaultContourLineAttribute
-
isClosed
public boolean isClosed()
Is the contour line closed?
-
getLevel
public double getLevel()
The level value of the contour line.
-
getKmax
public int getKmax()
Get the number of points in the contour line.
-
getReferenceTime
public GeoDate getReferenceTime()
Get reference time for the time point of thePoint2Dobject.
-
isXTime
public boolean isXTime()
Is the x coordinate time?
-
isYTime
public boolean isYTime()
Is the y coordinate time?
-
addLabel
public void addLabel(int point, SGLabel lab, double hgt, double wid)Add a label to the contour line.
-
removeAllLabels
public void removeAllLabels()
Remove all labels.
-
draw
public void draw(org.freehep.graphics2d.VectorGraphics g)
Used internally by sgtplot.
-
getXArrayP
public double[] getXArrayP()
Get x physical coordinates of the contour line.
-
getYArrayP
public double[] getYArrayP()
Get y physical coordinates of the contour line.
-
-
DMelt 3.0 © DataMelt by jWork.ORG