📄 barchart.html
字号:
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> <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.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#getBarLabelStyle()">getBarLabelStyle</A></B>()</CODE>
<BR>
Gets the current bar label style.</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> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#getValueLabelStyle()">getValueLabelStyle</A></B>()</CODE>
<BR>
Gets the current value label style.</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">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#isMultiSeriesOn()">isMultiSeriesOn</A></B>()</CODE>
<BR>
Checks if the chart is in multi series mode.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#render(java.awt.Graphics)">render</A></B>(java.awt.Graphics g)</CODE>
<BR>
Renders the bar chart according to the current chart attributes and which charts features are turned on or off.</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#renderData(java.awt.Graphics, java.awt.Rectangle, java.awt.Rectangle)">renderData</A></B>(java.awt.Graphics g, java.awt.Rectangle grid, java.awt.Rectangle dataBounds)</CODE>
<BR>
Renders the bars and the value labels.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#reset()">reset</A></B>()</CODE>
<BR>
Resets the chart data and features.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#setAutoLabelSpacingOn(boolean)">setAutoLabelSpacingOn</A></B>(boolean on)</CODE>
<BR>
Turns on or off automatic bar label spacing.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#setBarAlignment(int)">setBarAlignment</A></B>(int alignment)</CODE>
<BR>
Sets the bar alignment.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/BarChart.html#setBarLabels(java.lang.String[])">setBarLabels</A></B>(java.lang.String[] labels)</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -