Class 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 Detail

      • GeometryDataset

        public GeometryDataset​(Geometry... geometries)
    • Method Detail

      • setBuffer

        public void setBuffer​(double buffer)
      • getSeriesCount

        public int getSeriesCount()
        Specified by:
        getSeriesCount in interface SeriesDataset
        Specified by:
        getSeriesCount in class AbstractSeriesDataset
      • getSeriesKey

        public Comparable getSeriesKey​(int series)
        Specified by:
        getSeriesKey in interface SeriesDataset
        Specified by:
        getSeriesKey in class AbstractSeriesDataset
      • 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()