📄 graph.contour.html
字号:
<!--NewPage--><html><head><!-- Generated by javadoc on Wed Oct 23 13:30:49 EST 1996 --><a name="_top_"></a><title> Class graph.Contour</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.BuildGraph.html#_top_">Previous</a> <a href="graph.DataSet.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre><hr><h1> Class graph.Contour</h1><pre><a href="java.lang.Object.html#_top_">java.lang.Object</a> | +----<a href="java.awt.Component.html#_top_">java.awt.Component</a> | +----<a href="java.awt.Canvas.html#_top_">java.awt.Canvas</a> | +----<a href="graph.Graph2D.html#_top_">graph.Graph2D</a> | +----<a href="graph.G2Dint.html#_top_">graph.G2Dint</a> | +----graph.Contour</pre><hr><dl> <dt> public class <b>Contour</b> <dt> extends <a href="graph.G2Dint.html#_top_">G2Dint</a></dl>This class extends the interactive graphics class G2Dint to incorporatecontouring.<dl> <dt> <b>Version:</b> <dd> 1.11, 1996/08/12 23:37:08. <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="#autoLabels"><b>autoLabels</b></a> <dd> If true the labels will be calculated for each contour level. <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#autoLevels"><b>autoLevels</b></a> <dd> If set the class calculates the contour levels based on the data minimum and maximum. <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#contourColor"><b>contourColor</b></a> <dd> Color to draw non labelled contour line <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#curves"><b>curves</b></a> <dd> Vector array containing the Contour curves. <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#drawlabels"><b>drawlabels</b></a> <dd> If false labels are not drawn <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#grid"><b>grid</b></a> <dd> The data grid, a 2D array stored in linear form. <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#gridLimits"><b>gridLimits</b></a> <dd> <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#labelcolor"><b>labelcolor</b></a> <dd> Color to use in drawing Labels <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#labelfont"><b>labelfont</b></a> <dd> Font to use in drawing Labels <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#labelledColor"><b>labelledColor</b></a> <dd> Color to draw labelled contour line <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#labelLevels"><b>labelLevels</b></a> <dd> Which levels will get labels. <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#labelPrecision"><b>labelPrecision</b></a> <dd> Precision to use in drawing Labels. <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#labels"><b>labels</b></a> <dd> The label for each contour level <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#labelSignificant"><b>labelSignificant</b></a> <dd> Number of Significant figures to use in drawing Labels. <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#labelStyle"><b>labelStyle</b></a> <dd> Style to use in drawing Labels. <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#levels"><b>levels</b></a> <dd> <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#logLevels"><b>logLevels</b></a> <dd> <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#noContours"><b>noContours</b></a> <dd> Boolean value if true Contours will not be calculated <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#nx"><b>nx</b></a> <dd> Dimension of the contour grid in the X direction <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#ny"><b>ny</b></a> <dd> Dimension of the contour grid in the Y direction <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#xmax"><b>xmax</b></a> <dd> The X maximum limit of the data grid <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#xmin"><b>xmin</b></a> <dd> The X minimum limit of the data grid <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#ymax"><b>ymax</b></a> <dd> The Y maximum limit of the data grid <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#ymin"><b>ymin</b></a> <dd> The Y minimum limit of the data grid <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#zmax"><b>zmax</b></a> <dd> The maximum value of the grid values <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#zmin"><b>zmin</b></a> <dd> The minimum value of the grid values</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="#Contour()"><b>Contour</b></a>() <dd> Instantaite 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="#attachContours()"><b>attachContours</b></a>() <dd> Attach contours so that they will be plotted. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#calculateCurves()"><b>calculateCurves</b></a>() <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#deleteContours()"><b>deleteContours</b></a>() <dd> Delete all the Contours <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#detachContours()"><b>detachContours</b></a>() <dd> Detach contours so that they will not be plotted. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getDim()"><b>getDim</b></a>() <dd> return the dimensions of the grid <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getGrid()"><b>getGrid</b></a>() <dd> Return the grid <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getLabelPrecision()"><b>getLabelPrecision</b></a>() <dd> Get the label precision. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getLabelSignificance()"><b>getLabelSignificance</b></a>() <dd> Get the number of significant figures for labels. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getLabelStyle()"><b>getLabelStyle</b></a>() <dd> Get the label style, either TextLine.SCIENTIFIC orTextLine.ALGEBRAIC. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getLevels()"><b>getLevels</b></a>() <dd> Return the contour levels. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getRange()"><b>getRange</b></a>() <dd> Return the range of the grid <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#keyDown(java.awt.Event, int)"><b>keyDown</b></a>(Event, int) <dd> Add extra events to the G2Dint event handler. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#loadGrid(java.net.URL)"><b>loadGrid</b></a>(URL) <dd> Load the grid to contour from a URL. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#paintFirst(java.awt.Graphics, java.awt.Rectangle)"><b>paintFirst</b></a>(Graphics, Rectangle) <dd> A hook into the Graph2D.paint method. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#paintLast(java.awt.Graphics, java.awt.Rectangle)"><b>paintLast</b></a>(Graphics, Rectangle) <dd> A hook into the Graph2D.paint method. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setAutoLevels(boolean)"><b>setAutoLevels</b></a>(boolean) <dd> If true contour levels are calculated automatically. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setContourColor(java.awt.Color)"><b>setContourColor</b></a>(Color) <dd> Set the contour's color. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setDrawLabels(boolean)"><b>setDrawLabels</b></a>(boolean) <dd> If true contour levels are not labeled. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setGrid(double[], int, int)"><b>setGrid</b></a>(double[], int, int) <dd> Set the grid to be contoured. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setLabelColor(java.awt.Color)"><b>setLabelColor</b></a>(Color) <dd> Set the Color to be used with all the labels. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setLabelFont(java.awt.Font)"><b>setLabelFont</b></a>(Font) <dd> Set the font to be used with All the labels <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setLabelledContourColor(java.awt.Color)"><b>setLabelledContourColor</b></a>(Color) <dd> Set the labelled contour's color. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setLabelLevels(int)"><b>setLabelLevels</b></a>(int) <dd> Set the contour levels that are to have labels. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setLabelPrecision(int)"><b>setLabelPrecision</b></a>(int) <dd> Set the label precision. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setLabels(graph.TextLine[], int)"><b>setLabels</b></a>(TextLine[], int) <dd> Manually set the Contour labels. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setLabelSignificance(int)"><b>setLabelSignificance</b></a>(int) <dd> Set the label significant figures. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setLabelStyle(int)"><b>setLabelStyle</b></a>(int) <dd> Set the label style, either TextLine.SCIENTIFIC orTextLine.ALGEBRAIC. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setLevels(double[], int)"><b>setLevels</b></a>(double[], int) <dd> Manually set the contour levels. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setLimitsToGrid(boolean)"><b>setLimitsToGrid</b></a>(boolean) <dd> If true the limits of the plot will be the grid limits. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setLogLevels(boolean)"><b>setLogLevels</b></a>(boolean) <dd> If true contour levels are calculated on a log scale. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setNLevels(int)"><b>setNLevels</b></a>(int) <dd> Set the number of contour levels. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setRange(double, double, double, double)"><b>setRange</b></a>(double, double, double, double) <dd> Set the range of the grid</dl><a name="variables"></a><h2> <img src="images/variables.gif" width=153 height=38 alt="Variables"></h2><a name="nx"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>nx</b><pre> protected int nx</pre><dl> <dd> Dimension of the contour grid in the X direction</dl><a name="ny"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>ny</b><pre> protected int ny</pre><dl> <dd> Dimension of the contour grid in the Y direction</dl><a name="curves"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>curves</b><pre> protected <a href="java.util.Vector.html#_top_">Vector</a> curves[]</pre><dl> <dd> Vector array containing the Contour curves. Each index in the array contains curves at a given contour level</dl><a name="autoLevels"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>autoLevels</b><pre> protected boolean autoLevels</pre><dl> <dd> If set the class calculates the contour levels based on the data minimum and maximum. Default value <i>true</i>.</dl>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -