com.panayotis.gnuplot.plot
Class AbstractPlot
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,String>
com.panayotis.gnuplot.PropertiesHolder
com.panayotis.gnuplot.plot.AbstractPlot
- All Implemented Interfaces:
- Plot, Serializable, Cloneable, Map<String,String>
- Direct Known Subclasses:
- DataSetPlot, FunctionPlot
public abstract class AbstractPlot
- extends PropertiesHolder
- implements Plot
This is the base class of all plot objects. It is used to define the basic
caracteristics of plot handling, such as definition and styles
- Author:
- teras
- See Also:
- Serialized Form
|
Constructor Summary |
AbstractPlot()
General purpose contructor of a generic plot object |
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
AbstractPlot
public AbstractPlot()
- General purpose contructor of a generic plot object
setDefinition
protected void setDefinition(String definition)
- Set the plot definition for this plot object. It is the part that the plot
command parses.
- Parameters:
definition - The string representing the plot definition.
retrieveDefinition
public void retrieveDefinition(StringBuffer buf)
- Retrieve the definition of this Plot object.
If styles or smoothing engines
were used, the appropriate arguments are appended
- Specified by:
retrieveDefinition in interface Plot
- Parameters:
buf - The buffer to store the data set.
setPlotStyle
public void setPlotStyle(PlotStyle style)
- Set how this plot will be presented.
Provide information about colors and sizes, in accordance with the selected terminal.
Give "null" if you want to turn off this deafure.
- Parameters:
style - The style to use
getPlotStyle
public PlotStyle getPlotStyle()
- Retrieve the style of this Plot command
- Returns:
- The style being used
setSmooth
public void setSmooth(Smooth smooth)
- Define if this plot should be smoothed.
- Parameters:
smooth - The smooth definition. Give "null" if you want to turn off this deafure.
setTitle
public void setTitle(String title)
- A convinient method to set the title of this plot
- Parameters:
title - The title to use for this plot
Copyright © 2013. All Rights Reserved.