edu.ull.cgunay.plots
Class AxisTemplate

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.AbstractSequentialList
                    |
                    +--java.util.LinkedList
                          |
                          +--edu.ull.cgunay.plots.AxisTemplate
All Implemented Interfaces:
Cloneable, Collection, HasAxisLabels, List, Serializable

public class AxisTemplate
extends LinkedList
implements HasAxisLabels

A template, from which a real Axis object can be instantiated when a grapher is available.

Created: Tue May 6 17:34:07 2003

Modified: $Date$

Version:
$Revision$ for this file.
Author:
Cengiz Gunay
See Also:
Grapher.Axis, Grapher, Serialized Form

Field Summary
(package private)  Grapher.Data[] datas
          Datas to be superposed in this axis.
(package private)  int fontSize
          Font size for plot legends. 0 means default size.
protected  Range range
          Range of the plot.
(package private)  String title
          Plot title.
(package private)  String xLabel
          Label for the x-axis.
(package private)  String yLabel
          Label for the x-axis.
 
Fields inherited from class java.util.LinkedList
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
AxisTemplate(Grapher.Data[] datas)
          Takes a dataset to plot.
AxisTemplate(List datas)
          Takes a List of datasets to plot.
 
Method Summary
 Grapher.Data[] getDatas()
          Gets the value of datas
 int getFontSize()
          Get the FontSize value.
 Range getRange()
          Get the value of range.
 String getTitle()
          Get the value of title.
 String getXLabel()
          Get the value of xLabel.
 String getYLabel()
          Get the value of yLabel.
 void setDatas(Grapher.Data[] argDatas)
          Sets the value of datas
 void setFontSize(int newFontSize)
          Set the FontSize value.
 void setRange(Range v)
          Set the value of range.
 void setTitle(String v)
          Set the value of title.
 void setXLabel(String v)
          Set the value of xLabel.
 void setYLabel(String v)
          Set the value of yLabel.
 
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, remove, remove, removeFirst, removeLast, set, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 

Field Detail

datas

Grapher.Data[] datas
Datas to be superposed in this axis.


title

String title
Plot title.


xLabel

String xLabel
Label for the x-axis.


yLabel

String yLabel
Label for the x-axis.


fontSize

int fontSize
Font size for plot legends. 0 means default size.


range

protected Range range
Range of the plot.

Constructor Detail

AxisTemplate

public AxisTemplate(Grapher.Data[] datas)
Takes a dataset to plot.

Parameters:
datas - to plot

AxisTemplate

public AxisTemplate(List datas)
Takes a List of datasets to plot.

Parameters:
datas - a List value
Method Detail

getDatas

public Grapher.Data[] getDatas()
Gets the value of datas

Returns:
the value of datas

setDatas

public void setDatas(Grapher.Data[] argDatas)
Sets the value of datas

Parameters:
argDatas - Value to assign to this.datas

getTitle

public String getTitle()
Get the value of title.

Specified by:
getTitle in interface HasAxisLabels
Returns:
value of title.

setTitle

public void setTitle(String v)
Set the value of title.

Parameters:
v - Value to assign to title.

getXLabel

public String getXLabel()
Get the value of xLabel.

Specified by:
getXLabel in interface HasAxisLabels
Returns:
value of xLabel.

setXLabel

public void setXLabel(String v)
Set the value of xLabel.

Parameters:
v - Value to assign to xLabel.

getYLabel

public String getYLabel()
Get the value of yLabel.

Specified by:
getYLabel in interface HasAxisLabels
Returns:
value of yLabel.

setYLabel

public void setYLabel(String v)
Set the value of yLabel.

Parameters:
v - Value to assign to yLabel.

getFontSize

public int getFontSize()
Get the FontSize value.

Specified by:
getFontSize in interface HasAxisLabels
Returns:
the FontSize value.

setFontSize

public void setFontSize(int newFontSize)
Set the FontSize value.

Parameters:
newFontSize - The new FontSize value.

getRange

public Range getRange()
Get the value of range.

Specified by:
getRange in interface HasAxisLabels
Returns:
value of range.

setRange

public void setRange(Range v)
Set the value of range.

Parameters:
v - Value to assign to range.