categoryaxis.html
来自「JFreeChart的帮助文档」· HTML 代码 · 共 1,201 行 · 第 1/4 页
HTML
1,201 行
</DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device (used to obtain font information).<DD><CODE>plot</CODE> - the plot that the axis belongs to.<DD><CODE>plotArea</CODE> - the area within which the axis should be drawn.<DD><CODE>edge</CODE> - the axis location (top or bottom).<DD><CODE>space</CODE> - the space already reserved.<DT><B>Returns:</B><DD>the estimated height required for 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 against the current plot. Nothing required in this class.<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="draw(java.awt.Graphics2D, double, java.awt.geom.Rectangle2D, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>draw</H3><PRE>public double <B>draw</B>(java.awt.Graphics2D g2, double cursor, java.awt.geom.Rectangle2D plotArea, java.awt.geom.Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge)</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)">draw</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>g2</CODE> - the graphics device.<DD><CODE>cursor</CODE> - the cursor location.<DD><CODE>plotArea</CODE> - the area within which the axis should be drawn.<DD><CODE>dataArea</CODE> - the area within which the plot is being drawn.<DD><CODE>edge</CODE> - the location of the axis.<DT><B>Returns:</B><DD>The new cursor location.</DL></DD></DL><HR><A NAME="drawHorizontalCategoryLabels(java.awt.Graphics2D, double, java.awt.geom.Rectangle2D, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>drawHorizontalCategoryLabels</H3><PRE>protected double <B>drawHorizontalCategoryLabels</B>(java.awt.Graphics2D g2, double cursor, java.awt.geom.Rectangle2D plotArea, java.awt.geom.Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge)</PRE><DL><DD>Draws the category labels when the axis is 'horizontal'.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>cursor</CODE> - the cursor location.<DD><CODE>plotArea</CODE> - the plot area.<DD><CODE>dataArea</CODE> - the area inside the axes.<DD><CODE>edge</CODE> - the axis location.<DT><B>Returns:</B><DD>The new cursor location.</DL></DD></DL><HR><A NAME="drawVerticalCategoryLabels(java.awt.Graphics2D, double, java.awt.geom.Rectangle2D, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>drawVerticalCategoryLabels</H3><PRE>protected double <B>drawVerticalCategoryLabels</B>(java.awt.Graphics2D g2, double cursor, java.awt.geom.Rectangle2D plotArea, java.awt.geom.Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge)</PRE><DL><DD>Draws the category labels when the axis is 'vertical'.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>cursor</CODE> - the cursor location.<DD><CODE>plotArea</CODE> - the plot area.<DD><CODE>dataArea</CODE> - the area inside the axes.<DD><CODE>edge</CODE> - the axis location.<DT><B>Returns:</B><DD>The new cursor location.</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> plot)</PRE><DL><DD>Returns <code>true</code> if the specified plot is compatible with the axis, and <code>false</code> otherwise.<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>A boolean.</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <B>clone</B>() throws java.lang.CloneNotSupportedException</PRE><DL><DD>Creates a clone of the axis.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/axis/Axis.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/axis/Axis.html">Axis</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>A clone.<DT><B>Throws:</B><DD><CODE>java.lang.CloneNotSupportedException</CODE> - if some component of the axis does not support cloning.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object obj)</PRE><DL><DD>Tests this axis for equality with another object.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/axis/Axis.html#equals(java.lang.Object)">equals</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>obj</CODE> - the object.<DT><B>Returns:</B><DD><code>true</code> or <code>false</code>.</DL></DD></DL><HR><A NAME="refreshTicks(java.awt.Graphics2D, double, java.awt.geom.Rectangle2D, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>refreshTicks</H3><PRE>public void <B>refreshTicks</B>(java.awt.Graphics2D g2, double cursor, java.awt.geom.Rectangle2D plotArea, java.awt.geom.Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge)</PRE><DL><DD>Creates a temporary list of ticks that can be used when drawing the axis.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/axis/Axis.html#refreshTicks(java.awt.Graphics2D, double, java.awt.geom.Rectangle2D, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)">refreshTicks</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>g2</CODE> - the graphics device (used to get font measurements).<DD><CODE>cursor</CODE> - the cursor location.<DD><CODE>plotArea</CODE> - the area where the plot and axes will be drawn.<DD><CODE>dataArea</CODE> - the area inside the axes.<DD><CODE>edge</CODE> - the location of the axis.</DL></DD></DL><HR><A NAME="refreshTicksVertical(java.awt.Graphics2D, double, java.awt.geom.Rectangle2D, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>refreshTicksVertical</H3><PRE>public void <B>refreshTicksVertical</B>(java.awt.Graphics2D g2, double cursor, java.awt.geom.Rectangle2D drawArea, java.awt.geom.Rectangle2D plotArea, org.jfree.ui.RectangleEdge edge)</PRE><DL><DD>Creates a temporary list of ticks that can be used when drawing the axis.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device (used to get font measurements).<DD><CODE>cursor</CODE> - the cursor location.<DD><CODE>drawArea</CODE> - the area where the plot and axes will be drawn.<DD><CODE>plotArea</CODE> - the area inside the axes.<DD><CODE>edge</CODE> - the location of the axis.</DL></DD></DL><HR><A NAME="refreshTicksHorizontal(java.awt.Graphics2D, double, java.awt.geom.Rectangle2D, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>refreshTicksHorizontal</H3><PRE>public void <B>refreshTicksHorizontal</B>(java.awt.Graphics2D g2, double cursor, java.awt.geom.Rectangle2D plotArea, java.awt.geom.Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge)</PRE><DL><DD>Creates a temporary list of ticks that can be used when drawing the axis.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device (used to get font measurements).<DD><CODE>cursor</CODE> - the cursor location.<DD><CODE>plotArea</CODE> - the area where the plot and axes will be drawn.<DD><CODE>dataArea</CODE> - the area inside the axes.<DD><CODE>edge</CODE> - the location of the axis.</DL></DD></DL><HR><A NAME="getMaxTickLabelHeight(java.awt.Graphics2D, java.awt.geom.Rectangle2D, boolean)"><!-- --></A><H3>getMaxTickLabelHeight</H3><PRE>protected double <B>getMaxTickLabelHeight</B>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D drawArea, boolean vertical)</PRE><DL><DD>A utility method for determining the height of the tallest tick label.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>drawArea</CODE> - the drawing area.<DD><CODE>vertical</CODE> - a flag indicating whether the tick labels are drawn vertically.<DT><B>Returns:</B><DD>The maximum tick label height.</DL></DD></DL><HR><A NAME="getMaxTickLabelWidth(java.awt.Graphics2D, java.awt.geom.Rectangle2D)"><!-- --></A><H3>getMaxTickLabelWidth</H3><PRE>protected double <B>getMaxTickLabelWidth</B>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D plotArea)</PRE><DL><DD>Returns the maximum width of the ticks in the working list (that is set up by refreshTicks()).<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/axis/Axis.html#getMaxTickLabelWidth(java.awt.Graphics2D, java.awt.geom.Rectangle2D)">getMaxTickLabelWidth</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>g2</CODE> - the graphics device.<DD><CODE>plotArea</CODE> - the area within which the plot is to be drawn.<DT><B>Returns:</B><DD>the maximum width of the ticks in the working list.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/jfree/chart/axis/CategoryAnchor.html"><B>PREV CLASS</B></A> <A HREF="../../../../org/jfree/chart/axis/CategoryAxis3D.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="CategoryAxis.html" TARGET="_top"><B>NO FRAMES</B></A> <SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?