edu.ull.cgunay.plots
Class Grapher.DataType

java.lang.Object
  |
  +--edu.ull.cgunay.plots.Grapher.DataType
Direct Known Subclasses:
MatLab.MatLabDataType
Enclosing class:
Grapher

protected abstract class Grapher.DataType
extends Object

Type of representation for the data. That is spikes, lines, errorbars, etc. To be instantiated by the Grapher as representing its capabilities.


Field Summary
(package private)  String axisCommand
          Command to realize axis in grapher, i.e.
(package private)  String name
           
(package private)  String propertyName
          Maybe for additional properties?
 
Constructor Summary
(package private) Grapher.DataType(String name, String axisCommand)
          Adds itself to the dataTypes hash.
 
Method Summary
abstract  String plotCommand(Grapher.Data data)
          Generates the plot command for the grapher for given data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

String name

axisCommand

String axisCommand
Command to realize axis in grapher, i.e. "stem", "plot", etc.


propertyName

String propertyName
Maybe for additional properties? Used by ...Expression().

See Also:
Grapher.Data.yExpression()
Constructor Detail

Grapher.DataType

Grapher.DataType(String name,
                 String axisCommand)
Adds itself to the dataTypes hash.

Parameters:
name - key for the datatype
Method Detail

plotCommand

public abstract String plotCommand(Grapher.Data data)
Generates the plot command for the grapher for given data.

Parameters:
data - a Data value
Returns:
a String value