📄 graph.axis.html
字号:
public boolean drawgrid</pre><dl> <dd> If <i>true</i> draw a grid positioned on major ticks over the graph</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 <i>true</i> draw a line positioned on the Zero label tick mark.</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> Color of the grid</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> Color of the line at the Zero label</dl><a name="redraw"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>redraw</b><pre> public boolean redraw</pre><dl> <dd> Default value <i>true</i>. Normally never changed. If set <i>false</I>the Axis draw method exits without drawing the axis. <dl> <dt> <b>See Also:</b> <dd> <a href="#drawAxis()">drawAxis</a> </dl></dl><a name="force_end_labels"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>force_end_labels</b><pre> public boolean force_end_labels</pre><dl> <dd> Rescale the axis so that labels fall at the end of the Axis. Defaultvalue <i>false</i>.</dl><a name="major_tic_size"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>major_tic_size</b><pre> public int major_tic_size</pre><dl> <dd> Size in pixels of the major tick marks</dl><a name="minor_tic_size"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>minor_tic_size</b><pre> public int minor_tic_size</pre><dl> <dd> Size in pixels of the minor tick marks</dl><a name="minor_tic_count"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>minor_tic_count</b><pre> public int minor_tic_count</pre><dl> <dd> Number of minor tick marks between major tick marks</dl><a name="axiscolor"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>axiscolor</b><pre> public <a href="java.awt.Color.html#_top_">Color</a> axiscolor</pre><dl> <dd> Color of the Axis.</dl><a name="minimum"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>minimum</b><pre> public double minimum</pre><dl> <dd> Minimum data value of the axis. This is the value used to scaledata into the data window. This is the value to alter to forcea rescaling of the data window.</dl><a name="maximum"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>maximum</b><pre> public double maximum</pre><dl> <dd> Maximum data value of the axis. This is the value used to scaledata into the data window. This is the value to alter to forcea rescaling of the data window.</dl><a name="data_window"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>data_window</b><pre> public <a href="java.awt.Dimension.html#_top_">Dimension</a> data_window</pre><dl> <dd> Before the Axis can be positioned correctly and drawn the data windowneeds to be calculated and passed to the Axis.</dl><a name="g2d"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>g2d</b><pre> public <a href="graph.Graph2D.html#_top_">Graph2D</a> g2d</pre><dl> <dd> The graph canvas this axis is attached to (if it is attached to any) <dl> <dt> <b>See Also:</b> <dd> <a href="graph.Graph2D.html#_top_">Graph2D</a> </dl></dl><a name="amin"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>amin</b><pre> protected <a href="java.awt.Point.html#_top_">Point</a> amin</pre><dl> <dd> The position in pixels of the minimum point of the axis line</dl><a name="amax"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>amax</b><pre> protected <a href="java.awt.Point.html#_top_">Point</a> amax</pre><dl> <dd> The position in pixels of the maximum point of the axis line</dl><a name="orientation"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>orientation</b><pre> protected int orientation</pre><dl> <dd> The orientation of the axis. Either Axis.HORIZONTAL orAxis.VERTICAL</dl><a name="position"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>position</b><pre> protected int position</pre><dl> <dd> The position of the axis. Either Axis.LEFT, Axis.RIGHT, Axis.TOP, orAxis.BOTTOM</dl><a name="width"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>width</b><pre> protected int width</pre><dl> <dd> The width of the Axis. Where width for a horizontal axis is really the height</dl><a name="title"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>title</b><pre> protected <a href="graph.RTextLine.html#_top_">RTextLine</a> title</pre><dl> <dd> Textline class to contain the title of the axis.</dl><a name="label"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>label</b><pre> protected <a href="graph.RTextLine.html#_top_">RTextLine</a> label</pre><dl> <dd> Textline class to hold the labels before printing.</dl><a name="exponent"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>exponent</b><pre> protected <a href="graph.RTextLine.html#_top_">RTextLine</a> exponent</pre><dl> <dd> Textline class to hold the label's exponent (if it has one).</dl><a name="max_label_width"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>max_label_width</b><pre> protected int max_label_width</pre><dl> <dd> The width of the maximum label. Used to position a Vertical Axis.</dl><a name="dataset"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>dataset</b><pre> protected <a href="java.util.Vector.html#_top_">Vector</a> dataset</pre><dl> <dd> Vector containing a list of attached DataSets</dl><a name="label_string"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>label_string</b><pre> protected <a href="java.lang.String.html#_top_">String</a> label_string[]</pre><dl> <dd> String to contain the labels.</dl><a name="label_value"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>label_value</b><pre> protected float label_value[]</pre><dl> <dd> The actual values of the axis labels</dl><a name="label_start"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>label_start</b><pre> protected double label_start</pre><dl> <dd> The starting value of the labels</dl><a name="label_step"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>label_step</b><pre> protected double label_step</pre><dl> <dd> The increment between labels</dl><a name="label_exponent"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>label_exponent</b><pre> protected int label_exponent</pre><dl> <dd> The label exponent</dl><a name="label_count"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>label_count</b><pre> protected int label_count</pre><dl> <dd> The number of labels required</dl><a name="guess_label_number"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>guess_label_number</b><pre> protected int guess_label_number</pre><dl> <dd> Initial guess for the number of labels required</dl><a name="manualRange"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>manualRange</b><pre> protected boolean manualRange</pre><dl> <dd> If true the axis range must be manually set by setting theAxis.minimum and Axis.maximum variables. The default is false.The default action is for the axis range to be calculated everytimea dataset is attached.</dl><a name="constructors"></a><h2> <img src="images/constructors.gif" width=231 height=38 alt="Constructors"></h2><a name="Axis"></a><a name="Axis()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>Axis</b><pre> public Axis()</pre><dl> <dd> Instantiate the class. The defalt type is a Horizontal axis positioned at the bottom of the graph.</dl><a name="Axis(int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>Axis</b><pre> public Axis(int p)</pre><dl> <dd> Instantiate the class. Setting the position. <dl> <dt> <b>Parameters:</b> <dd> p - Set the axis position. Must be one of Axis.BOTTOM,Axis.TOP, Axis.LEFT, Axis.RIGHT, Axis.HORIZONTAL or Axis.VERTICAL.If one of the latter two are used then Axis.BOTTOM or Axis.LEFT is assumed. </dl></dl><a name="methods"></a><h2> <img src="images/methods.gif" width=151 height=38 alt="Methods"></h2><a name="setPosition(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setPosition"><b>setPosition</b></a><pre> public void setPosition(int p)</pre><dl> <dd> Set the axis position. <dl> <dt> <b>Parameters:</b> <dd> p - Must be one of Axis.BOTTOM,Axis.TOP, Axis.LEFT, Axis.RIGHT, Axis.HORIZONTAL or Axis.VERTICAL.If one of the latter two are used then Axis.BOTTOM or Axis.LEFT is assumed. </dl></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 for the Axis to manage. <dl> <dt> <b>Parameters:</b> <dd> d - dataSet to attach <dt> <b>See Also:</b>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -