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

📄 categoryaxis.html

📁 jfreechart最新源代码
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>category</CODE> - the category (<code>null</code> not permitted).<DD><CODE>paint</CODE> - the paint (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="addCategoryLabelToolTip(java.lang.Comparable, java.lang.String)"><!-- --></A><H3>addCategoryLabelToolTip</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.442"><B>addCategoryLabelToolTip</B></A>(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="getCategoryLabelToolTip(java.lang.Comparable)"><!-- --></A><H3>getCategoryLabelToolTip</H3><PRE>public java.lang.String <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.458"><B>getCategoryLabelToolTip</B></A>(java.lang.Comparable&nbsp;category)</PRE><DL><DD>Returns the tool tip text for the label belonging to the specified  category.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>category</CODE> - the category (<code>null</code> not permitted).<DT><B>Returns:</B><DD>The tool tip text (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="removeCategoryLabelToolTip(java.lang.Comparable)"><!-- --></A><H3>removeCategoryLabelToolTip</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.471"><B>removeCategoryLabelToolTip</B></A>(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 <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.483"><B>clearCategoryLabelToolTips</B></A>()</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 <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.499"><B>getCategoryJava2DCoordinate</B></A>(<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.<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 <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.529"><B>getCategoryStart</B></A>(int&nbsp;category,                               int&nbsp;categoryCount,                               java.awt.geom.Rectangle2D&nbsp;area,                               org.jfree.ui.RectangleEdge&nbsp;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 <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.562"><B>getCategoryMiddle</B></A>(int&nbsp;category,                                int&nbsp;categoryCount,                                java.awt.geom.Rectangle2D&nbsp;area,                                org.jfree.ui.RectangleEdge&nbsp;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 <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.580"><B>getCategoryEnd</B></A>(int&nbsp;category,                             int&nbsp;categoryCount,                             java.awt.geom.Rectangle2D&nbsp;area,                             org.jfree.ui.RectangleEdge&nbsp;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 <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.598"><B>calculateCategorySize</B></A>(int&nbsp;categoryCount,                                       java.awt.geom.Rectangle2D&nbsp;area,                                       org.jfree.ui.RectangleEdge&nbsp;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 <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.633"><B>calculateCategoryGapSize</B></A>(int&nbsp;categoryCount,                                          java.awt.geom.Rectangle2D&nbsp;area,                                          org.jfree.ui.RectangleEdge&nbsp;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> <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.667"><B>reserveSpace</B></A>(java.awt.Graphics2D&nbsp;g2,                              <A HREF="../../../../org/jfree/chart/plot/Plot.html" title="class in org.jfree.chart.plot">Plot</A>&nbsp;plot,                              java.awt.geom.Rectangle2D&nbsp;plotArea,                              org.jfree.ui.RectangleEdge&nbsp;edge,                              <A HREF="../../../../org/jfree/chart/axis/AxisSpace.html" title="class in org.jfree.chart.axis">AxisSpace</A>&nbsp;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 <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.728"><B>configure</B></A>()</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> <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.748"

⌨️ 快捷键说明

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