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

📄 barchart.html

📁 java图形报表制作Applet
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="BarChart()"><!-- --></A><H3>
BarChart</H3>
<PRE>
public <B>BarChart</B>()</PRE>
<DL>
<DD>Creates a bar chart with 1 series, 1 sample and a range of 100.</DL>
<HR>

<A NAME="BarChart(int)"><!-- --></A><H3>
BarChart</H3>
<PRE>
public <B>BarChart</B>(int&nbsp;count)</PRE>
<DL>
<DD>Creates a bar chart with the given number of samples and default range. The default range is 100.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>count</CODE> - The number of bars for the chart.</DL>
</DD>
</DL>
<HR>

<A NAME="BarChart(int, double)"><!-- --></A><H3>
BarChart</H3>
<PRE>
public <B>BarChart</B>(int&nbsp;count,                double&nbsp;range)</PRE>
<DL>
<DD>Creates a bar chart with the given number of bars and range.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>count</CODE> - The number of bars for the chart.<DD><CODE>range</CODE> - The initial range of the chart.</DL>
</DD>
</DL>
<HR>

<A NAME="BarChart(int, double, double)"><!-- --></A><H3>
BarChart</H3>
<PRE>
public <B>BarChart</B>(int&nbsp;sampleCount,                double&nbsp;range,                double&nbsp;lowerRange)</PRE>
<DL>
<DD>Creates a bar chart with the given number of bars and range.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sampleCount</CODE> - The number of bars for the chart.<DD><CODE>range</CODE> - The initial upper range of the chart.<DD><CODE>lowerRange</CODE> - The initial lower range of the chart.</DL>
</DD>
</DL>
<HR>

<A NAME="BarChart(int, int, double, double)"><!-- --></A><H3>
BarChart</H3>
<PRE>
public <B>BarChart</B>(int&nbsp;seriesCount,                int&nbsp;sampleCount,                double&nbsp;range,                double&nbsp;lowerRange)</PRE>
<DL>
<DD>Creates a bar chart with the given number of series and  bars and range.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>seriesCount</CODE> - The number of data series in the chart.<DD><CODE>sampleCount</CODE> - The number of sample in the chart.<DD><CODE>range</CODE> - The initial upper range of the chart.<DD><CODE>lowerRange</CODE> - The initial lower range of the chart.</DL>
</DD>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="calculateChartData(java.awt.Rectangle, java.awt.Rectangle)"><!-- --></A><H3>
calculateChartData</H3>
<PRE>
protected void <B>calculateChartData</B>(java.awt.Rectangle&nbsp;grid,                                  java.awt.Rectangle&nbsp;dataBounds)</PRE>
<DL>
<DD>Calculates the position and size of each bar in the chart.<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/objectplanet/chart/Chart.html#calculateChartData(java.awt.Rectangle, java.awt.Rectangle)">calculateChartData</A></CODE> in class <CODE><A HREF="../../../com/objectplanet/chart/Chart.html">Chart</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>grid</CODE> - The chart grid bounds.<DD><CODE>dataBounds</CODE> - The data bounds.</DL>
</DD>
</DL>
<HR>

<A NAME="checkDataIntegrity()"><!-- --></A><H3>
checkDataIntegrity</H3>
<PRE>
protected void <B>checkDataIntegrity</B>()</PRE>
<DL>
<DD>Makes sure the barchart specific data has the same number of series and samples as the chart data has.<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/objectplanet/chart/Chart.html#checkDataIntegrity()">checkDataIntegrity</A></CODE> in class <CODE><A HREF="../../../com/objectplanet/chart/Chart.html">Chart</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="checkSelection(java.awt.Point)"><!-- --></A><H3>
checkSelection</H3>
<PRE>
public <A HREF="../../../com/objectplanet/chart/ChartSample.html">ChartSample</A> <B>checkSelection</B>(java.awt.Point&nbsp;point)</PRE>
<DL>
<DD>This method is called when the user releases the mouse and checks if the given point is inside a bar or a legend label.<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/objectplanet/chart/Chart.html#checkSelection(java.awt.Point)">checkSelection</A></CODE> in class <CODE><A HREF="../../../com/objectplanet/chart/Chart.html">Chart</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>point</CODE> - The point clicked on.<DT><B>Returns:</B><DD>The bar selected, or null if no bar was selected.</DL>
</DD>
</DL>
<HR>

<A NAME="getBarBounds(int, int)"><!-- --></A><H3>
getBarBounds</H3>
<PRE>
public java.awt.Rectangle <B>getBarBounds</B>(int&nbsp;serie,                                       int&nbsp;sample)</PRE>
<DL>
<DD>Gets the bounds of the specified bar.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>serie</CODE> - The series index<DD><CODE>sample</CODE> - The sample index.<DT><B>Returns:</B><DD>The bounds of the bar.</DL>
</DD>
</DL>
<HR>

<A NAME="getBarLabelColor(int)"><!-- --></A><H3>
getBarLabelColor</H3>
<PRE>
public java.awt.Color <B>getBarLabelColor</B>(int&nbsp;index)</PRE>
<DL>
<DD>Gets the color of the bar label of the specified sample.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the sample (0-based).<DT><B>Returns:</B><DD>The color, or null if default or sampleColor used.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the sample index is invalid.</DL>
</DD>
</DL>
<HR>

<A NAME="getBarLabels()"><!-- --></A><H3>
getBarLabels</H3>
<PRE>
public java.lang.String[] <B>getBarLabels</B>()</PRE>
<DL>
<DD>Gets the bar labels. The array returned is the original, so don't change anything in it if you don't know what you are doing.<DD><DL>
<DT><B>Returns:</B><DD>An array with the labels.</DL>
</DD>
</DL>
<HR>

<A NAME="getBarType()"><!-- --></A><H3>
getBarType</H3>
<PRE>
public int <B>getBarType</B>()</PRE>
<DL>
<DD>Gets the current bar type in multiple series charts.<DD><DL>
<DT><B>Returns:</B><DD>STACKED_BARS or SIDE_BY_SIDE_BARS.</DL>
</DD>
</DL>
<HR>

<A NAME="getBarWidth()"><!-- --></A><H3>
getBarWidth</H3>
<PRE>
public double <B>getBarWidth</B>()</PRE>
<DL>
<DD>Gets the relative width of each bar.<DD><DL>
<DT><B>Returns:</B><DD>The width as a fraction between 0.0 and 1.0.<DT><B>See Also: </B><DD><A HREF="../../../com/objectplanet/chart/BarChart.html#setBarWidth(double)"><CODE>setBarWidth(double)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getGraphBounds()"><!-- --></A><H3>
getGraphBounds</H3>
<PRE>
public java.awt.Rectangle <B>getGraphBounds</B>()</PRE>
<DL>
<DD>Calculates the bounding rectangle of the graph itself, based on which features are on and how they are configured.<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/objectplanet/chart/Chart.html#getGraphBounds()">getGraphBounds</A></CODE> in class <CODE><A HREF="../../../com/objectplanet/chart/Chart.html">Chart</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="getgridAlignment()"><!-- --></A><H3>
getgridAlignment</H3>
<PRE>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -