📄 numberaxis.html
字号:
<A NAME="NumberAxis()"><!-- --></A><H3>NumberAxis</H3><PRE>public <A HREF="../../../../src-html/org/jfree/chart/axis/NumberAxis.html#line.180"><B>NumberAxis</B></A>()</PRE><DL><DD>Default constructor.<P></DL><HR><A NAME="NumberAxis(java.lang.String)"><!-- --></A><H3>NumberAxis</H3><PRE>public <A HREF="../../../../src-html/org/jfree/chart/axis/NumberAxis.html#line.189"><B>NumberAxis</B></A>(java.lang.String label)</PRE><DL><DD>Constructs a number axis, using default values where necessary.<P><DL><DT><B>Parameters:</B><DD><CODE>label</CODE> - the axis label (<code>null</code> permitted).</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getRangeType()"><!-- --></A><H3>getRangeType</H3><PRE>public <A HREF="../../../../org/jfree/data/RangeType.html" title="class in org.jfree.data">RangeType</A> <A HREF="../../../../src-html/org/jfree/chart/axis/NumberAxis.html#line.204"><B>getRangeType</B></A>()</PRE><DL><DD>Returns the axis range type.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The axis range type (never <code>null</code>).</DL></DD></DL><HR><A NAME="setRangeType(org.jfree.data.RangeType)"><!-- --></A><H3>setRangeType</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/axis/NumberAxis.html#line.213"><B>setRangeType</B></A>(<A HREF="../../../../org/jfree/data/RangeType.html" title="class in org.jfree.data">RangeType</A> rangeType)</PRE><DL><DD>Sets the axis range type.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rangeType</CODE> - the range type (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="getAutoRangeIncludesZero()"><!-- --></A><H3>getAutoRangeIncludesZero</H3><PRE>public boolean <A HREF="../../../../src-html/org/jfree/chart/axis/NumberAxis.html#line.227"><B>getAutoRangeIncludesZero</B></A>()</PRE><DL><DD>Returns the flag that indicates whether or not the automatic axis range (if indeed it is determined automatically) is forced to include zero.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The flag.</DL></DD></DL><HR><A NAME="setAutoRangeIncludesZero(boolean)"><!-- --></A><H3>setAutoRangeIncludesZero</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/axis/NumberAxis.html#line.242"><B>setAutoRangeIncludesZero</B></A>(boolean flag)</PRE><DL><DD>Sets the flag that indicates whether or not the axis range, if automatically calculated, is forced to include zero. <p> If the flag is changed to <code>true</code>, the axis range is recalculated. <p> Any change to the flag will trigger an <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html" title="class in org.jfree.chart.event"><CODE>AxisChangeEvent</CODE></A>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - the new value of the flag.</DL></DD></DL><HR><A NAME="getAutoRangeStickyZero()"><!-- --></A><H3>getAutoRangeStickyZero</H3><PRE>public boolean <A HREF="../../../../src-html/org/jfree/chart/axis/NumberAxis.html#line.258"><B>getAutoRangeStickyZero</B></A>()</PRE><DL><DD>Returns a flag that affects the auto-range when zero falls outside the data range but inside the margins defined for the axis.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The flag.</DL></DD></DL><HR><A NAME="setAutoRangeStickyZero(boolean)"><!-- --></A><H3>setAutoRangeStickyZero</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/axis/NumberAxis.html#line.268"><B>setAutoRangeStickyZero</B></A>(boolean flag)</PRE><DL><DD>Sets a flag that affects the auto-range when zero falls outside the data range but inside the margins defined for the axis.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - the new flag.</DL></DD></DL><HR><A NAME="getTickUnit()"><!-- --></A><H3>getTickUnit</H3><PRE>public <A HREF="../../../../org/jfree/chart/axis/NumberTickUnit.html" title="class in org.jfree.chart.axis">NumberTickUnit</A> <A HREF="../../../../src-html/org/jfree/chart/axis/NumberAxis.html#line.291"><B>getTickUnit</B></A>()</PRE><DL><DD>Returns the tick unit for the axis. <p> Note: if the <code>autoTickUnitSelection</code> flag is <code>true</code> the tick unit may be changed while the axis is being drawn, so in that case the return value from this method may be irrelevant if the method is called before the axis has been drawn.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The tick unit for the axis.<DT><B>See Also:</B><DD><A HREF="../../../../org/jfree/chart/axis/NumberAxis.html#setTickUnit(org.jfree.chart.axis.NumberTickUnit)"><CODE>setTickUnit(NumberTickUnit)</CODE></A>, <A HREF="../../../../org/jfree/chart/axis/ValueAxis.html#isAutoTickUnitSelection()"><CODE>ValueAxis.isAutoTickUnitSelection()</CODE></A></DL></DD></DL><HR><A NAME="setTickUnit(org.jfree.chart.axis.NumberTickUnit)"><!-- --></A><H3>setTickUnit</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/axis/NumberAxis.html#line.307"><B>setTickUnit</B></A>(<A HREF="../../../../org/jfree/chart/axis/NumberTickUnit.html" title="class in org.jfree.chart.axis">NumberTickUnit</A> unit)</PRE><DL><DD>Sets the tick unit for the axis and sends an <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html" title="class in org.jfree.chart.event"><CODE>AxisChangeEvent</CODE></A> to all registered listeners. A side effect of calling this method is that the "auto-select" feature for tick units is switched off (you can restore it using the <A HREF="../../../../org/jfree/chart/axis/ValueAxis.html#setAutoTickUnitSelection(boolean)"><CODE>ValueAxis.setAutoTickUnitSelection(boolean)</CODE></A> method).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>unit</CODE> - the new tick unit (<code>null</code> not permitted).<DT><B>See Also:</B><DD><A HREF="../../../../org/jfree/chart/axis/NumberAxis.html#getTickUnit()"><CODE>getTickUnit()</CODE></A>, <A HREF="../../../../org/jfree/chart/axis/NumberAxis.html#setTickUnit(org.jfree.chart.axis.NumberTickUnit, boolean, boolean)"><CODE>setTickUnit(NumberTickUnit, boolean, boolean)</CODE></A></DL></DD></DL><HR><A NAME="setTickUnit(org.jfree.chart.axis.NumberTickUnit, boolean, boolean)"><!-- --></A><H3>setTickUnit</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/axis/NumberAxis.html#line.323"><B>setTickUnit</B></A>(<A HREF="../../../../org/jfree/chart/axis/NumberTickUnit.html" title="class in org.jfree.chart.axis">NumberTickUnit</A> unit, boolean notify, boolean turnOffAutoSelect)</PRE><DL><DD>Sets the tick unit for the axis and, if requested, sends an <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html" title="class in org.jfree.chart.event"><CODE>AxisChangeEvent</CODE></A> to all registered listeners. In addition, an option is provided to turn off the "auto-select" feature for tick units (you can restore it using the <A HREF="../../../../org/jfree/chart/axis/ValueAxis.html#setAutoTickUnitSelection(boolean)"><CODE>ValueAxis.setAutoTickUnitSelection(boolean)</CODE></A> method).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>unit</CODE> - the new tick unit (<code>null</code> not permitted).<DD><CODE>notify</CODE> - notify listeners?<DD><CODE>turnOffAutoSelect</CODE> - turn off the auto-tick selection?</DL></DD></DL><HR><A NAME="getNumberFormatOverride()"><!-- --></A><H3>getNumberFormatOverride</H3><PRE>public java.text.NumberFormat <A HREF="../../../../src-html/org/jfree/chart/axis/NumberAxis.html#line.345"><B>getNumberFormatOverride</B></A>()</PRE><DL><DD>Returns the number format override. If this is non-null, then it will be used to format the numbers on the axis.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -