📄 com.estarcom.xbean.chart.linechartapplet.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><!--NewPage--><html><head><!-- Generated by javadoc on Fri Jul 21 14:34:23 CEST 2000 --><title> Class com.estarcom.xbean.chart.LineChartApplet</title></head><body><a name="_top_"></a><pre><hr><h1> Class com.estarcom.xbean.chart.LineChartApplet</h1><pre>java.lang.Object | +----java.awt.Component | +----java.awt.Container | +----java.awt.Panel | +----java.applet.Applet | +----com.estarcom.xbean.chart.ChartApplet | +----com.estarcom.xbean.chart.LineChartApplet</pre><hr><dl> <dt> public class <b>LineChartApplet</b> <dt> extends ChartApplet</dl><font face="verdana, arial" size=-1"> The line chart applet enables you to plug a line chart directly into your html page and customize it by setting parameters in the applet tag.<p> A simple linechart applet can be created with the following tag: <font size=+0> <pre> <applet com.estarcom.xbean.chart.LineChartApplet width=300 height=200 archive=chart.jar> <param name="sampleValues" value="200,100,300,250,400"> <applet></pre> </font> and for the JDK 1.02 compatible chart, use the following tag: <font size=+0> <pre> <applet com.estarcom.xbean.chart102.LineChartApplet width=300 height=200> <param name="sampleValues" value="200,100,300,250,400"> <applet></pre> </font> <p> If you need multiple data series you can create a line chart with the following applet tag: <font size=+0> <pre> <applet com.estarcom.xbean.chart.LineChartApplet width=300 height=200 archive=chart.jar> <param name="seriesCount" value=4> <param name="sampleValues_0" value="200,100,300,250,400"> <param name="sampleValues_1" value="300,150,200,150,300"> <param name="sampleValues_2" value="100,50,350,300,350"> <param name="sampleValues_3" value="400,200,100,400,200"> <applet></pre> </font> <p> To set a chart value or feature, use the following tag<p> <font size=+0> <code> <param name="parameterName" value="valueToUse"> </code> </font> </font> <p><br> <a name="features"></a> <table BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=700> <tr> <td colspan=3> <font face="verdana, arial" size=+1><b>SAMPLE VALUES</b></font> </td> </tr> <tr> <td bgcolor="#cccccc"><font face="verdana, arial" size=-1><b>Parameter</b></font></td> <td bgcolor="#cccccc"><font face="verdana, arial" size=-1><b>Type</b></font></td> <td bgcolor="#cccccc"><font face="verdana, arial" size=-1><b>Description</b></font></td> </tr> <tr> <td valign=top><a name="sampleValues"></a><font face="verdana, arial" size=-1>sampleValues</font></td> <td valign=top><font face="verdana, arial" size=-1><a href="#decimal_array">decimal array</a></font></td> <td valign=top><font face="verdana, arial" size=-1> Sets the sample values for the first data series. If the sampleCount is not set the number of samples in the chart will be the number of values set.<br> <param name="sampleValues" value="10.5, 30.5, 20, 5.1234"> </font> </td> </tr> <tr> <td bgcolor="#e0e0e0" valign=top><a name="sampleCount"></a><font face="verdana, arial" size=-1>sampleCount</font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1><a href="#integer">integer</a></font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1> Sets the number of samples in the chart. This will override the number of values set with the sampleValues parameter.<br> <param name="sampleCount" value=5> </font> </td> </tr> <tr> <td valign=top><a name="seriesCount"></a><font face="verdana, arial" size=-1>seriesCount</font></td> <td valign=top><font face="verdana, arial" size=-1><a href="#integer">integer</a></font></td> <td valign=top><font face="verdana, arial" size=-1> Sets the number of data series in the chart. You must set this to read more than one series of data (using the sampleValues_N parameter).<br> <param name="seriesCount" value=4> </font> </td> </tr> <tr> <td bgcolor="#e0e0e0" valign=top><a name="sampleValues_N"></a><font face="verdana, arial" size=-1>sampleValues_N</font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1><a href="#decimal_array">decimal array</a></font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1> Sets the sample values for the specified data series.<br> <param name="seriesCount" value=4><br> <param name="sampleValues_0" value="200,100,300,250,400"><br> <param name="sampleValues_1" value="300,150,200,150,300"><br> <param name="sampleValues_2" value="100,50,350,300,350"><br> <param name="sampleValues_3" value="400,200,100,400,200"><br> </font> </td> </tr> <tr> <td valign=top><a name="range"></a><font face="verdana, arial" size=-1>range</font></td> <td valign=top><font face="verdana, arial" size=-1><a href="#decimal">decimal</a></font></td> <td valign=top><font face="verdana, arial" size=-1> Sets the upper range of the chart. This is the value of the upper edge of the chart. If this is not set, the upper range will be set automatically.<br> <param name="range" value=200> </font> </td> </tr> <tr> <td bgcolor="#e0e0e0" valign=top><a name="lowerRange"></a><font face="verdana, arial" size=-1>lowerRange</font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1><a href="#decimal">decimal</a></font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1> Sets the lower range of the chart. This is the value of the lower edge of the chart. If this is not set, the lower range will be adjusted automatically.<br> <param name="lowerRange" value=-200> </font> </td> </tr> <tr> <td valign=top><a name="rangeStep"></a><font face="verdana, arial" size=-1>rangeStep</font></td> <td valign=top><font face="verdana, arial" size=-1><a href="#decimal">decimal</a></font></td> <td valign=top><font face="verdana, arial" size=-1> If the <a href="#range">range</a> is not set directly it will default to the largest value of the chart (or 0). If rangeStep is set, the range will be set to the next value divisible by the step. This parameter works for the lower range as well. If the maximum value of the chart is 325, and the step is set to 100, the range will automatically be set to 400.<br> <param name="rangeStep" value=100> </font> </td> </tr> <tr> <td colspan=3> <br> <font face="verdana, arial" size=+1><b>LABELS AND FONTS</b></font> </td> </tr> <tr> <td bgcolor="#cccccc"><font face="verdana, arial" size=-1><b>Parameter</b></font></td> <td bgcolor="#cccccc"><font face="verdana, arial" size=-1><b>Type</b></font></td> <td bgcolor="#cccccc"><font face="verdana, arial" size=-1><b>Description</b></font></td> </tr> <tr> <td valign=top><a name="chartTitle"></a><font face="verdana, arial" size=-1>chartTitle</font></td> <td valign=top><font face="verdana, arial" size=-1><a href="#string">string</a></font></td> <td valign=top><font face="verdana, arial" size=-1> Sets the title of the chart. The title will be displayed at the top of the chart. To set the title font use the titleFont parameter.<br> <param name="chartTitle" value="This is my title"> </font> </td> </tr> <tr> <td bgcolor="#e0e0e0" valign=top><a name="sampleLabels"></a><font face="verdana, arial" size=-1>sampleLabels</font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1><a href="#string_array">string array</a></font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1> Sets the sample labels for this chart. The sample labels will appear below the chart grid at the sample points when the sampleLabelsOn parameter is turned on.<br> <param name="sampleLabels" value="monday, tuesday, wednesday, thursday, friday"> </font> </td> </tr> <tr> <td valign=top><a name="seriesLabels"></a><font face="verdana, arial" size=-1>seriesLabels</font></td> <td valign=top><font face="verdana, arial" size=-1><a href="#string_array">string array</a></font></td> <td valign=top><font face="verdana, arial" size=-1> Sets the series labels for this chart. The series labels will appear in the legend when multiple data series are used and legendOn is turned on.<br> <param name="seriesLabels" value="1997, 1998, 1999"> </font> </td> </tr> <tr> <td bgcolor="#e0e0e0" valign=top><a name="legendLabels"></a><font face="verdana, arial" size=-1>legendLabels</font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1><a href="#string_array">string array</a></font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1> Overrides the default labels in the legend. The default labels are either the sampleLabels (if 1 data series is used) or the seriesLabels (if multiple data series is used).<br> <param name="legendLabels" value="1997, 1998, 1999"><br> <param name="legendLabels" value="sampleLabels"><br> <param name="legendLabels" value="seriesLabels"> </font> </td> </tr> <tr> <td valign=top><a name="labelDelimiter"></a><font face="verdana, arial" size=-1>labelDelimiter</font></td> <td valign=top><font face="verdana, arial" size=-1><a href="#string">string</a></font></td> <td valign=top><font face="verdana, arial" size=-1> By default the sampleLabels, seriesLabel, targetValueLine, and legendLabels parameters use comma (,) as a field delimiter. Use this parameter to control the label delimiter if you need a comma in the labels to be displayed.<br> <param name="labelDelimiter" value=":"> </font> </td> </tr> <tr> <td bgcolor="#e0e0e0" valign=top><a name="sampleAxisLabel"></a><font face="verdana, arial" size=-1>sampleAxisLabel</font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1><a href="#string">string</a></font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1> Adds a label below the sample (X) axis.<br> <param name="sampleAxisLabel" value="samples"> </font> </td> </tr> <tr> <td valign=top><a name="rangeAxisLabel"></a><font face="verdana, arial" size=-1>rangeAxisLabel</font></td> <td valign=top><font face="verdana, arial" size=-1><a href="#string">string</a></font></td> <td valign=top><font face="verdana, arial" size=-1> Adds a label above the range (Y) axis.<br> <param name="rangeAxisLabel" value="range"> </font> </td> </tr> <tr> <td bgcolor="#e0e0e0" valign=top><a name="valueLabelPrefix"></a><font face="verdana, arial" size=-1>valueLabelPrefix</font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1><a href="#string">string</a></font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1> Adds a prefix before all value labels. You can also set the prefix for individual data series by adding the series index.<br> <param name="valueLabelPrefix" value="$"><br> <param name="valueLabelPrefix_0" value="
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -