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

📄 clusteredxybarrenderer.html

📁 JFreeChart 9.20的文档 需要用JAVA在网页上做统计图的东东
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<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&nbsp;margin,                              boolean&nbsp;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&nbsp;g2,                                      java.awt.geom.Rectangle2D&nbsp;dataArea,                                      <A HREF="../../../../org/jfree/chart/plot/XYPlot.html" title="class in org.jfree.chart.plot">XYPlot</A>&nbsp;plot,                                      <A HREF="../../../../org/jfree/data/XYDataset.html" title="interface in org.jfree.data">XYDataset</A>&nbsp;data,                                      <A HREF="../../../../org/jfree/chart/plot/PlotRenderingInfo.html" title="class in org.jfree.chart.plot">PlotRenderingInfo</A>&nbsp;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&nbsp;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&nbsp;g2,                     <A HREF="../../../../org/jfree/chart/renderer/XYItemRendererState.html" title="class in org.jfree.chart.renderer">XYItemRendererState</A>&nbsp;state,                     java.awt.geom.Rectangle2D&nbsp;dataArea,                     <A HREF="../../../../org/jfree/chart/plot/PlotRenderingInfo.html" title="class in org.jfree.chart.plot">PlotRenderingInfo</A>&nbsp;info,                     <A HREF="../../../../org/jfree/chart/plot/XYPlot.html" title="class in org.jfree.chart.plot">XYPlot</A>&nbsp;plot,                     <A HREF="../../../../org/jfree/chart/axis/ValueAxis.html" title="class in org.jfree.chart.axis">ValueAxis</A>&nbsp;domainAxis,                     <A HREF="../../../../org/jfree/chart/axis/ValueAxis.html" title="class in org.jfree.chart.axis">ValueAxis</A>&nbsp;rangeAxis,                     <A HREF="../../../../org/jfree/data/XYDataset.html" title="interface in org.jfree.data">XYDataset</A>&nbsp;dataset,                     int&nbsp;series,                     int&nbsp;item,                     <A HREF="../../../../org/jfree/chart/plot/CrosshairState.html" title="class in org.jfree.chart.plot">CrosshairState</A>&nbsp;crosshairState,                     int&nbsp;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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -