|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.ull.cgunay.plots.Plot
Grapher independent description for plots. The plot is converted to
a grapher specific String representation when the plot(Grapher) method
is invoked.
See the description in the Grapher class on how to display the plot.
Other private methods in this class are simply delegated to the
associated Grapher instance (if available).
Created: Mon Apr 8 17:35:11 2002
Modified: $Date: 2003/03/13 05:09:54 $
SimplePlot,
plot(Grapher),
range,
Grapher,
Serialized Form| Field Summary | |
(package private) List |
axes
The list of Grapher.Axis's contained in the
plot.
|
(package private) int |
fontSize
Font size for plot legends. 0 means default size. |
protected Grapher |
grapher
Grapher instance associated with the plot (if available). |
(package private) String |
label
Label of the dataset if it is the only one in this plot. |
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. |
| Constructor Summary | |
Plot()
Calls other constructors with null params. |
|
Plot(String label,
Range range)
|
|
| Method Summary | |
protected String |
add(String param1,
String param2)
|
protected String |
assign(String param1,
String param2)
|
protected String |
def_func(String param1,
String[] param2,
String param3)
|
protected String |
div(String param1,
String param2)
|
protected String |
exp(String param1)
|
protected String |
func(String param1,
String[] param2)
|
protected String |
geq(String param1,
String param2)
|
int |
getFontSize()
Get the FontSize value. |
Grapher |
getGrapher()
Get the value of grapher. |
String |
getLabel()
Get the value of label. |
(package private) static Range |
getMaxRange(Collection plots)
|
(package private) static Range |
getMaxRange(HasAxisLabels[] plots)
Find maximum range by iterating on all objects implementing HasAxisLabels. |
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. |
protected String |
mul(String param1,
String param2)
|
protected String |
neg(String param1)
|
String |
plot(Grapher grapher)
Deprecated. Grapher handles things by directly calling Grapher.plotToString()
and using the PlotHandle |
protected String |
profile(Profile param1,
Range param2)
|
protected String |
range(Range param1)
|
abstract String |
recipe(Grapher grapher)
A new way to describe plots in terms of Grapher
capabilities. |
void |
setFontSize(int newFontSize)
Set the FontSize value. |
void |
setGrapher(Grapher v)
Set the value of grapher. |
void |
setLabel(String v)
Set the value of label. |
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. |
protected String |
sub(String param1,
String param2)
|
String |
toString()
Give title or label as part of description. |
protected String |
variable(String param1)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected transient Grapher grapher
Grapher instance associated with the plot (if available).
List axes
Grapher.Axis's contained in the
plot.
TODO: maybe should go to the grapher
dependent part, the PlotHandle.
String title
int fontSize
String label
String xLabel
String yLabel
protected Range range
Range of the plot.
| Constructor Detail |
public Plot(String label,
Range range)
public Plot()
null params.
| Method Detail |
public Grapher getGrapher()
public void setGrapher(Grapher v)
v - Value to assign to grapher.public String getTitle()
getTitle in interface HasAxisLabelspublic void setTitle(String v)
v - Value to assign to title.public int getFontSize()
getFontSize in interface HasAxisLabelspublic void setFontSize(int newFontSize)
newFontSize - The new FontSize value.public String toString()
toString in class ObjectString valuepublic String getLabel()
public void setLabel(String v)
v - Value to assign to label.public String getXLabel()
getXLabel in interface HasAxisLabelspublic void setXLabel(String v)
v - Value to assign to xLabel.public String getYLabel()
getYLabel in interface HasAxisLabelspublic void setYLabel(String v)
v - Value to assign to yLabel.public Range getRange()
getRange in interface HasAxisLabelspublic void setRange(Range v)
v - Value to assign to range.static Range getMaxRange(HasAxisLabels[] plots)
HasAxisLabels.
plots - a Collection of HasAxisLabels objects
Range in the liststatic Range getMaxRange(Collection plots)
public abstract String recipe(Grapher grapher)
Grapher
capabilities.
grapher - a Grapher value
String valuepublic String plot(Grapher grapher)
Grapher.plotToString()
and using the PlotHandle
String representation of the plot for
the given grapher. Delegates the request to the
Grapher instance.
String value
protected String add(String param1,
String param2)
param1 - param2 - Grapher.add(String, String)
protected String assign(String param1,
String param2)
param1 - param2 - Grapher.assign(String, String)
protected String profile(Profile param1,
Range param2)
param1 - param2 - Grapher.profile(Profile, Range)
protected String sub(String param1,
String param2)
param1 - param2 - Grapher.sub(String, String)
protected String mul(String param1,
String param2)
param1 - param2 - Grapher.mul(String, String)
protected String geq(String param1,
String param2)
param1 - param2 - Grapher.geq(String, String)
protected String div(String param1,
String param2)
param1 - param2 - Grapher.div(String, String)protected String neg(String param1)
param1 - Grapher.neg(String)protected String exp(String param1)
param1 - Grapher.exp(String)
protected String def_func(String param1,
String[] param2,
String param3)
param1 - param2 - param3 - Grapher.def_func(String, String[], String)protected String range(Range param1)
param1 - Grapher.range(Range)
protected String func(String param1,
String[] param2)
param1 - param2 - Grapher.func(String, String[])protected String variable(String param1)
param1 - a String value
String valueGrapher.variable(String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||