|
|||||||||||
| 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
|
+--edu.ull.cgunay.plots.Grapher.ProfileData
Data structure for generating profile plots, where the precision can be defined as the total number of points on the plot. This allows optimal use of resources for complex data.
Grapher.PreciseProfileData,
Serialized Form| Field Summary | |
(package private) Grapher.DataType |
dataType
|
(package private) String |
label
Legend label for the data. |
(package private) Profile |
profile
|
(package private) Range |
range
Range to draw the plot. |
(package private) Hashtable |
variables
Variables used by this plot data definition. name->Range or name->vector pairs. |
| Constructor Summary | |
Grapher.ProfileData(String label,
Profile profile,
Range range)
|
|
| 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. |
Range |
getRange()
Get the value of range. |
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. |
void |
setRange(Range v)
Set the value of range. |
String |
xExpression()
Currently just returns the variable "t" being the default range variable. |
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 |
Profile profile
Range range
null, takes all data points.
Hashtable variables
Grapher.DataType dataType
String label
| Constructor Detail |
public Grapher.ProfileData(String label,
Profile profile,
Range range)
| Method Detail |
public Range getRange()
public void setRange(Range v)
v - Value to assign to range.public String xExpression()
xExpression in class Grapher.DataString valuepublic String yExpression()
Grapher.DataGrapher.
yExpression in class Grapher.DataString valueGrapher.Data.variablespublic 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 valueGrapher.Data.variables
public void addVariable(String name,
Collection vector)
variables.
name - a String valuevector - a Collection valueGrapher.Data.variablespublic 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.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||