📄 graph.contour.html
字号:
<a name="logLevels"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>logLevels</b><pre> protected boolean logLevels</pre><a name="gridLimits"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>gridLimits</b><pre> protected boolean gridLimits</pre><a name="levels"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>levels</b><pre> protected double levels[]</pre><a name="labels"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>labels</b><pre> protected <a href="graph.TextLine.html#_top_">TextLine</a> labels[]</pre><dl> <dd> The label for each contour level</dl><a name="labelfont"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>labelfont</b><pre> protected <a href="java.awt.Font.html#_top_">Font</a> labelfont</pre><dl> <dd> Font to use in drawing Labels</dl><a name="labelcolor"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>labelcolor</b><pre> protected <a href="java.awt.Color.html#_top_">Color</a> labelcolor</pre><dl> <dd> Color to use in drawing Labels</dl><a name="labelStyle"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>labelStyle</b><pre> protected int labelStyle</pre><dl> <dd> Style to use in drawing Labels. TextLine.SCIENTIFIC or TextLine.ALGEBRAIC.</dl><a name="labelPrecision"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>labelPrecision</b><pre> protected int labelPrecision</pre><dl> <dd> Precision to use in drawing Labels.</dl><a name="labelSignificant"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>labelSignificant</b><pre> protected int labelSignificant</pre><dl> <dd> Number of Significant figures to use in drawing Labels.</dl><a name="labelLevels"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>labelLevels</b><pre> protected int labelLevels</pre><dl> <dd> Which levels will get labels. If it is equal to 1 every level gets a label, equal to 2 every second level etc. If it is equal to 0 no labels are displayed.</dl><a name="drawlabels"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>drawlabels</b><pre> protected boolean drawlabels</pre><dl> <dd> If false labels are not drawn</dl><a name="autoLabels"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>autoLabels</b><pre> protected boolean autoLabels</pre><dl> <dd> If true the labels will be calculated for each contour level. These might not look all that hot.</dl><a name="contourColor"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>contourColor</b><pre> protected <a href="java.awt.Color.html#_top_">Color</a> contourColor</pre><dl> <dd> Color to draw non labelled contour line</dl><a name="labelledColor"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>labelledColor</b><pre> protected <a href="java.awt.Color.html#_top_">Color</a> labelledColor</pre><dl> <dd> Color to draw labelled contour line</dl><a name="grid"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>grid</b><pre> protected double grid[]</pre><dl> <dd> The data grid, a 2D array stored in linear form. It is assumed that [0,0] is the bottom left corner and the data is ordered by row.</dl><a name="xmin"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>xmin</b><pre> protected double xmin</pre><dl> <dd> The X minimum limit of the data grid</dl><a name="xmax"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>xmax</b><pre> protected double xmax</pre><dl> <dd> The X maximum limit of the data grid</dl><a name="ymin"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>ymin</b><pre> protected double ymin</pre><dl> <dd> The Y minimum limit of the data grid</dl><a name="ymax"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>ymax</b><pre> protected double ymax</pre><dl> <dd> The Y maximum limit of the data grid</dl><a name="zmin"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>zmin</b><pre> protected double zmin</pre><dl> <dd> The minimum value of the grid values</dl><a name="zmax"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>zmax</b><pre> protected double zmax</pre><dl> <dd> The maximum value of the grid values</dl><a name="noContours"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>noContours</b><pre> public boolean noContours</pre><dl> <dd> Boolean value if true Contours will not be calculated</dl><a name="constructors"></a><h2> <img src="images/constructors.gif" width=231 height=38 alt="Constructors"></h2><a name="Contour"></a><a name="Contour()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>Contour</b><pre> public Contour()</pre><dl> <dd> Instantaite the class</dl><a name="methods"></a><h2> <img src="images/methods.gif" width=151 height=38 alt="Methods"></h2><a name="loadGrid(java.net.URL)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="loadGrid"><b>loadGrid</b></a><pre> public boolean loadGrid(<a href="java.net.URL.html#_top_">URL</a> file)</pre><dl> <dd> Load the grid to contour from a URL. There are 2 formats for the data optionally the limits of the grid can be parsed.<BR> <PRE> The expected format of the data 1st Number: nx 2nd Number: ny nx*ny numbers following Optionally 1st Number: nx 2nd Number: ny 3rd Number: xmin 4th Number: xmax 5th Number: ymin 6th Number: ymax nx*ny numbers following </PRE><BR> If xmin, xmax, ymin, ymax are not specified they are assumed to be [1.0,nx,1.0,ny] <dl> <dt> <b>Parameters:</b> <dd> file - URL of the file to load <dt> <b>Returns:</b> <dd> <i>true</I> of the load was successful. </dl></dl><a name="setRange(double, double, double, double)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setRange"><b>setRange</b></a><pre> public void setRange(double xmin, double xmax, double ymin, double ymax)</pre><dl> <dd> Set the range of the grid <dl> <dt> <b>Parameters:</b> <dd> xmin - Minimum X value <dd> xmax - Maximum X value <dd> ymin - Minimum Y value <dd> ymax - Maximum Y value </dl></dl><a name="getRange()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getRange"><b>getRange</b></a><pre> public double[] getRange()</pre><dl> <dd> Return the range of the grid <dl> <dt> <b>Returns:</b> <dd> An array contining xmin,xmax,ymin,ymax. </dl></dl><a name="getDim()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getDim"><b>getDim</b></a><pre> public int[] getDim()</pre><dl> <dd> return the dimensions of the grid <dl> <dt> <b>Returns:</b> <dd> An array containing the number of columns, number of rows. </dl></dl><a name="getGrid()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getGrid"><b>getGrid</b></a><pre> public double[] getGrid()</pre><dl> <dd> Return the grid <dl> <dt> <b>Returns:</b> <dd> An array of size nx by ny contining the data grid. </dl></dl><a name="setLevels(double[], int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setLevels"><b>setLevels</b></a><pre> public void setLevels(double levels[], int nl)</pre><dl> <dd> Manually set the contour levels. <dl> <dt> <b>Parameters:</b> <dd> levels - An array containing the contour levels <dd> nl - The number of contour levels in the arrray </dl></dl><a name="setLabels(graph.TextLine[], int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setLabels"><b>setLabels</b></a><pre> public void setLabels(<a href="graph.TextLine.html#_top_">TextLine</a> labels[], int nl)</pre><dl> <dd> Manually set the Contour labels. <dl> <dt> <b>Parameters:</b> <dd> labels - An array containing the labels. <dd> nl - Number of labels in the Array.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -