📄 numberaxis.html
字号:
<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" title="class in org.jfree.chart.axis">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 value, java.awt.geom.Rectangle2D area, org.jfree.ui.RectangleEdge edge)</PRE><DL><DD><B>Deprecated.</B> <I>Use valueToJava2D() instead.</I><P><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>Overrides:</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" 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="valueToJava2D(double, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>valueToJava2D</H3><PRE>public double <B>valueToJava2D</B>(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="translateJava2DToValue(double, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>translateJava2DToValue</H3><PRE>public double <B>translateJava2DToValue</B>(double java2DValue, java.awt.geom.Rectangle2D area, org.jfree.ui.RectangleEdge edge)</PRE><DL><DD><B>Deprecated.</B> <I>Use java2DToValue() instead.</I><P><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>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/axis/ValueAxis.html#translateJava2DToValue(double, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)">translateJava2DToValue</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="java2DToValue(double, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>java2DToValue</H3><PRE>public double <B>java2DToValue</B>(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>public double <B>calculateLowestVisibleTickValue</B>()</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>public double <B>calculateHighestVisibleTickValue</B>()</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>public int <B>calculateVisibleTickCount</B>()</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> <B>draw</B>(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 permitted).<DD><CODE>plotState</CODE> - collects information about the plot (<code>null</code> permitted).<DT><B>Returns:</B><DD>the axis state (never <code>null</code>).</DL></DD></DL><HR><A NAME="createStandardTickUnits()"><!-- --></A><H3>createStandardTickUnits</H3><PRE>public static <A HREF="../../../../org/jfree/chart/axis/TickUnitSource.html" title="interface in org.jfree.chart.axis">TickUnitSource</A> <B>createStandardTickUnits</B>()</PRE><DL><DD>Creates the standard tick units. <P> If you don't like these defaults, create your own instance of TickUnits and then pass it to the setStandardTickUnits(...) method in the NumberAxis class.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the standard tick units.</DL></DD></DL><HR><A NAME="createIntegerTickUnits()"><!-- --></A><H3>createIntegerTickUnits</H3><PRE>public static <A HREF="../../../../org/jfree/chart/axis/TickUnitSource.html" title="interface in org.jfree.chart.axis">TickUnitSource</A> <B>createIntegerTickUnits</B>()</PRE><DL><DD>Returns a collection of tick units for integer values.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a collection of tick units for integer values.</DL></DD></DL><HR><A NAME="createStandardTickUnits(java.util.Locale)"><!-- --></A><H3>createStandardTickUnits</H3><PRE>public static <A HREF="../../../../org/jfree/chart/axis/TickUnitSource.html" title="interface in org.jfree.chart.axis">TickUnitSource</A> <B>createStand
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -