edu.ull.cgunay.plots
Class SuperposedDataPlot.AxisFactory

java.lang.Object
  |
  +--edu.ull.cgunay.plots.SuperposedDataPlot.AxisFactory
All Implemented Interfaces:
Serializable, Task, TaskWithReturn
Enclosing class:
SuperposedDataPlot

class SuperposedDataPlot.AxisFactory
extends Object
implements TaskWithReturn


Field Summary
(package private)  Grapher.Axis axis
          Axis to be created.
(package private)  Grapher.Data[] datas
          Datas to be added to the Axis.
(package private)  HasAxisLabels decor
          Holds axis decorations.
 
Constructor Summary
(package private) SuperposedDataPlot.AxisFactory(AxisTemplate template)
          Creates a new AxisFactory instance that will create a Grapher.Axis from an AxisTemplate.
(package private) SuperposedDataPlot.AxisFactory(Grapher.Data[] datas, HasAxisLabels decor)
          Creates a new AxisFactory instance.
 
Method Summary
 Object getValue()
          Returns a value from the task.
 void job(Object o)
          Create the axis, add all datas to it, and decorate it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

axis

Grapher.Axis axis
Axis to be created.


datas

Grapher.Data[] datas
Datas to be added to the Axis.

See Also:
Grapher.Data

decor

HasAxisLabels decor
Holds axis decorations.

Constructor Detail

SuperposedDataPlot.AxisFactory

SuperposedDataPlot.AxisFactory(Grapher.Data[] datas,
                               HasAxisLabels decor)
Creates a new AxisFactory instance.

Parameters:
datas - a Collection of Grapher.Datas

SuperposedDataPlot.AxisFactory

SuperposedDataPlot.AxisFactory(AxisTemplate template)
Creates a new AxisFactory instance that will create a Grapher.Axis from an AxisTemplate.

Parameters:
template - an AxisTemplate value
Method Detail

job

public void job(Object o)
Create the axis, add all datas to it, and decorate it.

Specified by:
job in interface Task
Parameters:
o - a Grapher object
See Also:
Iteration.loop()

getValue

public Object getValue()
Description copied from interface: TaskWithReturn
Returns a value from the task.

Specified by:
getValue in interface TaskWithReturn
Returns:
an Object value