Package org.geotools.renderer.chart
Class GeometryDataset
- Object
-
- AbstractDataset
-
- AbstractSeriesDataset
-
- AbstractXYDataset
-
- GeometryDataset
-
- All Implemented Interfaces:
ObjectInputValidation
,Serializable
,Cloneable
,EventListener
,Dataset
,SeriesChangeListener
,SeriesDataset
,XYDataset
public class GeometryDataset extends AbstractXYDataset
A dataset for plotting Geometry objects .Geometry g1 = ... Geometry g2 = ... GeometryDataset data = new GeometryDataset(g1,g2); GeometryRenderer renderer = new GeometryRenderer(); XYPlot plot = new XYPlot(dataset, dataset.getDomain(), dataset.getRange(), renderer); ...
- Author:
- Justin Deoliveira, OpenGeo
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GeometryDataset(Geometry... geometries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueAxis
getDomain()
List<Geometry>
getGeometries()
int
getItemCount(int series)
ValueAxis
getRange()
int
getSeriesCount()
Comparable
getSeriesKey(int series)
Number
getX(int series, int item)
Number
getY(int series, int item)
void
setBuffer(double buffer)
-
Methods inherited from class AbstractDataset
addChangeListener, clone, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject
-
Methods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
GeometryDataset
public GeometryDataset(Geometry... geometries)
-
-
Method Detail
-
setBuffer
public void setBuffer(double buffer)
-
getSeriesCount
public int getSeriesCount()
- Specified by:
getSeriesCount
in interfaceSeriesDataset
- Specified by:
getSeriesCount
in classAbstractSeriesDataset
-
getSeriesKey
public Comparable getSeriesKey(int series)
- Specified by:
getSeriesKey
in interfaceSeriesDataset
- Specified by:
getSeriesKey
in classAbstractSeriesDataset
-
getItemCount
public int getItemCount(int series)
-
getX
public Number getX(int series, int item)
-
getY
public Number getY(int series, int item)
-
getDomain
public ValueAxis getDomain()
-
getRange
public ValueAxis getRange()
-
-