org.geotools.gui.swing
Interface Plot2D.Series

Enclosing interface:
Plot2D

public static interface Plot2D.Series

A series to be displayed in a Plot2D widget. A Series contains the data to draw as a Shape. It also contains the Paint and Stroke attributes.

Version:
$Id: Plot2D.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux

Method Summary
 java.awt.geom.Rectangle2D getBounds2D()
          Returns the bounding box of all x and y ordinates.
 java.awt.Paint getColor()
          Returns the color for this series.
 java.lang.String getName()
          Returns the name of this series.
 int getNumPoints()
          Returns the number of points in this series.
 java.awt.geom.Point2D getValue(int i)
          Returns the point at the specified index.
 java.awt.Shape toShape(java.awt.geom.AffineTransform transform)
          Returns the series data as a path.
 

Method Detail

getName

public java.lang.String getName()
Returns the name of this series.


getColor

public java.awt.Paint getColor()
Returns the color for this series.


getNumPoints

public int getNumPoints()
Returns the number of points in this series.


getValue

public java.awt.geom.Point2D getValue(int i)
                               throws java.lang.IndexOutOfBoundsException
Returns the point at the specified index.

Parameters:
i - The index from 0 inclusive to getNumPoints() exclusive.
Returns:
The point at the given index.
Throws:
java.lang.IndexOutOfBoundsException - if index is out of bounds.

getBounds2D

public java.awt.geom.Rectangle2D getBounds2D()
Returns the bounding box of all x and y ordinates.


toShape

public java.awt.Shape toShape(java.awt.geom.AffineTransform transform)
Returns the series data as a path.

Parameters:
transform - An optional transform to apply on values, or null if none.
Returns:
The (x,y) coordinates as a Java2D shape.


Copyright © GeoTools. All Rights Reserved.