|
|||||||||||
| 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.VerticalBar
For drawing a vertical bar on the x-axis.
| 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.VerticalBar(String label,
double xValue,
Range yRange)
Create with a y-range parameter. |
|
| 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. |
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 |
Hashtable variables
Grapher.DataType dataType
String label
| Constructor Detail |
public Grapher.VerticalBar(String label,
double xValue,
Range yRange)
label - for the datasetxValue - point on x-axisyRange - upper and lower limits of the vertical bar.| Method Detail |
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 | ||||||||||