|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.ull.cgunay.plots.Grapher.Data
Each dataset that can be added to an Axis. To be
instantiated by the Plot.
| Field Summary | |
(package private) Grapher.DataType |
dataType
|
(package private) String |
label
Legend label for the data. |
(package private) Hashtable |
variables
Variables used by this plot data definition. name->Range or name->vector pairs. |
| Constructor Summary | |
Grapher.Data(String dataTypeName,
String label)
Finds the DataType associated with requested
dataTypeName. |
|
| Method Summary | |
void |
addVariable(String name,
Collection vector)
Add a vector variable to variables. |
void |
addVariable(String name,
Range range)
Add a range variable to variables. |
Grapher.DataType |
getDataType()
Get the DataType value. |
String |
getLabel()
Get the value of label. |
Hashtable |
getVariables()
Get the Variables value. |
(package private) void |
init()
Put initialization code in this method. |
(package private) String |
preamble()
Put preambles in this method. |
void |
setDataType(String dataTypeName)
Looks up the name from dataTypes. |
void |
setLabel(String v)
Set the value of label. |
abstract String |
xExpression()
Expression to appear on the x-axis part of the plot command. |
abstract String |
yExpression()
Expression to appear on the x-axis part of the plot command. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
Hashtable variables
Grapher.DataType dataType
String label
| Constructor Detail |
public Grapher.Data(String dataTypeName,
String label)
DataType associated with requested
dataTypeName.
dataTypeName - a String valuelabel - a String value| Method Detail |
public Hashtable getVariables()
void init()
String preamble()
public void addVariable(String name,
Range range)
variables. TODO: maybe just take the name ot the member variable and use reflection to look it up? (like in catacomb)
name - a String valuerange - a Range valuevariables
public void addVariable(String name,
Collection vector)
variables.
name - a String valuevector - a Collection valuevariablespublic Grapher.DataType getDataType()
public void setDataType(String dataTypeName)
dataTypes.
dataTypeName - a String valuepublic String getLabel()
public void setLabel(String v)
v - Value to assign to label.public abstract String xExpression()
Grapher.
String valuepublic abstract String yExpression()
Grapher.
String valuevariables
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||