com.panayotis.gnuplot.plot
Class AbstractPlot

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

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
AbstractPlot()
          General purpose contructor of a generic plot object
 
Method Summary
 PlotStyle getPlotStyle()
          Retrieve the style of this Plot command
 void retrieveDefinition(StringBuffer buf)
          Retrieve the definition of this Plot object.
protected  void setDefinition(String definition)
          Set the plot definition for this plot object.
 void setPlotStyle(PlotStyle style)
          Set how this plot will be presented.
 void setSmooth(Smooth smooth)
          Define if this plot should be smoothed.
 void setTitle(String title)
          A convinient method to set the title of this plot
 
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 com.panayotis.gnuplot.plot.Plot
retrieveData
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

AbstractPlot

public AbstractPlot()
General purpose contructor of a generic plot object

Method Detail

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.