|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.io.StreamTokenizer
org.mbari.siam.moos.utils.chart.graph.ScanWord
org.mbari.siam.moos.utils.chart.graph.BuildGraph
public class BuildGraph
This class will parse a description file and build a plot based on the instructions in the file. The build Graph class, with attached Axes and DataSets can be accessed though methods in the class
| Field Summary | |
|---|---|
protected java.applet.Applet |
applet
The Calling Applet |
protected java.util.Stack |
build
The BUILD stack. |
protected java.util.Vector |
built
The class vector. |
protected boolean |
debug
Debug. |
protected java.lang.Object |
graph
The constructed Graph Object |
protected TextLine |
graphtitle
The TextLine containing the title |
int |
level
The current brace level. |
int |
lineno
Current line being parsed |
protected java.util.Stack |
object
The Object stack. |
| Fields inherited from class org.mbari.siam.moos.utils.chart.graph.ScanWord |
|---|
ERROR, STRING, UNKNOWN |
| Fields inherited from class java.io.StreamTokenizer |
|---|
nval, sval, TT_EOF, TT_EOL, TT_NUMBER, TT_WORD, ttype |
| Constructor Summary | |
|---|---|
BuildGraph(java.io.InputStream in,
java.applet.Applet ap)
Instantiate the class |
|
| Method Summary | |
|---|---|
protected double[] |
arrayFromFunction(ParseFunction f,
int nx,
double xmin,
double xmax)
|
protected double[] |
arrayFromFunction(ParseFunction f,
int nx,
double xmin,
double xmax,
int ny,
double ymin,
double ymax)
|
protected boolean |
build(org.mbari.siam.moos.utils.chart.graph.NamedObject nobj)
Based on the parsed object build something. |
protected boolean |
buildAxis()
|
protected boolean |
buildContour(org.mbari.siam.moos.utils.chart.graph.NamedObject nobj)
|
protected boolean |
buildData(int type)
|
protected boolean |
buildFont()
|
protected boolean |
buildGraph(int type)
Pop things off the object stack and build the graph |
protected boolean |
buildGrid()
|
protected boolean |
buildLabel()
|
protected boolean |
buildMarker()
|
protected boolean |
buildTitle()
|
protected boolean |
buildZero()
|
java.util.Vector |
getBuilt()
Get a vector of all the built Classes. |
java.lang.Object |
getGraph()
Get the Graph object that has been built! |
TextLine |
getGraphTitle()
Get the title of the Graph |
protected boolean |
isContext(int token)
Check if the object is on the "to be built" stack. |
void |
parse()
This is THE method that parses the input file and constructs the plot. |
| Methods inherited from class org.mbari.siam.moos.utils.chart.graph.ScanWord |
|---|
addKeyWord, closeStream, getKeyValue, getNumber, nextWord, resetKeyWords, resetWordSyntax, setStringChar |
| Methods inherited from class java.io.StreamTokenizer |
|---|
commentChar, eolIsSignificant, lineno, lowerCaseMode, nextToken, ordinaryChar, ordinaryChars, parseNumbers, pushBack, quoteChar, resetSyntax, slashSlashComments, slashStarComments, toString, whitespaceChars, wordChars |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Stack build
protected java.util.Stack object
protected java.util.Vector built
protected java.lang.Object graph
protected TextLine graphtitle
protected java.applet.Applet applet
protected boolean debug
public int lineno
public int level
| Constructor Detail |
|---|
public BuildGraph(java.io.InputStream in,
java.applet.Applet ap)
in - The inputstream to be readap - the driving applet.| Method Detail |
|---|
public java.lang.Object getGraph()
public TextLine getGraphTitle()
public java.util.Vector getBuilt()
public void parse()
protected boolean isContext(int token)
token - is this the object we are currently building?
protected boolean build(org.mbari.siam.moos.utils.chart.graph.NamedObject nobj)
nobj - The object to be built
protected boolean buildGraph(int type)
type - Type of graph to build, Graph2D, G2Dint, Contour.
protected boolean buildContour(org.mbari.siam.moos.utils.chart.graph.NamedObject nobj)
protected boolean buildFont()
protected boolean buildTitle()
protected boolean buildLabel()
protected boolean buildMarker()
protected boolean buildData(int type)
protected double[] arrayFromFunction(ParseFunction f,
int nx,
double xmin,
double xmax)
protected double[] arrayFromFunction(ParseFunction f,
int nx,
double xmin,
double xmax,
int ny,
double ymin,
double ymax)
protected boolean buildAxis()
protected boolean buildGrid()
protected boolean buildZero()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||