📄 linechart.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Wed Jun 18 16:34:01 CEST 2003 -->
<TITLE>
: Class LineChart
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../com/objectplanet/chart/ChartServlet.html"><B>PREV CLASS</B></A>
<A HREF="../../../com/objectplanet/chart/LineChartApplet.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="LineChart.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: <A HREF="#inner_classes_inherited_from_class_java.awt.Component">INNER</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.objectplanet.chart</FONT>
<BR>
Class LineChart</H2>
<PRE>
java.lang.Object
|
+--java.awt.Component
|
+--<A HREF="../../../com/objectplanet/chart/Chart.html">com.objectplanet.chart.Chart</A>
|
+--<B>com.objectplanet.chart.LineChart</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD>java.awt.image.ImageObserver, java.awt.ItemSelectable, java.awt.MenuContainer, java.lang.Runnable, java.io.Serializable</DD>
</DL>
<HR>
<DL>
<DT>public class <B>LineChart</B><DT>extends <A HREF="../../../com/objectplanet/chart/Chart.html">Chart</A></DL>
<P>
<font face="verdana, arial" size=-1> This line chart component enables you to add a line chart to your java applications with just a few lines of code.<p> A simple line chart can be created with the following code: <font size=+0> <pre> LineChart chart = new LineChart(); long[] values = new long[] {20, 10, 30, 50, 40}; chart.setSampleValues(values);</pre> </font> A chart with several data series can be created with the following code: <font size=+0> <pre> LineChart chart = new LineChart(4, 10, 100); long[] series0 = new long[] {98,23,46,89,72,36,49,87,23,64}; long[] series1 = new long[] {80,17,92,63,98,16,53,86,52,34}; long[] series2 = new long[] {29,83,46,93,80,72,36,42,98,36}; long[] series3 = new long[] {45,86,90,86,54,65,98,75,44,54}; chart.setSampleValues(0, series0); chart.setSampleValues(1, series1); chart.setSampleValues(2, series2); chart.setSampleValues(3, series3);</pre> </font> <p> See <a href="../../../../doc/linechart.html">here</a> for a list of parameters to set for the line chart. </font>
<P>
<DL>
<DT><B>Author: </B><DD>Bjorn J. Kvande.</DD>
<DT><B>See Also: </B><DD><A HREF="../../../serialized-form.html#com.objectplanet.chart.LineChart">Serialized Form</A></DL>
<HR>
<P>
<!-- ======== INNER CLASS SUMMARY ======== -->
<A NAME="inner_classes_inherited_from_class_java.awt.Component"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Inner classes inherited from class java.awt.Component</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>java.awt.Component.AccessibleAWTComponent</CODE></TD>
</TR>
</TABLE>
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Field Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/LineChart.html#SAMPLE_HIGHLIGHT_CIRCLE">SAMPLE_HIGHLIGHT_CIRCLE</A></B></CODE>
<BR>
Use a circle as a sample highlighter on a line.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/LineChart.html#SAMPLE_HIGHLIGHT_CIRCLE_FILLED">SAMPLE_HIGHLIGHT_CIRCLE_FILLED</A></B></CODE>
<BR>
Use a filled circle as a sample highlighter on a line.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/LineChart.html#SAMPLE_HIGHLIGHT_CIRCLE_OPAQUE">SAMPLE_HIGHLIGHT_CIRCLE_OPAQUE</A></B></CODE>
<BR>
Use an opaque circle as a sample highlighter on a line.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/LineChart.html#SAMPLE_HIGHLIGHT_DIAMOND">SAMPLE_HIGHLIGHT_DIAMOND</A></B></CODE>
<BR>
Use a diamond as a sample highlighter on a line.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/LineChart.html#SAMPLE_HIGHLIGHT_DIAMOND_FILLED">SAMPLE_HIGHLIGHT_DIAMOND_FILLED</A></B></CODE>
<BR>
Use a filled diamond as a sample highlighter on a line.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/LineChart.html#SAMPLE_HIGHLIGHT_DIAMOND_OPAQUE">SAMPLE_HIGHLIGHT_DIAMOND_OPAQUE</A></B></CODE>
<BR>
Use an opaque diamond as a sample highlighter on a line.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/LineChart.html#SAMPLE_HIGHLIGHT_SQUARE">SAMPLE_HIGHLIGHT_SQUARE</A></B></CODE>
<BR>
Use a square as a sample highlighter on a line.</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 + -