edu.ull.cgunay.plots
Class MatLab.PatternIterator

java.lang.Object
  |
  +--edu.ull.cgunay.plots.MatLab.PatternIterator
Enclosing class:
MatLab

class MatLab.PatternIterator
extends Object

If multiple datasets are plotted on same axis, cycle through these (only required for stupid Matlab). Also associate plot handles for each data set to be able to properly form a legend string.


Field Summary
(package private)  int handleId
          Form unique plot handle variables for properly forming legend identifiers.
(package private)  Iterator it
          To iterate on lineColorSpecs.
(package private)  String[] lineColorSpecs
          Possible patterns.
 
Constructor Summary
(package private) MatLab.PatternIterator()
           
 
Method Summary
 void newAxis()
          Reset iterators for at the beginning of each axis.
 String nextHandle()
          Describe nextHandle method here.
 String nextPattern()
          Get the next pattern string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lineColorSpecs

String[] lineColorSpecs
Possible patterns.


handleId

int handleId
Form unique plot handle variables for properly forming legend identifiers.


it

Iterator it
To iterate on lineColorSpecs.

Constructor Detail

MatLab.PatternIterator

MatLab.PatternIterator()
Method Detail

newAxis

public void newAxis()
Reset iterators for at the beginning of each axis.


nextPattern

public String nextPattern()
Get the next pattern string.

Returns:
a String value

nextHandle

public String nextHandle()
Describe nextHandle method here.

Returns:
a String value