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

📄 barchart.html

📁 java图形报表制作
💻 HTML
📖 第 1 页 / 共 5 页
字号:

<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="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="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="getBarLabelStyle()"><!-- --></A><H3>
getBarLabelStyle</H3>
<PRE>
public int <B>getBarLabelStyle</B>()</PRE>
<DL>
<DD>Gets the current bar label style.<DD><DL>
<DT><B>Returns:</B><DD>BELOW, FLOATING, BELOW_AND_FLOATING.<DT><B>See Also: </B><DD><A HREF="../../../com/objectplanet/chart/BarChart.html#setBarLabelStyle(int)"><CODE>setBarLabelStyle(int)</CODE></A></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>
public int <B>getgridAlignment</B>()</PRE>
<DL>
<DD>Gets the bar alignment.<DD><DL>
<DT><B>Returns:</B><DD>HORIZONTAL or VERTICAL.<DT><B>See Also: </B><DD><A HREF="../../../com/objectplanet/chart/BarChart.html#setBarAlignment(int)"><CODE>setBarAlignment(int)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getLegendLabels()"><!-- --></A><H3>
getLegendLabels</H3>
<PRE>
public java.lang.String[] <B>getLegendLabels</B>()</PRE>
<DL>
<DD>Gets the legend 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>Overrides:</B><DD><CODE><A HREF="../../../com/objectplanet/chart/Chart.html#getLegendLabels()">getLegendLabels</A></CODE> in class <CODE><A HREF="../../../com/objectplanet/chart/Chart.html">Chart</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>An array with the labels.</DL>
</DD>
</DL>
<HR>

<A NAME="getValueLabelStyle()"><!-- --></A><H3>
getValueLabelStyle</H3>
<PRE>
public int <B>getValueLabelStyle</B>()</PRE>
<DL>
<DD>Gets the current value label style.<DD><DL>
<DT><B>Returns:</B><DD>INSIDE, OUTSIDE, FLOATING.</DL>
</DD>
</DL>
<HR>

<A NAME="getValuePosition(double)"><!-- --></A><H3>
getValuePosition</H3>
<PRE>
public int <B>getValuePosition</B>(double&nbsp;value)</PRE>
<DL>
<DD>Gets the position in the chart of the specified value. If the alignment of the bars is VERTICAL the position represents the y-axis. If the alignment of the bars is HORIZONTAL the position represents the x-axis.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - The value to find the position for.<DT><B>Returns:</B><DD>The pixel position.</DL>
</DD>
</DL>
<HR>

<A NAME="isAutoLabelSpacingOn()"><!-- --></A><H3>
isAutoLabelSpacingOn</H3>
<PRE>
public boolean <B>isAutoLabelSpacingOn</B>()</PRE>
<DL>
<DD>Gets the state of the automatic label spacing.<DD><DL>
<DT><B>Returns:</B><DD>True for on, false for off.<DT><B>See Also: </B><DD><A HREF="../../../com/objectplanet/chart/BarChart.html#setAutoLabelSpacingOn(boolean)"><CODE>setAutoLabelSpacingOn(boolean)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="isBarLabelsOn()"><!-- --></A><H3>
isBarLabelsOn</H3>
<PRE>
public boolean <B>isBarLabelsOn</B>()</PRE>
<DL>
<DD>Checks if the bar labels are turned on.<DD><DL>
<DT><B>Returns:</B><DD>True for on, false for off.</DL>
</DD>
</DL>
<HR>

<A NAME="isBarOutlineOn()"><!-- --></A><H3>
isBarOutlineOn</H3>
<PRE>
public boolean <B>isBarOutlineOn</B>()</PRE>
<DL>
<DD>Checks if the bar outline is turned on or off.  The bar outline is the frame drawn around each bar.<DD><DL>
<DT><B>Returns:</B><DD>True if on, false for off.</DL>
</DD>
</DL>
<HR>

<A NAME="isMultiColorOn()"><!-- --></A><H3>
isMultiColorOn</H3>
<PRE>
public boolean <B>isMultiColorOn</B>()</PRE>
<DL>
<DD>Checks if the multicolor mode is turned on.<DD><DL>
<DT><B>Returns:</B><DD>True if multicolor, false otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="isMultiSeriesOn()"><!-- --></A><H3>
isMultiSeriesOn</H3>
<PRE>
public boolean <B>isMultiSeriesOn</B>()</PRE>
<DL>
<DD>Checks if the chart is in multi series mode.<DD><DL>
<DT><B>Returns:</B><DD>True for multi series, false otherwise.<DT><B>See Also: </B><DD><A HREF="../../../com/objectplanet/chart/BarChart.html#setMultiSeriesOn(boolean)"><CODE>setMultiSeriesOn(boolean)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="render(java.awt.Graphics)"><!-- --></A><H3>

⌨️ 快捷键说明

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