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

📄 graph.graph2d.html

📁 java 作图的程序
💻 HTML
📖 第 1 页 / 共 3 页
字号:
  <dd> The markers that may have been loaded @see Graph2D#setMarkers()</dl><a name="load_thread"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>load_thread</b><pre>  protected <a href="graph.LoadMessage.html#_top_">LoadMessage</a> load_thread</pre><dl>  <dd> The blinking "data loading" thread  <dl>     <dt> <b>See Also:</b>    <dd> <a href="#startedloading()">startedloading</a>  </dl></dl><a name="DataBackground"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>DataBackground</b><pre>  protected <a href="java.awt.Color.html#_top_">Color</a> DataBackground</pre><dl>  <dd> The background color for the data window</dl><a name="loadingData"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>loadingData</b><pre>  public int loadingData</pre><dl>  <dd> If this is greater than zero it means that data loading threads are active so the message "loading data" is flashed on the plot canvas. When it is back to zero the plot progresses normally</dl><a name="borderTop"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>borderTop</b><pre>  public int borderTop</pre><dl>  <dd> The width of the border at the top of the canvas. This allows  slopover from axis labels, legends etc.</dl><a name="borderBottom"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>borderBottom</b><pre>  public int borderBottom</pre><dl>  <dd> The width of the border at the bottom of the canvas. This allows  slopover from axis labels, legends etc.</dl><a name="borderLeft"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>borderLeft</b><pre>  public int borderLeft</pre><dl>  <dd> The width of the border at the left of the canvas. This allows  slopover from axis labels, legends etc.</dl><a name="borderRight"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>borderRight</b><pre>  public int borderRight</pre><dl>  <dd> The width of the border at the right of the canvas. This allows  slopover from axis labels, legends etc.</dl><a name="frame"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>frame</b><pre>  public boolean frame</pre><dl>  <dd> If set <I>true</I> a frame will be drawn around the data window. Any axes will overlay this frame.</dl><a name="framecolor"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>framecolor</b><pre>  public <a href="java.awt.Color.html#_top_">Color</a> framecolor</pre><dl>  <dd> The color of the frame to be drawn</dl><a name="drawgrid"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>drawgrid</b><pre>  public boolean drawgrid</pre><dl>  <dd> If set <I>true</I> (the default) a grid will be drawn over the data window.The grid will align with the major tic marks of the Innermost axes.</dl><a name="gridcolor"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>gridcolor</b><pre>  public <a href="java.awt.Color.html#_top_">Color</a> gridcolor</pre><dl>  <dd> The color of the grid to be drawn</dl><a name="drawzero"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>drawzero</b><pre>  public boolean drawzero</pre><dl>  <dd> If set <I>true</I> (the default) a grid line will be drawn  across the data window at the zeros of the innermost axes.</dl><a name="zerocolor"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>zerocolor</b><pre>  public <a href="java.awt.Color.html#_top_">Color</a> zerocolor</pre><dl>  <dd> The color of the zero grid lines.</dl><a name="datarect"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>datarect</b><pre>  public <a href="java.awt.Rectangle.html#_top_">Rectangle</a> datarect</pre><dl>  <dd> The rectangle that the data will be plotted within. This is an output variable only.</dl><a name="clearAll"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>clearAll</b><pre>  public boolean clearAll</pre><dl>  <dd> If set <I>true</I> (the default) the canvas will be set to the background color (erasing the plot) when the update method is called. This would only be changed for special effects.</dl><a name="paintAll"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>paintAll</b><pre>  public boolean paintAll</pre><dl>  <dd> If set <I>true</I> (the default) everything associated with the plot will be drawn when the update method or paint method are called. Normally only modified for special effects</dl><a name="square"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>square</b><pre>  public boolean square</pre><dl>  <dd> Modify the position of the axis and the range of the axis so that the aspect ratio of the major tick marks are 1 and the plot is square on the screen</dl><a name="lastText"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>lastText</b><pre>  public <a href="graph.TextLine.html#_top_">TextLine</a> lastText</pre><dl>  <dd> Text to be painted Last onto the Graph Canvas.</dl><a name="constructors"></a><h2>  <img src="images/constructors.gif" width=231 height=38 alt="Constructors"></h2><a name="Graph2D"></a><a name="Graph2D()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>Graph2D</b><pre>  public Graph2D()</pre><a name="methods"></a><h2>  <img src="images/methods.gif" width=151 height=38 alt="Methods"></h2><a name="loadFile(java.net.URL)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="loadFile"><b>loadFile</b></a><pre>  public <a href="graph.DataSet.html#_top_">DataSet</a> loadFile(<a href="java.net.URL.html#_top_">URL</a> file)</pre><dl>  <dd> Load and Attach a DataSet from a File.  The method loads the data into a DataSet class and attaches the class to the graph for plotting. The data is assumed to consist (at this stage) 2 ASCII columns of numbers x, y. As always blank lines are ignored and everything following # is ignored as a comment. @param file    The URL of the data file to read. @return        The DataSet constructed containing the data read.</dl><a name="loadDataSet(double[], int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="loadDataSet"><b>loadDataSet</b></a><pre>  public <a href="graph.DataSet.html#_top_">DataSet</a> loadDataSet(double data[],                             int n)</pre><dl>  <dd> Load and Attach a DataSet from an array.  The method loads the data into a DataSet class and attaches the class to the graph for plotting. The data is assumed to be stored in the form  x,y,x,y,x,y.... A local copy of the data is made. @param  data   The data to be loaded in the form x,y,x,y,... @param  n      The number of (x,y) data points. This means that the                minimum length of the data array is 2*n. @return        The DataSet constructed containing the data read.</dl><a name="attachDataSet(graph.DataSet)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="attachDataSet"><b>attachDataSet</b></a><pre>  public void attachDataSet(<a href="graph.DataSet.html#_top_">DataSet</a> d)</pre><dl>  <dd> Attach a DataSet to the graph. By attaching the data set the class  can draw the data through its paint method.</dl><a name="detachDataSet(graph.DataSet)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="detachDataSet"><b>detachDataSet</b></a><pre>  public void detachDataSet(<a href="graph.DataSet.html#_top_">DataSet</a> d)</pre><dl>  <dd> Detach the DataSet from the class. Data associated with the DataSet   will nolonger be plotted.   @param d    The DataSet to detach.</dl><a name="detachDataSets()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="detachDataSets"><b>detachDataSets</b></a><pre>  public void detachDataSets()</pre><dl>  <dd> Detach All the DataSets from the class.</dl><a name="createAxis(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="createAxis"><b>createAxis</b></a><pre>  public <a href="graph.Axis.html#_top_">Axis</a> createAxis(int position)</pre><dl>  <dd> Create and attach an Axis to the graph. The position of the axis   is one of Axis.TOP, Axis.BOTTOM, Axis.LEFT or Axis.RIGHT.   @param position   Position of the axis in the drawing window.</dl><a name="attachAxis(graph.Axis)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="attachAxis"><b>attachAxis</b></a><pre>  public void attachAxis(<a href="graph.Axis.html#_top_">Axis</a> a)</pre><dl>  <dd> Attach a previously created Axis. Only Axes that have been attached will be drawn    @param the Axis to attach.</dl><a name="detachAxis(graph.Axis)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="detachAxis"><b>detachAxis</b></a><pre>

⌨️ 快捷键说明

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