📄 graph.buildgraph.html
字号:
<!--NewPage--><html><head><!-- Generated by javadoc on Wed Oct 23 13:30:49 EST 1996 --><a name="_top_"></a><title> Class graph.BuildGraph</title></head><body><pre><a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-graph.html">This Package</a> <a href="graph.Axis.html#_top_">Previous</a> <a href="graph.Contour.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre><hr><h1> Class graph.BuildGraph</h1><pre><a href="java.lang.Object.html#_top_">java.lang.Object</a> | +----<a href="java.io.StreamTokenizer.html#_top_">java.io.StreamTokenizer</a> | +----<a href="graph.ScanWord.html#_top_">graph.ScanWord</a> | +----graph.BuildGraph</pre><hr><dl> <dt> public class <b>BuildGraph</b> <dt> extends <a href="graph.ScanWord.html#_top_">ScanWord</a></dl>This class will parse a description file and build aplot based on the instructions in the file.The build Graph class, with attached Axes and DataSets can be accessedthough methods in the class<dl> <dt> <b>Version:</b> <dd> 1.14, 1996/09/06 00:08:49 <dt> <b>Author:</b> <dd> Leigh Brookshaw</dl><hr><a name="index"></a><h2> <img src="images/variable-index.gif" width=207 height=38 alt="Variable Index"></h2><dl> <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#applet"><b>applet</b></a> <dd> The Calling Applet <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#build"><b>build</b></a> <dd> The BUILD stack. <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#built"><b>built</b></a> <dd> The class vector. <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#debug"><b>debug</b></a> <dd> Debug. <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#graph"><b>graph</b></a> <dd> The constructed Graph Object <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#graphtitle"><b>graphtitle</b></a> <dd> The TextLine containing the title <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#level"><b>level</b></a> <dd> The current brace level. <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#lineno"><b>lineno</b></a> <dd> Current line being parsed <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#object"><b>object</b></a> <dd> The Object stack.</dl><h2> <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index"></h2><dl> <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o "> <a href="#BuildGraph(java.io.InputStream, java.applet.Applet)"><b>BuildGraph</b></a>(InputStream, Applet) <dd> Instantiate the class</dl><h2> <img src="images/method-index.gif" width=207 height=38 alt="Method Index"></h2><dl> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#arrayFromFunction(graph.ParseFunction, int, double, double)"><b>arrayFromFunction</b></a>(ParseFunction, int, double, double) <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#arrayFromFunction(graph.ParseFunction, int, double, double, int, double, double)"><b>arrayFromFunction</b></a>(ParseFunction, int, double, double, int, double, double) <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#build(graph.NamedObject)"><b>build</b></a>(NamedObject) <dd> Based on the parsed object build something. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#buildAxis()"><b>buildAxis</b></a>() <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#buildContour(graph.NamedObject)"><b>buildContour</b></a>(NamedObject) <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#buildData(int)"><b>buildData</b></a>(int) <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#buildFont()"><b>buildFont</b></a>() <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#buildGraph(int)"><b>buildGraph</b></a>(int) <dd> Pop things off the object stack and build the graph <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#buildGrid()"><b>buildGrid</b></a>() <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#buildLabel()"><b>buildLabel</b></a>() <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#buildMarker()"><b>buildMarker</b></a>() <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#buildTitle()"><b>buildTitle</b></a>() <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#buildZero()"><b>buildZero</b></a>() <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getBuilt()"><b>getBuilt</b></a>() <dd> Get a vector of all the built Classes. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getGraph()"><b>getGraph</b></a>() <dd> Get the Graph object that has been built! <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getGraphTitle()"><b>getGraphTitle</b></a>() <dd> Get the title of the Graph <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#isContext(int)"><b>isContext</b></a>(int) <dd> Check if the object is on the "to be built" stack. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#parse()"><b>parse</b></a>() <dd> This is THE method that parses the input file and constructs the plot.</dl><a name="variables"></a><h2> <img src="images/variables.gif" width=153 height=38 alt="Variables"></h2><a name="build"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>build</b><pre> protected <a href="java.util.Stack.html#_top_">Stack</a> build</pre><dl> <dd> The BUILD stack. Everything pushed on this stack has to be built from other objects. An example would be a Font, whichis constructed from Logical name, style and size.</dl><a name="object"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>object</b><pre> protected <a href="java.util.Stack.html#_top_">Stack</a> object</pre><dl> <dd> The Object stack. All input tokens get pushed onto and popped off this stack.</dl><a name="built"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>built</b><pre> protected <a href="java.util.Vector.html#_top_">Vector</a> built</pre><dl> <dd> The class vector. This contains final class objects that cannot be deleted. That iswe don't want these classes unnattached and collected into the garbage. The obvious classes here are the main Graph2D class, the Axes of the plotDataSets etc.</dl><a name="graph"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>graph</b><pre> protected <a href="java.lang.Object.html#_top_">Object</a> graph</pre><dl> <dd> The constructed Graph Object</dl><a name="graphtitle"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>graphtitle</b><pre> protected <a href="graph.TextLine.html#_top_">TextLine</a> graphtitle</pre><dl> <dd> The TextLine containing the title</dl><a name="applet"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>applet</b><pre> protected <a href="java.applet.Applet.html#_top_">Applet</a> applet</pre><dl> <dd> The Calling Applet</dl><a name="debug"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>debug</b><pre> protected boolean debug</pre><dl> <dd> Debug. If true output copious debug messages. Though unless you knowwhat is going on with the code most messages will probably be meaningless</dl><a name="lineno"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>lineno</b><pre> public int lineno</pre><dl> <dd> Current line being parsed</dl><a name="level"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -