?? graph.vectorset.html
字號:
<!--NewPage--><html><head><!-- Generated by javadoc on Wed Oct 23 13:30:49 EST 1996 --><a name="_top_"></a><title> Class graph.VectorSet</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.TextLine.html#_top_">Previous</a> <a href="Package-graph.html">Next</a> <a href="AllNames.html">Index</a></pre><hr><h1> Class graph.VectorSet</h1><pre><a href="java.lang.Object.html#_top_">java.lang.Object</a> | +----<a href="graph.DataSet.html#_top_">graph.DataSet</a> | +----graph.VectorSet</pre><hr><dl> <dt> public class <b>VectorSet</b> <dt> extends <a href="graph.DataSet.html#_top_">DataSet</a></dl>This class is designed to hold vectors to be plotted. It extends the DataSet class. The vectors are defined as (x,y,dx,dy) where (x,y) is the position of the vector tail and (dx,dy) is the relative position of the head. It is to be used in conjunction with the Graph2D class and Axis class for plotting 2D graphs.<dl> <dt> <b>Version:</b> <dd> 1.3, 1996/10/23 03:30:22 <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/blue-ball-small.gif" width=6 height=6 alt=" o "> <a href="#MAXIMUM"><b>MAXIMUM</b></a> <dd> A constant value flag used to specify if the max magnitude of thevectors is going to be used as the scaling variable <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o "> <a href="#MEAN"><b>MEAN</b></a> <dd> A constant value flag used to specify if the mean magnitude of thevectors is going to be used as the scaling variable <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o "> <a href="#MINIMUM"><b>MINIMUM</b></a> <dd> A constant value flag used to specify if the minimum magnitude of thevectors is going to be used as the scaling variable <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#scale"><b>scale</b></a> <dd> This is the scaling to be used when drawing vectors. <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#scalingType"><b>scalingType</b></a> <dd> The flag specifying which scaling variable to use <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#stride"><b>stride</b></a> <dd> This is the stride of the data in the data array.</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="#VectorSet()"><b>VectorSet</b></a>() <dd> Instantiate an empty data set. <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o "> <a href="#VectorSet(double)"><b>VectorSet</b></a>(double) <dd> Instantiate an empty data set. <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o "> <a href="#VectorSet(double[], int)"><b>VectorSet</b></a>(double[], int) <dd> Instantiate a DataSet with the parsed data. <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o "> <a href="#VectorSet(double[], int, double)"><b>VectorSet</b></a>(double[], int, double) <dd> Instantiate a DataSet with the parsed data.</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="#draw_data(java.awt.Graphics, java.awt.Rectangle)"><b>draw_data</b></a>(Graphics, Rectangle) <dd> Draw the vectors at the data points. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#draw_legend(java.awt.Graphics, java.awt.Rectangle)"><b>draw_legend</b></a>(Graphics, Rectangle) <dd> Draw a legend for this Vector set <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#drawVectors(java.awt.Graphics, java.awt.Rectangle)"><b>drawVectors</b></a>(Graphics, Rectangle) <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getScaleFactor()"><b>getScaleFactor</b></a>() <dd> return the current scaling factor. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#legend()"><b>legend</b></a>() <dd> Draw a Vector legend in the graph window. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#legend(double, double, java.lang.String)"><b>legend</b></a>(double, double, String) <dd> Define a Vector legend in the graph window <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#legend(int, int, java.lang.String)"><b>legend</b></a>(int, int, String) <dd> Define a Vector legend in the graph window <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#legend(java.lang.String)"><b>legend</b></a>(String) <dd> Define a Vector legend in the graph window. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#range(int)"><b>range</b></a>(int) <dd> Calculate the range of the data and the magnitude of the vectors. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setScale(double)"><b>setScale</b></a>(double) <dd> Set the scaling to use when drawing vectors <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setScalingType(int)"><b>setScalingType</b></a>(int) <dd> Set the scaling type to use when drawing vectors</dl><a name="variables"></a><h2> <img src="images/variables.gif" width=153 height=38 alt="Variables"></h2><a name="MEAN"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>MEAN</b><pre> public final static int MEAN</pre><dl> <dd> A constant value flag used to specify if the mean magnitude of thevectors is going to be used as the scaling variable</dl><a name="MINIMUM"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>MINIMUM</b><pre> public final static int MINIMUM</pre><dl> <dd> A constant value flag used to specify if the minimum magnitude of thevectors is going to be used as the scaling variable</dl><a name="MAXIMUM"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>MAXIMUM</b><pre> public final static int MAXIMUM</pre><dl> <dd> A constant value flag used to specify if the max magnitude of thevectors is going to be used as the scaling variable</dl><a name="scale"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>scale</b><pre> public double scale</pre><dl> <dd> This is the scaling to be used when drawing vectors. The scaling is thefraction of the axis the mean vector magnitude will be scaled to.</dl><a name="stride"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>stride</b><pre> protected int stride</pre><dl> <dd> This is the stride of the data in the data array. For a vector setit will be 4.</dl><a name="scalingType"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>scalingType</b><pre> protected int scalingType</pre><dl> <dd> The flag specifying which scaling variable to use</dl><a name="constructors"></a><h2> <img src="images/constructors.gif" width=231 height=38 alt="Constructors"></h2><a name="VectorSet"></a><a name="VectorSet()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>VectorSet</b><pre> public VectorSet() throws <a href="java.lang.Exception.html#_top_">Exception</a></pre><dl> <dd> Instantiate an empty data set. <dl> <dt> <b>Throws:</b> <a href="Exception.html#_top_">Exception</a> <dd> A Generic exception if it fails to instantiate the the class with the correct stride. </dl></dl><a name="VectorSet(double[], int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>VectorSet</b><pre> public VectorSet(double d[], int n) throws <a href="java.lang.Exception.html#_top_">Exception</a></pre><dl>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -