📄 categoryaxis.html
字号:
<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 <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.255"><B>getCategoryMargin</B></A>()</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 <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.267"><B>setCategoryMargin</B></A>(double 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. 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="getMaximumCategoryLabelLines()"><!-- --></A><H3>getMaximumCategoryLabelLines</H3><PRE>public int <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.277"><B>getMaximumCategoryLabelLines</B></A>()</PRE><DL><DD>Returns the maximum number of lines to use for each category label.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The maximum number of lines.</DL></DD></DL><HR><A NAME="setMaximumCategoryLabelLines(int)"><!-- --></A><H3>setMaximumCategoryLabelLines</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.287"><B>setMaximumCategoryLabelLines</B></A>(int lines)</PRE><DL><DD>Sets the maximum number of lines to use for each category label 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>lines</CODE> - the maximum number of lines.</DL></DD></DL><HR><A NAME="getMaximumCategoryLabelWidthRatio()"><!-- --></A><H3>getMaximumCategoryLabelWidthRatio</H3><PRE>public float <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.297"><B>getMaximumCategoryLabelWidthRatio</B></A>()</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="setMaximumCategoryLabelWidthRatio(float)"><!-- --></A><H3>setMaximumCategoryLabelWidthRatio</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.307"><B>setMaximumCategoryLabelWidthRatio</B></A>(float 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 <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.318"><B>getCategoryLabelPositionOffset</B></A>()</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 <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.328"><B>setCategoryLabelPositionOffset</B></A>(int 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> <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.339"><B>getCategoryLabelPositions</B></A>()</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 <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.349"><B>setCategoryLabelPositions</B></A>(<A HREF="../../../../org/jfree/chart/axis/CategoryLabelPositions.html" title="class in org.jfree.chart.axis">CategoryLabelPositions</A> 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="getTickLabelFont(java.lang.Comparable)"><!-- --></A><H3>getTickLabelFont</H3><PRE>public java.awt.Font <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.364"><B>getTickLabelFont</B></A>(java.lang.Comparable category)</PRE><DL><DD>Returns the font for the tick label for the given 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 font (never <code>null</code>).</DL></DD></DL><HR><A NAME="setTickLabelFont(java.lang.Comparable, java.awt.Font)"><!-- --></A><H3>setTickLabelFont</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.383"><B>setTickLabelFont</B></A>(java.lang.Comparable category, java.awt.Font font)</PRE><DL><DD>Sets the font for the tick label 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).<DD><CODE>font</CODE> - the font (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="getTickLabelPaint(java.lang.Comparable)"><!-- --></A><H3>getTickLabelPaint</H3><PRE>public java.awt.Paint <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.403"><B>getTickLabelPaint</B></A>(java.lang.Comparable category)</PRE><DL><DD>Returns the paint for the tick label for the given 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 paint (never <code>null</code>).</DL></DD></DL><HR><A NAME="setTickLabelPaint(java.lang.Comparable, java.awt.Paint)"><!-- --></A><H3>setTickLabelPaint</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/axis/CategoryAxis.html#line.422"><B>setTickLabelPaint</B></A>(java.lang.Comparable category, java.awt.Paint paint)</PRE><DL><DD>Sets the paint for the tick label 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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -