📄 numberaxis.html
字号:
<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The number formatter (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="setNumberFormatOverride(java.text.NumberFormat)"><!-- --></A><H3>setNumberFormatOverride</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/axis/NumberAxis.html#line.355"><B>setNumberFormatOverride</B></A>(java.text.NumberFormat 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" title="class in org.jfree.chart.axis">MarkerAxisBand</A> <A HREF="../../../../src-html/org/jfree/chart/axis/NumberAxis.html#line.365"><B>getMarkerBand</B></A>()</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 <A HREF="../../../../src-html/org/jfree/chart/axis/NumberAxis.html#line.377"><B>setMarkerBand</B></A>(<A HREF="../../../../org/jfree/chart/axis/MarkerAxisBand.html" title="class in org.jfree.chart.axis">MarkerAxisBand</A> 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="configure()"><!-- --></A><H3>configure</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/axis/NumberAxis.html#line.386"><B>configure</B></A>()</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" title="class in org.jfree.chart.axis">Axis</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="autoAdjustRange()"><!-- --></A><H3>autoAdjustRange</H3><PRE>protected void <A HREF="../../../../src-html/org/jfree/chart/axis/NumberAxis.html#line.395"><B>autoAdjustRange</B></A>()</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" title="class in org.jfree.chart.axis">ValueAxis</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="valueToJava2D(double, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>valueToJava2D</H3><PRE>public double <A HREF="../../../../src-html/org/jfree/chart/axis/NumberAxis.html#line.490"><B>valueToJava2D</B></A>(double value, java.awt.geom.Rectangle2D area, org.jfree.ui.RectangleEdge 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#valueToJava2D(double, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)">valueToJava2D</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/axis/ValueAxis.html" title="class in org.jfree.chart.axis">ValueAxis</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the data value.<DD><CODE>area</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="java2DToValue(double, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>java2DToValue</H3><PRE>public double <A HREF="../../../../src-html/org/jfree/chart/axis/NumberAxis.html#line.528"><B>java2DToValue</B></A>(double java2DValue, java.awt.geom.Rectangle2D area, org.jfree.ui.RectangleEdge 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#java2DToValue(double, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)">java2DToValue</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/axis/ValueAxis.html" title="class in org.jfree.chart.axis">ValueAxis</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>java2DValue</CODE> - the coordinate in Java2D space.<DD><CODE>area</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>calculateLowestVisibleTickValue</H3><PRE>protected double <A HREF="../../../../src-html/org/jfree/chart/axis/NumberAxis.html#line.561"><B>calculateLowestVisibleTickValue</B></A>()</PRE><DL><DD>Calculates the value of the lowest visible tick on the axis.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The value of the lowest visible tick on the axis.</DL></DD></DL><HR><A NAME="calculateHighestVisibleTickValue()"><!-- --></A><H3>calculateHighestVisibleTickValue</H3><PRE>protected double <A HREF="../../../../src-html/org/jfree/chart/axis/NumberAxis.html#line.574"><B>calculateHighestVisibleTickValue</B></A>()</PRE><DL><DD>Calculates the value of the highest visible tick on the axis.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The value of the highest visible tick on the axis.</DL></DD></DL><HR><A NAME="calculateVisibleTickCount()"><!-- --></A><H3>calculateVisibleTickCount</H3><PRE>protected int <A HREF="../../../../src-html/org/jfree/chart/axis/NumberAxis.html#line.587"><B>calculateVisibleTickCount</B></A>()</PRE><DL><DD>Calculates the number of visible ticks.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The number of visible ticks on the axis.</DL></DD></DL><HR><A NAME="draw(java.awt.Graphics2D, double, java.awt.geom.Rectangle2D, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge, org.jfree.chart.plot.PlotRenderingInfo)"><!-- --></A><H3>draw</H3><PRE>public <A HREF="../../../../org/jfree/chart/axis/AxisState.html" title="class in org.jfree.chart.axis">AxisState</A> <A HREF="../../../../src-html/org/jfree/chart/axis/NumberAxis.html#line.612"><B>draw</B></A>(java.awt.Graphics2D g2, double cursor, java.awt.geom.Rectangle2D plotArea, java.awt.geom.Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge, <A HREF="../../../../org/jfree/chart/plot/PlotRenderingInfo.html" title="class in org.jfree.chart.plot">PlotRenderingInfo</A> plotState)</PRE><DL><DD>Draws the axis on a Java 2D graphics device (such as the screen or a printer).<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/axis/Axis.html#draw(java.awt.Graphics2D, double, java.awt.geom.Rectangle2D, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge, org.jfree.chart.plot.PlotRenderingInfo)">draw</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/axis/Axis.html" title="class in org.jfree.chart.axis">Axis</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device (<code>null</code> not permitted).<DD><CODE>cursor</CODE> - the cursor location.<DD><CODE>plotArea</CODE> - the area within which the axes and data should be drawn (<code>null</code> not permitted).<DD><CODE>dataArea</CODE> - the area within which the data should be drawn (<code>null</code> not permitted).<DD><CODE>edge</CODE> - the location of the axis (<code>null</code> not
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -