📄 symbolaxis.html
字号:
<!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="SymbolAxis(java.lang.String, java.lang.String[])"><!-- --></A><H3>SymbolAxis</H3><PRE>public <A HREF="../../../../src-html/org/jfree/chart/axis/SymbolAxis.html#line.136"><B>SymbolAxis</B></A>(java.lang.String label, java.lang.String[] sv)</PRE><DL><DD>Constructs a symbol axis, using default attribute values where necessary.<P><DL><DT><B>Parameters:</B><DD><CODE>label</CODE> - the axis label (null permitted).<DD><CODE>sv</CODE> - the list of symbols to display instead of the numeric values.</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getSymbols()"><!-- --></A><H3>getSymbols</H3><PRE>public java.lang.String[] <A HREF="../../../../src-html/org/jfree/chart/axis/SymbolAxis.html#line.152"><B>getSymbols</B></A>()</PRE><DL><DD>Returns an array of the symbols for the axis.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The symbols.</DL></DD></DL><HR><A NAME="getGridBandPaint()"><!-- --></A><H3>getGridBandPaint</H3><PRE>public java.awt.Paint <A HREF="../../../../src-html/org/jfree/chart/axis/SymbolAxis.html#line.165"><B>getGridBandPaint</B></A>()</PRE><DL><DD>Returns the paint used to color the grid bands.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The grid band paint (never <code>null</code>).<DT><B>See Also:</B><DD><A HREF="../../../../org/jfree/chart/axis/SymbolAxis.html#isGridBandsVisible()"><CODE>isGridBandsVisible()</CODE></A></DL></DD></DL><HR><A NAME="setGridBandPaint(java.awt.Paint)"><!-- --></A><H3>setGridBandPaint</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/axis/SymbolAxis.html#line.175"><B>setGridBandPaint</B></A>(java.awt.Paint paint)</PRE><DL><DD>Sets the grid band paint 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>paint</CODE> - the paint (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="isGridBandsVisible()"><!-- --></A><H3>isGridBandsVisible</H3><PRE>public boolean <A HREF="../../../../src-html/org/jfree/chart/axis/SymbolAxis.html#line.190"><B>isGridBandsVisible</B></A>()</PRE><DL><DD>Returns <code>true</code> if the grid bands are showing, and <code>false</code> otherwise.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if the grid bands are showing, and <code>false</code> otherwise.</DL></DD></DL><HR><A NAME="setGridBandsVisible(boolean)"><!-- --></A><H3>setGridBandsVisible</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/axis/SymbolAxis.html#line.200"><B>setGridBandsVisible</B></A>(boolean flag)</PRE><DL><DD>Sets the visibility of the grid bands and notifies registered listeners that the axis has been modified.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - the new setting.</DL></DD></DL><HR><A NAME="selectAutoTickUnit(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>selectAutoTickUnit</H3><PRE>protected void <A HREF="../../../../src-html/org/jfree/chart/axis/SymbolAxis.html#line.214"><B>selectAutoTickUnit</B></A>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge)</PRE><DL><DD>This operation is not supported by this axis.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/axis/NumberAxis.html#selectAutoTickUnit(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)">selectAutoTickUnit</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/axis/NumberAxis.html" title="class in org.jfree.chart.axis">NumberAxis</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>dataArea</CODE> - the area in which the plot and axes should be drawn.<DD><CODE>edge</CODE> - the edge along which the axis is drawn.</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/SymbolAxis.html#line.235"><B>draw</B></A>(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>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/axis/NumberAxis.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/NumberAxis.html" title="class in org.jfree.chart.axis">NumberAxis</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 plot and axes should be drawn (<code>null</code> not permitted).<DD><CODE>dataArea</CODE> - the area within which the data should be drawn (<code>null</code> not permitted).<DD><CODE>edge</CODE> - the axis location (<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="drawGridBands(java.awt.Graphics2D, java.awt.geom.Rectangle2D, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge, java.util.List)"><!-- --></A><H3>drawGridBands</H3><PRE>protected void <A HREF="../../../../src-html/org/jfree/chart/axis/SymbolAxis.html#line.265"><B>drawGridBands</B></A>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D plotArea, java.awt.geom.Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge, java.util.List ticks)</PRE><DL><DD>Draws the grid bands. Alternate bands are colored using <CODE>gridBandPaint<CODE> (<CODE>DEFAULT_GRID_BAND_PAINT</CODE> by default).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>plotArea</CODE> - the area within which the chart should be drawn.<DD><CODE>dataArea</CODE> - the area within which the plot should be drawn (a subset of the drawArea).<DD><CODE>edge</CODE> - the axis location.<DD><CODE>ticks</CODE> - the ticks.</DL></DD></DL><HR><A NAME="drawGridBandsHorizontal(java.awt.Graphics2D, java.awt.geom.Rectangle2D, java.awt.geom.Rectangle2D, boolean, java.util.List)"><!-- --></A><H3>drawGridBandsHorizontal</H3><PRE>protected void <A HREF="../../../../src-html/org/jfree/chart/axis/SymbolAxis.html#line.297"><B>drawGridBandsHorizontal</B></A>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D plotArea, java.awt.geom.Rectangle2D dataArea, boolean firstGridBandIsDark, java.util.List ticks)</PRE><DL><DD>Draws the grid bands for the axis when it is at the top or bottom of the plot.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>plotArea</CODE> - the area within which the chart should be drawn.<DD><CODE>dataArea</CODE> - the area within which the plot should be drawn (a subset of the drawArea).<DD><CODE>firstGridBandIsDark</CODE> - True: the first grid band takes the
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -