symbolicaxis.html
来自「JFreeChart 9.20的文档 需要用JAVA在网页上做统计图的东东」· HTML 代码 · 共 802 行 · 第 1/4 页
HTML
802 行
<!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="SymbolicAxis(java.lang.String, java.lang.String[])"><!-- --></A><H3>SymbolicAxis</H3><PRE>public <B>SymbolicAxis</B>(java.lang.String label, java.lang.String[] sv)</PRE><DL><DD>Constructs a symbolic axis, using default attribute values where necessary.<P><DT><B>Parameters:</B><DD><CODE>label</CODE> - the axis label (null permitted).<DD><CODE>sv</CODE> - the list of symbolic values to display instead of the numeric value.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getSymbolicValue()"><!-- --></A><H3>getSymbolicValue</H3><PRE>public java.lang.String[] <B>getSymbolicValue</B>()</PRE><DL><DD>Returns the list of the symbolic values to display.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>list of symbolic values.</DL></DD></DL><HR><A NAME="getSymbolicGridPaint()"><!-- --></A><H3>getSymbolicGridPaint</H3><PRE>public java.awt.Paint <B>getSymbolicGridPaint</B>()</PRE><DL><DD>Returns the symbolic grid line color.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the grid line color.</DL></DD></DL><HR><A NAME="isGridLinesVisible()"><!-- --></A><H3>isGridLinesVisible</H3><PRE>public boolean <B>isGridLinesVisible</B>()</PRE><DL><DD>Returns <CODE>true</CODE> if the symbolic grid lines are showing, and false otherwise.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the symbolic grid lines are showing, and false otherwise.</DL></DD></DL><HR><A NAME="setSymbolicGridLinesVisible(boolean)"><!-- --></A><H3>setSymbolicGridLinesVisible</H3><PRE>public void <B>setSymbolicGridLinesVisible</B>(boolean flag)</PRE><DL><DD>Sets the visibility of the symbolic grid lines 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, java.awt.geom.Rectangle2D)"><!-- --></A><H3>selectAutoTickUnit</H3><PRE>protected void <B>selectAutoTickUnit</B>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D drawArea, java.awt.geom.Rectangle2D plotArea)</PRE><DL><DD>This operation is not supported by the symbolic values.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>drawArea</CODE> - the area in which the plot and axes should be drawn.<DD><CODE>plotArea</CODE> - the area in which the plot should be 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> <B>draw</B>(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="drawSymbolicGridLines(java.awt.Graphics2D, java.awt.geom.Rectangle2D, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge, java.util.List)"><!-- --></A><H3>drawSymbolicGridLines</H3><PRE>public void <B>drawSymbolicGridLines</B>(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 symbolic grid lines. <P> The colors are consecutively the color specified by <CODE>symbolicGridPaint<CODE> (<CODE>DEFAULT_SYMBOLIC_GRID_LINE_PAINT</CODE> by default) and white.<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="drawSymbolicGridLinesHorizontal(java.awt.Graphics2D, java.awt.geom.Rectangle2D, java.awt.geom.Rectangle2D, boolean, java.util.List)"><!-- --></A><H3>drawSymbolicGridLinesHorizontal</H3><PRE>public void <B>drawSymbolicGridLinesHorizontal</B>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D plotArea, java.awt.geom.Rectangle2D dataArea, boolean firstGridLineIsDark, java.util.List ticks)</PRE><DL><DD>Draws the symbolic grid lines. <P> The colors are consecutively the color specified by <CODE>symbolicGridPaint<CODE> (<CODE>DEFAULT_SYMBOLIC_GRID_LINE_PAINT</CODE> by default) and white. or if <CODE>firstGridLineIsDark</CODE> is <CODE>true</CODE> white and the color specified by <CODE>symbolicGridPaint<CODE>.<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>firstGridLineIsDark</CODE> - True: the first symbolic grid line take the color of <CODE>symbolicGridPaint<CODE>. False: the first symbolic grid line is white.<DD><CODE>ticks</CODE> - the ticks.</DL></DD></DL><HR><A NAME="getSymbolicGridLine(int)"><!-- --></A><H3>getSymbolicGridLine</H3><PRE>public java.awt.geom.Rectangle2D.Double <B>getSymbolicGridLine</B>(int position)</PRE><DL><DD>Get the symbolic grid line corresponding to the specified position.<P>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?