⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 categoryaxis.html

📁 JFreeChart 9.20的文档 需要用JAVA在网页上做统计图的东东
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<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&nbsp;margin)</PRE><DL><DD>Sets the upper margin for the axis and sends an <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html" title="class in org.jfree.chart.event"><CODE>AxisChangeEvent</CODE></A> to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>margin</CODE> - the margin as a percentage of the axis length (for example, 0.05 is five                 percent).</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&nbsp;margin)</PRE><DL><DD>Sets the category margin and sends an <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html" title="class in org.jfree.chart.event"><CODE>AxisChangeEvent</CODE></A> to all registered listeners. <P> The overall category margin is distributed over N-1 gaps, where N is the number of  categories on the axis.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>margin</CODE> - the margin as a percentage of the axis length (for example, 0.05 is five                 percent).</DL></DD></DL><HR><A NAME="getMaxCategoryLabelWidthRatio()"><!-- --></A><H3>getMaxCategoryLabelWidthRatio</H3><PRE>public float <B>getMaxCategoryLabelWidthRatio</B>()</PRE><DL><DD>Returns the category label width ratio.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the ratio.</DL></DD></DL><HR><A NAME="setMaxCategoryLabelWidthRatio(float)"><!-- --></A><H3>setMaxCategoryLabelWidthRatio</H3><PRE>public void <B>setMaxCategoryLabelWidthRatio</B>(float&nbsp;ratio)</PRE><DL><DD>Sets the maximum category label width ratio and sends an <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html" title="class in org.jfree.chart.event"><CODE>AxisChangeEvent</CODE></A> to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ratio</CODE> - the ratio.</DL></DD></DL><HR><A NAME="getCategoryLabelPositionOffset()"><!-- --></A><H3>getCategoryLabelPositionOffset</H3><PRE>public int <B>getCategoryLabelPositionOffset</B>()</PRE><DL><DD>Returns the offset between the axis and the category labels (before label positioning  is taken into account).<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the offset (in Java2D units).</DL></DD></DL><HR><A NAME="setCategoryLabelPositionOffset(int)"><!-- --></A><H3>setCategoryLabelPositionOffset</H3><PRE>public void <B>setCategoryLabelPositionOffset</B>(int&nbsp;offset)</PRE><DL><DD>Sets the offset between the axis and the category labels (before label positioning  is taken into account).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>offset</CODE> - the offset (in Java2D units).</DL></DD></DL><HR><A NAME="getCategoryLabelPositions()"><!-- --></A><H3>getCategoryLabelPositions</H3><PRE>public <A HREF="../../../../org/jfree/chart/axis/CategoryLabelPositions.html" title="class in org.jfree.chart.axis">CategoryLabelPositions</A> <B>getCategoryLabelPositions</B>()</PRE><DL><DD>Returns the category label position specification (this contains label positioning info  for all four possible axis locations).<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the positions (never <code>null</code>).</DL></DD></DL><HR><A NAME="setCategoryLabelPositions(org.jfree.chart.axis.CategoryLabelPositions)"><!-- --></A><H3>setCategoryLabelPositions</H3><PRE>public void <B>setCategoryLabelPositions</B>(<A HREF="../../../../org/jfree/chart/axis/CategoryLabelPositions.html" title="class in org.jfree.chart.axis">CategoryLabelPositions</A>&nbsp;positions)</PRE><DL><DD>Sets the category label position specification for the axis and sends an  <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html" title="class in org.jfree.chart.event"><CODE>AxisChangeEvent</CODE></A> to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>positions</CODE> - the positions (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="addCategoryLabelToolTip(java.lang.Comparable, java.lang.String)"><!-- --></A><H3>addCategoryLabelToolTip</H3><PRE>public void <B>addCategoryLabelToolTip</B>(java.lang.Comparable&nbsp;category,                                    java.lang.String&nbsp;tooltip)</PRE><DL><DD>Adds a tooltip to the specified category and sends an <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html" title="class in org.jfree.chart.event"><CODE>AxisChangeEvent</CODE></A> to  all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>category</CODE> - the category (<code>null<code> not permitted).<DD><CODE>tooltip</CODE> - the tooltip text (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="removeCategoryLabelToolTip(java.lang.Comparable)"><!-- --></A><H3>removeCategoryLabelToolTip</H3><PRE>public void <B>removeCategoryLabelToolTip</B>(java.lang.Comparable&nbsp;category)</PRE><DL><DD>Removes the tooltip for the specified category and sends an <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html" title="class in org.jfree.chart.event"><CODE>AxisChangeEvent</CODE></A> to  all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>category</CODE> - the category (<code>null<code> not permitted).</DL></DD></DL><HR><A NAME="clearCategoryLabelToolTips()"><!-- --></A><H3>clearCategoryLabelToolTips</H3><PRE>public void <B>clearCategoryLabelToolTips</B>()</PRE><DL><DD>Clears the category label tooltips and sends an <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html" title="class in org.jfree.chart.event"><CODE>AxisChangeEvent</CODE></A> to all registered listeners.<P><DD><DL></DL></DD><DD><DL></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" title="class in org.jfree.chart.axis">CategoryAnchor</A>&nbsp;anchor,                                          int&nbsp;category,                                          int&nbsp;categoryCount,                                          java.awt.geom.Rectangle2D&nbsp;area,                                          org.jfree.ui.RectangleEdge&nbsp;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.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -