|
|||||||||||
| 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.PreciseProfileData
Data structure for generating profile plots. It makes a precise
plot, in the sense that a point is drawn for every data in the
profile. if you like to specify the resolution of the plot with
a general number of data points selection, see
ProfileData.
Profile,
Grapher.ProfileData,
Serialized Form| Field Summary | |
(package private) Grapher.DataType |
dataType
|
(package private) String |
label
Legend label for the data. |
(package private) Range |
range
Range to draw the plot. |
(package private) Collection |
values
Vectors representing values and their corresponding minimum and maximum limits. |
(package private) Hashtable |
variables
Variables used by this plot data definition. name->Range or name->vector pairs. |
(package private) Collection |
xAxis
Vectors representing values and their corresponding minimum and maximum limits. |
| Constructor Summary | |
Grapher.PreciseProfileData(String label,
Profile profile)
|
|
Grapher.PreciseProfileData(String label,
Profile profile,
Range range)
Creates a new PreciseProfileData instance. |
|
| 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()
Expression to appear on the x-axis part of the plot command. |
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 |
Collection values
Collection xAxis
Range range
null, takes all data points.
Hashtable variables
Grapher.DataType dataType
String label
| Constructor Detail |
public Grapher.PreciseProfileData(String label,
Profile profile)
public Grapher.PreciseProfileData(String label,
Profile profile,
Range range)
PreciseProfileData instance.
label - a String valueprofile - a Profile valuerange - a Range value| Method Detail |
public Range getRange()
public void setRange(Range v)
v - Value to assign to range.public String xExpression()
Grapher.DataGrapher.
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 | ||||||||||