Documentation of 'sgtplot.contour.ContourLine' Java class
ContourLine
sgtplot.contour

Class 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.Vector
    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.
    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 coordinate Vector.
      ContourLine(int size, int extend)
      Constructor setting initial size and extend values of coordinate Vector.
    • Constructor Detail

      • ContourLine

        public ContourLine()
        Default constructor.
      • ContourLine

        public ContourLine(int size,
                           int extend)
        Constructor setting initial size and extend values of coordinate Vector.
      • ContourLine

        public ContourLine(int size)
        Constructor setting initial size of coordinate Vector.
    • Method Detail

      • setCartesianGraph

        public void setCartesianGraph(CartesianGraph cg)
        Set the parent CartesianGraph. Used internally by sgtplot.
      • setContourLineAttribute

        public void setContourLineAttribute(ContourLineAttribute attr)
        Set the ContourLineAttribute
      • getContourLineAttribute

        public ContourLineAttribute getContourLineAttribute()
        Get the ContourLineAttribute
      • setDefaultContourLineAttribute

        public void setDefaultContourLineAttribute(DefaultContourLineAttribute def)
        Set the DefaultContourLineAttribute
      • getDefaultContourLineAttribute

        public DefaultContourLineAttribute getDefaultContourLineAttribute()
        Get the DefaultContourLineAttribute
      • 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 the Point2D object.
      • 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

You see the box below because you did not login.