⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 graph.vectorset.html

📁 java 作图的程序
💻 HTML
📖 第 1 页 / 共 2 页
字号:
  <dd> Instantiate a DataSet with the parsed data.The double array contains the data. The data is stored in the array in the sequence<PRE>            x,y,dx,dy,x,y,dx,dy,...</PRE>Where (x,y) is the position of the tail and (dx,dy) is the relativeposition of the head.This means that the length of the dataarray is 4*n.  <dl>    <dt> <b>Parameters:</b>    <dd> d - Array containing the (x,y,dy,dx) vectors.    <dd> n - Number of (x,y) data pairs in the array.    <dt> <b>Throws:</b> <a href="Exception.html#_top_">Exception</a>    <dd> A Generic exception if it fails to load the           parsed array into the class.  </dl></dl><a name="VectorSet(double)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>VectorSet</b><pre>  public VectorSet(double scale) throws <a href="java.lang.Exception.html#_top_">Exception</a></pre><dl>  <dd> Instantiate an empty data set.  <dl>    <dt> <b>Parameters:</b>    <dd> s - The scaling to use when plotting the vectors.    <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, double)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>VectorSet</b><pre>  public VectorSet(double d[],                   int n,                   double scale) throws <a href="java.lang.Exception.html#_top_">Exception</a></pre><dl>  <dd> Instantiate a DataSet with the parsed data.  <dl>    <dt> <b>Parameters:</b>    <dd> d - Array containing the (x,y,dy,dx) vectors.    <dd> n - Number of (x,y,dx,dy) vectors in the array.    <dt> <b>Throws:</b> <a href="Exception.html#_top_">Exception</a>    <dd> A Generic exception if it fails to load the           parsed array into the class.  </dl></dl><a name="methods"></a><h2>  <img src="images/methods.gif" width=151 height=38 alt="Methods"></h2><a name="setScale(double)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setScale"><b>setScale</b></a><pre>  public void setScale(double scale)</pre><dl>  <dd> Set the scaling to use when drawing vectors  <dl>    <dt> <b>Parameters:</b>    <dd> scale - The scaling to employ  </dl></dl><a name="setScalingType(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setScalingType"><b>setScalingType</b></a><pre>  public void setScalingType(int type)</pre><dl>  <dd> Set the scaling type to use when drawing vectors  <dl>    <dt> <b>Parameters:</b>    <dd> type - Either MEAN, MAXIMUM or MINIMUM.  </dl></dl><a name="getScaleFactor()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getScaleFactor"><b>getScaleFactor</b></a><pre>  public double getScaleFactor()</pre><dl>  <dd> return the current scaling factor. That is the calculated scaling using the axis range the mean/max/min magnitude and the percentage scale.</dl><a name="legend()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="legend"><b>legend</b></a><pre>  public void legend()</pre><dl>  <dd> Draw a Vector legend in the graph window. The legend will be placedabove the data window in the center</dl><a name="legend(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="legend"><b>legend</b></a><pre>  public void legend(<a href="java.lang.String.html#_top_">String</a> text)</pre><dl>  <dd> Define a Vector legend in the graph window. The legend will be placedabove the data window in the center  <dl>    <dt> <b>Parameters:</b>    <dd> text - text to display in the legend  </dl></dl><a name="legend(int, int, java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="legend"><b>legend</b></a><pre>  public void legend(int x,                     int y,                     <a href="java.lang.String.html#_top_">String</a> text)</pre><dl>  <dd> Define a Vector legend in the graph window  <dl>    <dt> <b>Parameters:</b>    <dd> x - pixel position of the legend.    <dd> y - pixel position of the legend.    <dd> text - text to display in the legend    <dt> <b>Overrides:</b>    <dd> <a href="graph.DataSet.html#legend(int, int, java.lang.String)">legend</a> in class <a href="graph.DataSet.html#_top_">DataSet</a>  </dl></dl><a name="legend(double, double, java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="legend"><b>legend</b></a><pre>  public void legend(double x,                     double y,                     <a href="java.lang.String.html#_top_">String</a> text)</pre><dl>  <dd> Define a Vector legend in the graph window  <dl>    <dt> <b>Parameters:</b>    <dd> x - data position of the legend.    <dd> y - data position of the legend.    <dd> text - text to display in the legend    <dt> <b>Overrides:</b>    <dd> <a href="graph.DataSet.html#legend(double, double, java.lang.String)">legend</a> in class <a href="graph.DataSet.html#_top_">DataSet</a>  </dl></dl><a name="draw_data(java.awt.Graphics, java.awt.Rectangle)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="draw_data"><b>draw_data</b></a><pre>  public void draw_data(<a href="java.awt.Graphics.html#_top_">Graphics</a> g,                        <a href="java.awt.Rectangle.html#_top_">Rectangle</a> bounds)</pre><dl>  <dd> Draw the vectors at the data points.If this data has been attached to an Axis then scale the databased on the axis maximum/minimum otherwise scale usingthe data's maximum/minimum  <dl>    <dt> <b>Parameters:</b>    <dd> g - Graphics state    <dd> bounds - The data window to draw into    <dt> <b>Overrides:</b>    <dd> <a href="graph.DataSet.html#draw_data(java.awt.Graphics, java.awt.Rectangle)">draw_data</a> in class <a href="graph.DataSet.html#_top_">DataSet</a>  </dl></dl><a name="draw_legend(java.awt.Graphics, java.awt.Rectangle)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="draw_legend"><b>draw_legend</b></a><pre>  protected void draw_legend(<a href="java.awt.Graphics.html#_top_">Graphics</a> g,                             <a href="java.awt.Rectangle.html#_top_">Rectangle</a> w)</pre><dl>  <dd> Draw a legend for this Vector set  <dl>    <dt> <b>Parameters:</b>    <dd> g - Graphics context    <dd> w - Data Window    <dt> <b>Overrides:</b>    <dd> <a href="graph.DataSet.html#draw_legend(java.awt.Graphics, java.awt.Rectangle)">draw_legend</a> in class <a href="graph.DataSet.html#_top_">DataSet</a>  </dl></dl><a name="drawVectors(java.awt.Graphics, java.awt.Rectangle)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="drawVectors"><b>drawVectors</b></a><pre>  protected void drawVectors(<a href="java.awt.Graphics.html#_top_">Graphics</a> g,                             <a href="java.awt.Rectangle.html#_top_">Rectangle</a> w)</pre><a name="range(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="range"><b>range</b></a><pre>  protected void range(int stride)</pre><dl>  <dd> Calculate the range of the data and the magnitude of the vectors.This modifies dxmin,dxmax,dymin,dymaxand xmin,xmax,ymin,ymax  <dl>    <dt> <b>Overrides:</b>    <dd> <a href="graph.DataSet.html#range(int)">range</a> in class <a href="graph.DataSet.html#_top_">DataSet</a>  </dl></dl><hr><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></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -