📄 categoryaxis.html
字号:
<DT><B>Returns:</B><DD>the coordinate.</DL></DD></DL><HR><A NAME="getCategoryStart(int, int, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>getCategoryStart</H3><PRE>public double <B>getCategoryStart</B>(int category, int categoryCount, java.awt.geom.Rectangle2D area, org.jfree.ui.RectangleEdge edge)</PRE><DL><DD>Returns the starting coordinate for the specified category.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>category</CODE> - the category.<DD><CODE>categoryCount</CODE> - the number of categories.<DD><CODE>area</CODE> - the data area.<DD><CODE>edge</CODE> - the axis location.<DT><B>Returns:</B><DD>the coordinate.</DL></DD></DL><HR><A NAME="getCategoryMiddle(int, int, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>getCategoryMiddle</H3><PRE>public double <B>getCategoryMiddle</B>(int category, int categoryCount, java.awt.geom.Rectangle2D area, org.jfree.ui.RectangleEdge edge)</PRE><DL><DD>Returns the middle coordinate for the specified category.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>category</CODE> - the category.<DD><CODE>categoryCount</CODE> - the number of categories.<DD><CODE>area</CODE> - the data area.<DD><CODE>edge</CODE> - the axis location.<DT><B>Returns:</B><DD>the coordinate.</DL></DD></DL><HR><A NAME="getCategoryEnd(int, int, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>getCategoryEnd</H3><PRE>public double <B>getCategoryEnd</B>(int category, int categoryCount, java.awt.geom.Rectangle2D area, org.jfree.ui.RectangleEdge edge)</PRE><DL><DD>Returns the end coordinate for the specified category.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>category</CODE> - the category.<DD><CODE>categoryCount</CODE> - the number of categories.<DD><CODE>area</CODE> - the data area.<DD><CODE>edge</CODE> - the axis location.<DT><B>Returns:</B><DD>the coordinate.</DL></DD></DL><HR><A NAME="calculateCategorySize(int, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>calculateCategorySize</H3><PRE>protected double <B>calculateCategorySize</B>(int categoryCount, java.awt.geom.Rectangle2D area, org.jfree.ui.RectangleEdge edge)</PRE><DL><DD>Calculates the size (width or height, depending on the location of the axis) of a category.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>categoryCount</CODE> - the number of categories.<DD><CODE>area</CODE> - the area within which the categories will be drawn.<DD><CODE>edge</CODE> - the axis location.<DT><B>Returns:</B><DD>the category size.</DL></DD></DL><HR><A NAME="calculateCategoryGapSize(int, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>calculateCategoryGapSize</H3><PRE>protected double <B>calculateCategoryGapSize</B>(int categoryCount, java.awt.geom.Rectangle2D area, org.jfree.ui.RectangleEdge edge)</PRE><DL><DD>Calculates the size (width or height, depending on the location of the axis) of a category gap.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>categoryCount</CODE> - the number of categories.<DD><CODE>area</CODE> - the area within which the categories will be drawn.<DD><CODE>edge</CODE> - the axis location.<DT><B>Returns:</B><DD>the category gap width.</DL></DD></DL><HR><A NAME="reserveSpace(java.awt.Graphics2D, org.jfree.chart.plot.Plot, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge, org.jfree.chart.axis.AxisSpace)"><!-- --></A><H3>reserveSpace</H3><PRE>public <A HREF="../../../../org/jfree/chart/axis/AxisSpace.html" title="class in org.jfree.chart.axis">AxisSpace</A> <B>reserveSpace</B>(java.awt.Graphics2D g2, <A HREF="../../../../org/jfree/chart/plot/Plot.html" title="class in org.jfree.chart.plot">Plot</A> plot, java.awt.geom.Rectangle2D plotArea, org.jfree.ui.RectangleEdge edge, <A HREF="../../../../org/jfree/chart/axis/AxisSpace.html" title="class in org.jfree.chart.axis">AxisSpace</A> space)</PRE><DL><DD>Estimates the space required for the axis, given a specific drawing area.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/axis/Axis.html#reserveSpace(java.awt.Graphics2D, org.jfree.chart.plot.Plot, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge, org.jfree.chart.axis.AxisSpace)">reserveSpace</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 (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 space required to draw 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.<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="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 axis should be drawn (<code>null</code> not permitted).<DD><CODE>dataArea</CODE> - the area within which the plot is being 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="drawCategoryLabels(java.awt.Graphics2D, java.awt.geom.Rectangle2D, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge, org.jfree.chart.axis.AxisState, org.jfree.chart.plot.PlotRenderingInfo)"><!-- --></A><H3>drawCategoryLabels</H3><PRE>protected <A HREF="../../../../org/jfree/chart/axis/AxisState.html" title="class in org.jfree.chart.axis">AxisState</A> <B>drawCategoryLabels</B>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D plotArea, java.awt.geom.Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge, <A HREF="../../../../org/jfree/chart/axis/AxisState.html" title="class in org.jfree.chart.axis">AxisState</A> state, <A HREF="../../../../org/jfree/chart/plot/PlotRenderingInfo.html" title="class in org.jfree.chart.plot">PlotRenderingInfo</A> plotState)</PRE><DL><DD>Draws the category labels and returns the updated axis state.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device (<code>null</code> not permitted).<DD><CODE>plotArea</CODE> - the plot area (<code>null</code> not permitted).<DD><CODE>dataArea</CODE> - the area inside the axes (<code>null</code> not permitted).<DD><CODE>edge</CODE> - the axis location (<code>null</code> not permitted).<DD><CODE>state</CODE> - the axis state (<code>null</code> not permitted).<DD><CODE>plotState</CODE> - collects information about the plot (<code>null</code> permitted).<DT><B>Returns:</B><DD>the updated axis state (never <code>null</code>).</DL></DD></DL><HR><A NAME="refreshTicks(java.awt.Graphics2D, org.jfree.chart.axis.AxisState, java.awt.geom.Rectangle2D, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>refreshTicks</H3><PRE>public java.util.List <B>refreshTicks</B>(java.awt.Graphics2D g2, <A HREF="../../../../org/jfree/chart/axis/AxisState.html" title="class in org.jfree.chart.axis">AxisState</A> state, 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, org.jfree.chart.axis.AxisState, 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" 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 (used to get font measurements).<DD><CODE>state</CODE> - the axis state.<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.<DT><B>Returns:</B><DD>A list of ticks.</DL></DD></DL><HR><A NAME="createLabel(java.lang.Comparable, float, org.jfree.ui.RectangleEdge, java.awt.Graphics2D)"><!-- --></A><H3>createLabel</H3><PRE>protected org.jfree.text.TextBlock <B>createLabel</B>(java.lang.Comparable category, float width, org.jfree.ui.RectangleEdge edge, java.awt.Graphics2D g2)</PRE><DL><DD>Creates a label.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>category</CODE> - the category.<DD><CODE>width</CODE> - the available width.<DD><CODE>edge</CODE> - the edge on which the axis appears.<DD><CODE>g2</CODE> - the graphics device.<DT><B>Returns:</B><DD>a label.</DL></DD></DL><HR><A NAME="calculateTextBlockWidth(org.jfree.text.TextBlock, org.jfree.chart.axis.CategoryLabelPosition, java.awt.Graphics2D)"><!-- --></A><H3>calculateTextBlockWidth</H3><PRE>protected double <B>calculateTextBlockWidth</B>(org.jfree.text.TextBlock block, <A HREF="../../../../org/jfree/chart/axis/CategoryLabelPosition.html" title="class in org.jfree.chart.axis">CategoryLabelPosition</A> position, java.awt.Graphics2D g2)</PRE><DL><DD>A utility method for determining the width of a text block.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>block</CODE> - the text block.<DD><CODE>position</CODE> - the position.<DD><CODE>g2</CODE> - th
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -