categoryaxis.html
来自「JFreeChart的帮助文档」· HTML 代码 · 共 1,201 行 · 第 1/4 页
HTML
1,201 行
public double <B>getLowerMargin</B>()</PRE><DL><DD>Returns the lower margin for the axis.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the margin.</DL></DD></DL><HR><A NAME="setLowerMargin(double)"><!-- --></A><H3>setLowerMargin</H3><PRE>public void <B>setLowerMargin</B>(double margin)</PRE><DL><DD>Sets the lower margin for the axis. An <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html"><CODE>AxisChangeEvent</CODE></A> is sent to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>margin</CODE> - the new margin.</DL></DD></DL><HR><A NAME="getUpperMargin()"><!-- --></A><H3>getUpperMargin</H3><PRE>public double <B>getUpperMargin</B>()</PRE><DL><DD>Returns the upper margin for the axis.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the margin.</DL></DD></DL><HR><A NAME="setUpperMargin(double)"><!-- --></A><H3>setUpperMargin</H3><PRE>public void <B>setUpperMargin</B>(double margin)</PRE><DL><DD>Sets the upper margin for the axis. An <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html"><CODE>AxisChangeEvent</CODE></A> is sent to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>margin</CODE> - the new margin.</DL></DD></DL><HR><A NAME="getCategoryMargin()"><!-- --></A><H3>getCategoryMargin</H3><PRE>public double <B>getCategoryMargin</B>()</PRE><DL><DD>Returns the category margin.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the margin.</DL></DD></DL><HR><A NAME="setCategoryMargin(double)"><!-- --></A><H3>setCategoryMargin</H3><PRE>public void <B>setCategoryMargin</B>(double margin)</PRE><DL><DD>Sets the category margin. An <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html"><CODE>AxisChangeEvent</CODE></A> is sent to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>margin</CODE> - the new margin.</DL></DD></DL><HR><A NAME="isVerticalCategoryLabels()"><!-- --></A><H3>isVerticalCategoryLabels</H3><PRE>public boolean <B>isVerticalCategoryLabels</B>()</PRE><DL><DD>Returns a flag indicating whether the category labels are rotated to vertical.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The flag.</DL></DD></DL><HR><A NAME="setVerticalCategoryLabels(boolean)"><!-- --></A><H3>setVerticalCategoryLabels</H3><PRE>public void <B>setVerticalCategoryLabels</B>(boolean flag)</PRE><DL><DD>Sets the flag that determines whether the category labels are rotated to vertical.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - the flag.</DL></DD></DL><HR><A NAME="getSkipCategoryLabelsToFit()"><!-- --></A><H3>getSkipCategoryLabelsToFit</H3><PRE>public boolean <B>getSkipCategoryLabelsToFit</B>()</PRE><DL><DD>Returns the flag that determines whether the category labels are to be skipped to avoid overlapping.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The flag.</DL></DD></DL><HR><A NAME="setSkipCategoryLabelsToFit(boolean)"><!-- --></A><H3>setSkipCategoryLabelsToFit</H3><PRE>public void <B>setSkipCategoryLabelsToFit</B>(boolean flag)</PRE><DL><DD>Sets the flag that determines whether the category labels are to be skipped to avoid overlapping.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - the new value of the flag.</DL></DD></DL><HR><A NAME="getCategoryJava2DCoordinate(org.jfree.chart.axis.CategoryAnchor, int, int, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>getCategoryJava2DCoordinate</H3><PRE>public double <B>getCategoryJava2DCoordinate</B>(<A HREF="../../../../org/jfree/chart/axis/CategoryAnchor.html">CategoryAnchor</A> anchor, int category, int categoryCount, java.awt.geom.Rectangle2D area, org.jfree.ui.RectangleEdge edge)</PRE><DL><DD>Returns the Java 2D coordinate for a category.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>anchor</CODE> - the anchor point.<DD><CODE>category</CODE> - the category index.<DD><CODE>categoryCount</CODE> - the category count.<DD><CODE>area</CODE> - the data area.<DD><CODE>edge</CODE> - the location of the axis.<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">AxisSpace</A> <B>reserveSpace</B>(java.awt.Graphics2D g2, <A HREF="../../../../org/jfree/chart/plot/Plot.html">Plot</A> plot, java.awt.geom.Rectangle2D plotArea, org.jfree.ui.RectangleEdge edge, <A HREF="../../../../org/jfree/chart/axis/AxisSpace.html">AxisSpace</A> space)</PRE><DL><DD>Estimates the space required for the axis, given a specific drawing area, without any information about the space required for the range axis/axes.<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">Axis</A></CODE></DL>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?