📄 barchart.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#BarChart(int)">BarChart</A></B>(int count)</CODE>
<BR>
Creates a bar chart with the given number of samples and default range. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#BarChart(int, double)">BarChart</A></B>(int count, double range)</CODE>
<BR>
Creates a bar chart with the given number of bars and range.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#BarChart(int, double, double)">BarChart</A></B>(int sampleCount, double range, double lowerRange)</CODE>
<BR>
Creates a bar chart with the given number of bars and range.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#BarChart(int, int, double, double)">BarChart</A></B>(int seriesCount, int sampleCount, double range, double lowerRange)</CODE>
<BR>
Creates a bar chart with the given number of series and bars and range.</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#calculateChartData(java.awt.Rectangle, java.awt.Rectangle)">calculateChartData</A></B>(java.awt.Rectangle grid, java.awt.Rectangle dataBounds)</CODE>
<BR>
Calculates the position and size of each bar in the chart.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#checkDataIntegrity()">checkDataIntegrity</A></B>()</CODE>
<BR>
Makes sure the barchart specific data has the same number of series and samples as the chart data has.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../com/objectplanet/chart/ChartSample.html">ChartSample</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#checkSelection(java.awt.Point)">checkSelection</A></B>(java.awt.Point point)</CODE>
<BR>
This method is called when the user releases the mouse and checks if the given point is inside a bar or a legend label.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.awt.Rectangle</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#getBarBounds(int, int)">getBarBounds</A></B>(int serie, int sample)</CODE>
<BR>
Gets the bounds of the specified bar.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.awt.Color</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#getBarLabelColor(int)">getBarLabelColor</A></B>(int index)</CODE>
<BR>
Gets the color of the bar label of the specified sample.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#getBarLabels()">getBarLabels</A></B>()</CODE>
<BR>
Gets the bar labels. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#getBarType()">getBarType</A></B>()</CODE>
<BR>
Gets the current bar type in multiple series charts.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#getBarWidth()">getBarWidth</A></B>()</CODE>
<BR>
Gets the relative width of each bar.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.awt.Rectangle</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#getGraphBounds()">getGraphBounds</A></B>()</CODE>
<BR>
Calculates the bounding rectangle of the graph itself, based on which features are on and how they are configured.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#getgridAlignment()">getgridAlignment</A></B>()</CODE>
<BR>
Gets the bar alignment.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#getLegendLabels()">getLegendLabels</A></B>()</CODE>
<BR>
Gets the legend labels. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected java.awt.Point</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#getSampleCenter(int, int)">getSampleCenter</A></B>(int sample, int serie)</CODE>
<BR>
Calculates the center point of the sample.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#getValuePosition(double)">getValuePosition</A></B>(double value)</CODE>
<BR>
Gets the position in the chart of the specified value. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#isAutoLabelSpacingOn()">isAutoLabelSpacingOn</A></B>()</CODE>
<BR>
Gets the state of the automatic label spacing.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#isBarLabelsOn()">isBarLabelsOn</A></B>()</CODE>
<BR>
Checks if the bar labels are turned on.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#isBarOutlineOn()">isBarOutlineOn</A></B>()</CODE>
<BR>
Checks if the bar outline is turned on or off. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#isMultiColorOn()">isMultiColorOn</A></B>()</CODE>
<BR>
Checks if the multicolor mode is turned on.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -