com.panayotis.gnuplot.plot
Class DataSetPlot

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,String>
          extended by com.panayotis.gnuplot.PropertiesHolder
              extended by com.panayotis.gnuplot.plot.AbstractPlot
                  extended by com.panayotis.gnuplot.plot.DataSetPlot
All Implemented Interfaces:
Plot, Serializable, Cloneable, Map<String,String>

public class DataSetPlot
extends AbstractPlot

This plot uses data sets as coordinates of the points to e displayed. The user can provide data either statically (through the specialized constructors with native base types) or with the more flexible generic object PointDataSet.

Author:
teras
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
 
Fields inherited from class com.panayotis.gnuplot.PropertiesHolder
NL
 
Constructor Summary
DataSetPlot()
          Create a new data set with a default data set.
DataSetPlot(DataSet dataset)
          Create a new object with a specific data set
DataSetPlot(double[][] dataset)
          Create a new data set with the specified double-precision array as a data set
DataSetPlot(float[][] dataset)
          Create a new data set with the specified float-precision array as a data set
DataSetPlot(int[][] dataset)
          Create a new data set with the specified int-precision array as a data set
DataSetPlot(long[][] dataset)
          Create a new data set with the specified long-precision array as a data set
 
Method Summary
 DataSet getDataSet()
          Retrieve the data set of this plot
 void retrieveData(StringBuffer bf)
          Retrieve the data set of this plot command.
 void setDataSet(DataSet set)
          Set the data set of this plot to the specified one
 
Methods inherited from class com.panayotis.gnuplot.plot.AbstractPlot
getPlotStyle, retrieveDefinition, setDefinition, setPlotStyle, setSmooth, setTitle
 
Methods inherited from class com.panayotis.gnuplot.PropertiesHolder
appendProperties, set, set, unset
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

DataSetPlot

public DataSetPlot()
Create a new data set with a default data set.


DataSetPlot

public DataSetPlot(double[][] dataset)
Create a new data set with the specified double-precision array as a data set

Parameters:
dataset - A 2D double table with the data set

DataSetPlot

public DataSetPlot(float[][] dataset)
Create a new data set with the specified float-precision array as a data set

Parameters:
dataset - A 2D float table with the data set

DataSetPlot

public DataSetPlot(int[][] dataset)
Create a new data set with the specified int-precision array as a data set

Parameters:
dataset - A 2D int table with the data set

DataSetPlot

public DataSetPlot(long[][] dataset)
Create a new data set with the specified long-precision array as a data set

Parameters:
dataset - A 2D long table with the data set

DataSetPlot

public DataSetPlot(DataSet dataset)
Create a new object with a specific data set

Parameters:
dataset - The data set to use
Method Detail

retrieveData

public void retrieveData(StringBuffer bf)
Retrieve the data set of this plot command. It is used internally by JavaPlot library.

Parameters:
bf - The buffer to store the data set

setDataSet

public void setDataSet(DataSet set)
Set the data set of this plot to the specified one

Parameters:
set - The data set to use

getDataSet

public DataSet getDataSet()
Retrieve the data set of this plot

Returns:
The data set of this plot


Copyright © 2013. All Rights Reserved.