numberaxis.html

来自「JFreeChart的帮助文档」· HTML 代码 · 共 1,220 行 · 第 1/5 页

HTML
1,220 行
字号
</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 <B>setAutoRangeStickyZero</B>(boolean&nbsp;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">NumberTickUnit</A> <B>getTickUnit</B>()</PRE><DL><DD>Returns the tick unit for the axis.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The tick unit for the axis.</DL></DD></DL><HR><A NAME="setTickUnit(org.jfree.chart.axis.NumberTickUnit)"><!-- --></A><H3>setTickUnit</H3><PRE>public void <B>setTickUnit</B>(<A HREF="../../../../org/jfree/chart/axis/NumberTickUnit.html">NumberTickUnit</A>&nbsp;unit)</PRE><DL><DD>Sets the tick unit for the axis.  This will turn off the auto tick unit selection mechanism (if it is on) and send an <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html"><CODE>AxisChangeEvent</CODE></A> to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>unit</CODE> - the new tick unit.</DL></DD></DL><HR><A NAME="setTickUnit(org.jfree.chart.axis.NumberTickUnit, boolean, boolean)"><!-- --></A><H3>setTickUnit</H3><PRE>public void <B>setTickUnit</B>(<A HREF="../../../../org/jfree/chart/axis/NumberTickUnit.html">NumberTickUnit</A>&nbsp;unit,                        boolean&nbsp;notify,                        boolean&nbsp;turnOffAutoSelect)</PRE><DL><DD>Sets the tick unit for the axis.  This will turn off the auto tick unit selection mechanism (if it is on) and, if requested, send an <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html"><CODE>AxisChangeEvent</CODE></A> to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>unit</CODE> - the new tick unit.<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 <B>getNumberFormatOverride</B>()</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.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The number format override.</DL></DD></DL><HR><A NAME="setNumberFormatOverride(java.text.NumberFormat)"><!-- --></A><H3>setNumberFormatOverride</H3><PRE>public void <B>setNumberFormatOverride</B>(java.text.NumberFormat&nbsp;formatter)</PRE><DL><DD>Sets the number format override.  If this is non-null, then it will be used to format the numbers on the axis.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>formatter</CODE> - the number formatter (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="getMarkerBand()"><!-- --></A><H3>getMarkerBand</H3><PRE>public <A HREF="../../../../org/jfree/chart/axis/MarkerAxisBand.html">MarkerAxisBand</A> <B>getMarkerBand</B>()</PRE><DL><DD>Returns the (optional) marker band for the axis.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The marker band (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="setMarkerBand(org.jfree.chart.axis.MarkerAxisBand)"><!-- --></A><H3>setMarkerBand</H3><PRE>public void <B>setMarkerBand</B>(<A HREF="../../../../org/jfree/chart/axis/MarkerAxisBand.html">MarkerAxisBand</A>&nbsp;band)</PRE><DL><DD>Sets the marker band for the axis. <P> The marker band is optional, leave it set to <code>null</code> if you don't require it.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>band</CODE> - the new band (<code>null<code> permitted).</DL></DD></DL><HR><A NAME="isCompatiblePlot(org.jfree.chart.plot.Plot)"><!-- --></A><H3>isCompatiblePlot</H3><PRE>protected boolean <B>isCompatiblePlot</B>(<A HREF="../../../../org/jfree/chart/plot/Plot.html">Plot</A>&nbsp;plot)</PRE><DL><DD>Returns true if the specified plot is compatible with the axis.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/axis/Axis.html#isCompatiblePlot(org.jfree.chart.plot.Plot)">isCompatiblePlot</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/axis/Axis.html">Axis</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>plot</CODE> - the plot.<DT><B>Returns:</B><DD><code>true</code> if the specified plot is compatible with the axis.</DL></DD></DL><HR><A NAME="configure()"><!-- --></A><H3>configure</H3><PRE>public void <B>configure</B>()</PRE><DL><DD>Configures the axis to work with the specified plot.  If the axis has auto-scaling, then sets the maximum and minimum values.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/axis/Axis.html#configure()">configure</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/axis/Axis.html">Axis</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="autoAdjustRange()"><!-- --></A><H3>autoAdjustRange</H3><PRE>protected void <B>autoAdjustRange</B>()</PRE><DL><DD>Rescales the axis to ensure that all data is visible.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/axis/ValueAxis.html#autoAdjustRange()">autoAdjustRange</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/axis/ValueAxis.html">ValueAxis</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="translateValueToJava2D(double, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>translateValueToJava2D</H3><PRE>public double <B>translateValueToJava2D</B>(double&nbsp;value,                                     java.awt.geom.Rectangle2D&nbsp;dataArea,                                     org.jfree.ui.RectangleEdge&nbsp;edge)</PRE><DL><DD>Converts a data value to a coordinate in Java2D space, assuming that the axis runs along one edge of the specified dataArea. <p> Note that it is possible for the coordinate to fall outside the plotArea.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/axis/ValueAxis.html#translateValueToJava2D(double, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)">translateValueToJava2D</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/axis/ValueAxis.html">ValueAxis</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the data value.<DD><CODE>dataArea</CODE> - the area for plotting the data.<DD><CODE>edge</CODE> - the axis location.<DT><B>Returns:</B><DD>The Java2D coordinate.</DL></DD></DL><HR><A NAME="translateJava2DtoValue(float, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>translateJava2DtoValue</H3><PRE>public double <B>translateJava2DtoValue</B>(float&nbsp;java2DValue,                                     java.awt.geom.Rectangle2D&nbsp;dataArea,                                     org.jfree.ui.RectangleEdge&nbsp;edge)</PRE><DL><DD>Converts a coordinate in Java2D space to the corresponding data value, assuming that the axis runs along one edge of the specified dataArea.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/axis/ValueAxis.html#translateJava2DtoValue(float, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)">translateJava2DtoValue</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/axis/ValueAxis.html">ValueAxis</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>java2DValue</CODE> - the coordinate in Java2D space.<DD><CODE>dataArea</CODE> - the area in which the data is plotted.<DD><CODE>edge</CODE> - the location.<DT><B>Returns:</B><DD>The data value.</DL></DD></DL><HR><A NAME="calculateLowestVisibleTickValue()"><!-- --></A><H3>

⌨️ 快捷键说明

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