clusteredxybarrenderer.html
来自「JFreeChart 9.20的文档 需要用JAVA在网页上做统计图的东东」· HTML 代码 · 共 461 行 · 第 1/5 页
HTML
461 行
<A NAME="ClusteredXYBarRenderer()"><!-- --></A><H3>ClusteredXYBarRenderer</H3><PRE>public <B>ClusteredXYBarRenderer</B>()</PRE><DL><DD>Default constructor. Bar margin is set to 0.0.<P></DL><HR><A NAME="ClusteredXYBarRenderer(double, boolean)"><!-- --></A><H3>ClusteredXYBarRenderer</H3><PRE>public <B>ClusteredXYBarRenderer</B>(double margin, boolean centerBarAtStartValue)</PRE><DL><DD>Constructs a new XY clustered bar renderer.<P><DT><B>Parameters:</B><DD><CODE>margin</CODE> - the percentage amount to trim from the width of each bar.<DD><CODE>centerBarAtStartValue</CODE> - If true, bars will be centered on the start of the time period.</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="initialise(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.plot.XYPlot, org.jfree.data.XYDataset, org.jfree.chart.plot.PlotRenderingInfo)"><!-- --></A><H3>initialise</H3><PRE>public <A HREF="../../../../org/jfree/chart/renderer/XYItemRendererState.html" title="class in org.jfree.chart.renderer">XYItemRendererState</A> <B>initialise</B>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D dataArea, <A HREF="../../../../org/jfree/chart/plot/XYPlot.html" title="class in org.jfree.chart.plot">XYPlot</A> plot, <A HREF="../../../../org/jfree/data/XYDataset.html" title="interface in org.jfree.data">XYDataset</A> data, <A HREF="../../../../org/jfree/chart/plot/PlotRenderingInfo.html" title="class in org.jfree.chart.plot">PlotRenderingInfo</A> info)</PRE><DL><DD>Initialises the renderer. Here we calculate the Java2D y-coordinate for zero, since all the bars have their bases fixed at zero. Copied from superclass to initialize local variables.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/renderer/XYItemRenderer.html#initialise(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.plot.XYPlot, org.jfree.data.XYDataset, org.jfree.chart.plot.PlotRenderingInfo)">initialise</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/chart/renderer/XYItemRenderer.html" title="interface in org.jfree.chart.renderer">XYItemRenderer</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/renderer/XYBarRenderer.html#initialise(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.plot.XYPlot, org.jfree.data.XYDataset, org.jfree.chart.plot.PlotRenderingInfo)">initialise</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/renderer/XYBarRenderer.html" title="class in org.jfree.chart.renderer">XYBarRenderer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>dataArea</CODE> - the area inside the axes.<DD><CODE>plot</CODE> - the plot.<DD><CODE>data</CODE> - the data.<DD><CODE>info</CODE> - an optional info collection object to return data back to the caller.<DT><B>Returns:</B><DD>The number of passes required by the renderer.</DL></DD></DL><HR><A NAME="setMargin(double)"><!-- --></A><H3>setMargin</H3><PRE>public void <B>setMargin</B>(double margin)</PRE><DL><DD>Sets the margin.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/renderer/XYBarRenderer.html#setMargin(double)">setMargin</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/renderer/XYBarRenderer.html" title="class in org.jfree.chart.renderer">XYBarRenderer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>margin</CODE> - the margin.</DL></DD></DL><HR><A NAME="drawItem(java.awt.Graphics2D, org.jfree.chart.renderer.XYItemRendererState, java.awt.geom.Rectangle2D, org.jfree.chart.plot.PlotRenderingInfo, org.jfree.chart.plot.XYPlot, org.jfree.chart.axis.ValueAxis, org.jfree.chart.axis.ValueAxis, org.jfree.data.XYDataset, int, int, org.jfree.chart.plot.CrosshairState, int)"><!-- --></A><H3>drawItem</H3><PRE>public void <B>drawItem</B>(java.awt.Graphics2D g2, <A HREF="../../../../org/jfree/chart/renderer/XYItemRendererState.html" title="class in org.jfree.chart.renderer">XYItemRendererState</A> state, java.awt.geom.Rectangle2D dataArea, <A HREF="../../../../org/jfree/chart/plot/PlotRenderingInfo.html" title="class in org.jfree.chart.plot">PlotRenderingInfo</A> info, <A HREF="../../../../org/jfree/chart/plot/XYPlot.html" title="class in org.jfree.chart.plot">XYPlot</A> plot, <A HREF="../../../../org/jfree/chart/axis/ValueAxis.html" title="class in org.jfree.chart.axis">ValueAxis</A> domainAxis, <A HREF="../../../../org/jfree/chart/axis/ValueAxis.html" title="class in org.jfree.chart.axis">ValueAxis</A> rangeAxis, <A HREF="../../../../org/jfree/data/XYDataset.html" title="interface in org.jfree.data">XYDataset</A> dataset, int series, int item, <A HREF="../../../../org/jfree/chart/plot/CrosshairState.html" title="class in org.jfree.chart.plot">CrosshairState</A> crosshairState, int pass)</PRE><DL><DD>Draws the visual representation of a single data item. This method is mostly copied from the superclass, the change is that in the calculated space for a singe bar we draw bars for each series next to each other. The width of each bar is the available width divided by the number of series. Bars for each series are drawn in order left to right.<P><DD><DL>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?