📄 chart.html
字号:
<TD><B>Fields inherited from class java.awt.Component</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT</CODE></TD>
</TR>
</TABLE>
<A NAME="fields_inherited_from_class_java.awt.image.ImageObserver"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Fields inherited from interface java.awt.image.ImageObserver</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH</CODE></TD>
</TR>
</TABLE>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/Chart.html#Chart(int)">Chart</A></B>(int count)</CODE>
<BR>
Creates a chart with the given number of samples and no title.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/Chart.html#Chart(int, int)">Chart</A></B>(int seriesCount, int sampleCount)</CODE>
<BR>
Creates a chart with the given number of samples and no title.</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> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/Chart.html#addImage(java.lang.String, java.awt.Image)">addImage</A></B>(java.lang.String name, java.awt.Image image)</CODE>
<BR>
Adds an image to the chart.</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/Chart.html#addItemListener(java.awt.event.ItemListener)">addItemListener</A></B>(java.awt.event.ItemListener l)</CODE>
<BR>
Adds an item listener to the chart.</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/Chart.html#addOverlayChart(com.objectplanet.chart.Chart)">addOverlayChart</A></B>(<A HREF="../../../com/objectplanet/chart/Chart.html">Chart</A> chart)</CODE>
<BR>
Adds a new overlay chart.</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/Chart.html#appendSample(int, com.objectplanet.chart.ChartSample, boolean)">appendSample</A></B>(int serie, <A HREF="../../../com/objectplanet/chart/ChartSample.html">ChartSample</A> sample, boolean makeSpace)</CODE>
<BR>
Appends a sample to the given series.</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/Chart.html#appendSampleLabel(java.lang.String, boolean)">appendSampleLabel</A></B>(java.lang.String label, boolean makeSpace)</CODE>
<BR>
Appends a sample labels If makeSpace is set to false, and all the sample labels are filled up, they will be scrolled to the left, with the left most label deleted.</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/Chart.html#appendSampleValue(int, double, boolean)">appendSampleValue</A></B>(int serie, double value, boolean makeSpace)</CODE>
<BR>
Appends a value to the given series.</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/Chart.html#autoRepaint()">autoRepaint</A></B>()</CODE>
<BR>
Calls repaint() if the automaticRepaintOn is turned on.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected abstract void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/Chart.html#calculateChartData(java.awt.Rectangle, java.awt.Rectangle)">calculateChartData</A></B>(java.awt.Rectangle grid, java.awt.Rectangle dataBounds)</CODE>
<BR>
Calculates the data used for 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/Chart.html#checkDataIntegrity()">checkDataIntegrity</A></B>()</CODE>
<BR>
This method is called each time the sample count or series count changes, and ensures that all the data has the right size.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected <A HREF="../../../com/objectplanet/chart/ChartSample.html">ChartSample</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/Chart.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 sample.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.awt.Image</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/Chart.html#createImage(int, int)">createImage</A></B>(int width, int height)</CODE>
<BR>
Creates an offscreen image.</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/Chart.html#displayFloatingLabel(int, int)">displayFloatingLabel</A></B>(int serie, int sample)</CODE>
<BR>
Displays the floating labels for the specified series and/or sample.</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/Chart.html#forceRepaint()">forceRepaint</A></B>()</CODE>
<BR>
Forces immidiate repaint of the chart.</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/Chart.html#formatNumber(double, int)">formatNumber</A></B>(double value, int decimals)</CODE>
<BR>
Formats a floating number to the number of decimals given.</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/Chart.html#get3DDepth()">get3DDepth</A></B>()</CODE>
<BR>
Gets the depth of the 3D effect.</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/Chart.html#getChartBackground()">getChartBackground</A></B>()</CODE>
<BR>
Gets the color of the chart background itself.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../com/objectplanet/chart/ChartData.html">ChartData</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/Chart.html#getChartData()">getChartData</A></B>()</CODE>
<BR>
Gets the chart data for this chart.</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/Chart.html#getChartForeground()">getChartForeground</A></B>()</CODE>
<BR>
Gets the color of the chart foreground itself.</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/Chart.html#getCurrentLowerRange(int)">getCurrentLowerRange</A></B>(int adjuster)</CODE>
<BR>
Gets the current lower range of the specified range adjuster.</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/Chart.html#getCurrentRange(int)">getCurrentRange</A></B>(int adjuster)</CODE>
<BR>
Gets the current upper range of the specified range adjuster.</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/Chart.html#getDataBounds(java.awt.Rectangle)">getDataBounds</A></B>(java.awt.Rectangle grid)</CODE>
<BR>
This method returns the bounding box for the data to be drawn in.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.awt.Font</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/Chart.html#getFont(java.lang.String)">getFont</A></B>(java.lang.String label)</CODE>
<BR>
Gets the font for the specified label.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract java.awt.Rectangle</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/Chart.html#getGraphBounds()">getGraphBounds</A></B>()</CODE>
<BR>
This method returns the bounding box for the chart grid.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.awt.Insets</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/Chart.html#getGraphInsets()">getGraphInsets</A></B>()</CODE>
<BR>
Gets the graph insets.</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/Chart.html#getGridLine(int)">getGridLine</A></B>(int index)</CODE>
<BR>
Gets grid lines positon value by its index.</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/Chart.html#getGridLineColor(int)">getGridLineColor</A></B>(int index)</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -