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

📄 linechart.html

📁 java图形报表制作Applet
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the clockwise angle of the sample labels.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="sampleLabelAngle" value="270"&gt;<hr size=1 color="#c0c0c0">
setLabelAngle("sampleLabelAngle", 270);<hr size=1 color="#c0c0c0">
sampleLabelAngle=270
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="sampleLabelStyle"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>sampleLabelStyle</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
be displayed below the chart grid, around outside the sample point on the 
chart grid, floating above a sample point when the mouse moves over it, 
or both below and floating.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="sampleLabelStyle" value="below"&gt;<br>
&lt;param name="sampleLabelStyle" value="outside"&gt;<br>
&lt;param name="sampleLabelStyle" value="floating"&gt;<br>
&lt;param name="sampleLabelStyle" value="below_and_floating"&gt;<hr size=1 color="#c0c0c0">
setSampleLabelStyle(Chart.BELOW);<br>
setSampleLabelStyle(Chart.OUTSIDE);<br>
setSampleLabelStyle(Chart.FLOATING);<br>
setSampleLabelStyle(Chart.BELOW_AND_FLOATING);<hr size=1 color="#c0c0c0">
sampleLabelStyle=below<br>
sampleLabelStyle=outside

</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="autoLabelSpacingOn"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>autoLabelSpacingOn</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
By default all the sample labels are painted, even if there is not enough
space for them all (they will overlap). If this parameter is set 
only labels there are room for will be painted.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="autoLabelSpacingOn" value=true&gt;<hr size=1 color="#c0c0c0">
setAutoLabelSpacingOn(true);<hr size=1 color="#c0c0c0">
autoLabelSpacingOn=true
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="sampleLabelColors"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>sampleLabelColors</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the colors of the sample labels.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="sampleLabelColors" value="red, #c0c0c0, blue"&gt;<hr size=1 color="#c0c0c0">
setSampleLabelColor(0, Color.red);<br>
setSampleLabelColor(1, new Color(0xc0c0c0));<br>
setSampleLabelColor(2, Color.blue);<hr size=1 color="#c0c0c0">
sampleLabelColors=red,%23c0c0c0,blue
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="seriesLabels"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>seriesLabels</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the series labels for this chart. The series labels are displayed
in the legend, one for each data series.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="seriesLabels" value="2000, 2001, 2002"&gt;<hr size=1 color="#c0c0c0">
setSeriesLabels(new String[] {"2000","2001","2002"});<br>
setSeriesLabel(0, "another label");<hr size=1 color="#c0c0c0">
seriesLabels=2000,2001,2002
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="seriesLabelColors"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>seriesLabelColors</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the colors of the series labels in the legend.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="seriesLabelColors" value="red, #7f0000, blue"&gt;<hr size=1 color="#c0c0c0">
setSeriesLabelColor(0, Color.red);<br>
setSeriesLabelColor(1, new Color(0x7f0000));<br>
setSeriesLabelColor(2, Color.blue);<hr size=1 color="#c0c0c0">
seriesLabelColors=red,%237f0000,blue
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="seriesLabelsOn"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>seriesLabelsOn</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Turns on floating series labels. The series labels will be displayed
below a sample point in a line when the mouse moves over it.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="seriesLabelsOn" value="true"&gt;<hr size=1 color="#c0c0c0">
setSeriesLabelsOn(true);
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="seriesLabelStyle"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>seriesLabelStyle</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Controls how the series labels are displayed. The series labels can either 
be displayed around outside the sample point on the chart grid or floating 
above a sample point when the mouse moves over it.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="seriesLabelStyle" value="outside"&gt;<br>
&lt;param name="seriesLabelStyle" value="floating"&gt;<hr size=1 color="#c0c0c0">
setSeriesLabelStyle(LineChart.OUTSIDE);<br>
setSeriesLabelStyle(LineChart.FLOATING);<hr size=1 color="#c0c0c0">
seriesLabelStyle=outside<br>
seriesLabelStyle=floating
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="legendOn"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>legendOn</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Turns on the legend that displays the series labels. The position of the
legend can be set using the legendPosition parameter.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="legendOn" value=true&gt;<hr size=1 color="#c0c0c0">
setLegendOn(true);<hr size=1 color="#c0c0c0">
legendOn=true
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="legendPosition"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>legendPosition</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the legend position. Possible positions are right, left, top, 
or bottom. The default position is to the right.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="legendPosition" value="right"&gt;<br>
&lt;param name="legendPosition" value="left"&gt;<br>
&lt;param name="legendPosition" value="top"&gt;<br>
&lt;param name="legendPosition" value="bottom"&gt;<hr size=1 color="#c0c0c0">
setLegendPosition(LineChart.RIGHT);<br>
setLegendPosition(LineChart.LEFT);<br>
setLegendPosition(LineChart.TOP);<br>
setLegendPosition(LineChart.BOTTOM);<hr size=1 color="#c0c0c0">
legendPosition=left
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="legendLabels"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>legendLabels</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Overrides the default labels in the legend which are taken from the
seriesLabels parameter.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="legendLabels" value="2000, 2001, 2002"&gt;<hr size=1 color="#c0c0c0">
setLegendLabels(new String[] {"2000","2001","2002"});<hr size=1 color="#c0c0c0">
legendLabels=2000,2001,2002
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="legendColors"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>legendColors</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the colors for the legend boxes. If this is not set, the colors are
taken from the sampleColors parameter.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="legendColors" value="red, #7f0000"&gt;<hr size=1 color="#c0c0c0">
setLegendColors(new Color[] {Color.red, new Color(0x7f0000));<br>
setLegendColor(1, Color.blue);<hr size=1 color="#c0c0c0">
legendColors=red,%237f0000
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="legendColumns"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>legendColumns</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the number of columns that should be used to display legend labels.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="legendColumns" value=4&gt;<hr size=1 color="#c0c0c0">
setLegendColumns(3);<hr size=1 color="#c0c0c0">
legendColumns=5
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="legendFont"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>legendFont</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the font used for the legend labels.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="legendFont" value="Dialog, plain, 12"&gt;<hr size=1 color="#c0c0c0">
setFont("legendFont", new Font("Dialog", Font.PLAIN, 12));<hr size=1 color="#c0c0c0">
legendFont=Dialog,plain,12
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="legendImage"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>legendImage</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets an image to be used in front of the legend label instead of the
default legend box. For the applet the image is specified as a relative URL.
This only works if the applet is allowed to connect back to the web server.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="legendImage_0" value="blue_ball.gif"&gt;<br>
&lt;param name="legendImage_1" value="images/red_ball.gif"&gt;<hr size=1 color="#c0c0c0">
Image image = ... load image blue_ball.gif from disk<br>
addImage("legendImage_0", image);<br>
setLegendImage(0, "legendImage_0");
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="sampleAxisLabel"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>sampleAxisLabel</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Adds a label below the sample (X) axis.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="sampleAxisLabel" value="sample axis"&gt;<hr size=1 color="#c0c0c0">
setLabel("sampleAxisLabel", "sample axis");<hr size=1 color="#c0c0c0">
sampleAxisLabel=sample axis
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="sampleAxisLabelFont"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>sampleAxisLabelFont</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the font used for the sampleAxisLabel.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="sampleAxisLabelFont" value="Dialog, plain, 12"&gt;<hr size=1 color="#c0c0c0">
setFont("sampleAxisLabelFont", new Font("Dialog", Font.PLAIN, 12));<hr size=1 color="#c0c0c0">
sampleAxisLabelFont=Dialog,plain,12
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="valueLabelsOn"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>valueLabelsOn</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Turns on the value labels for the sample points in a line.
Use valueLabelsOn_N to control the value labels per data series.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="valueLabelsOn" value=true&gt;<br>
&lt;param name="valueLabelsOn_2" value=false&gt;<hr size=1 color="#c0c0c0">
setValueLabelsOn(true);<br>
setValueLabelsOn(1, false);<hr size=1 color="#c0c0c0">
valueLabelsOn=true
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="valueLabelStyle"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>valueLabelStyle</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the display style of the value labels. The value labels can be painted 
directly above or below the sample point, directly on top of the sample point, 
or floating above the sample point when the mouse hovers over it.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="valueLabelStyle" value="outside"&gt;<br>
&lt;param name="valueLabelStyle" value="inside"&gt;<br>
&lt;param name="valueLabelStyle" value="floating"&gt;<hr size=1 color="#c0c0c0">
setValueLabelStyle(Chart.OUTSIDE);<br>
setValueLabelStyle(Chart.INSIDE);<br>
setValueLabelStyle(Chart.FLOATING);<hr size=1 color="#c0c0c0">
valueLabelStyle=outside<br>
valueLabelStyle=inside
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="sampleDecimalCount"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>sampleDecimalCount</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the number of fixed decimals to use for the value labels.
Use sampleDecimalCount_N to control the decimals per data series.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="sampleDecimalCount" value=3&gt;<br>
&lt;param name="sampleDecimalCount_2" value=0&gt;<hr size=1 color="#c0c0c0">
setSampleDecimalCount(-1, 3); // -1 specifies all series<br>
setSampleDecimalCount(0, 2); &nbsp;// serie 0, 2 decimals<hr size=1 color="#c0c0c0">
sampleDecimalCount=3<br>
sampleDecimalCount_2=0
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="floatingOnLegendOff"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>floatingOnLegendOff</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
By default floating labels are displayed for all the samples in the
selected series when the mouse moves over a series label in the legend.
This parameter turns this behavior off.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="floatingOnLegendOff" value="true"&gt;<hr size=1 color="#c0c0c0">
setFloatingOnLegendOn(false);
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="valueLabelFont"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>valueLabelFont</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the font used for the value labels.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="valueLabelFont" value="Dialog, plain, 12"&gt;<hr size=1 color="#c0c0c0">
setFont("valueLabelFont", new Font("Dialog", Font.PLAIN, 12));<hr size=1 color="#c0c0c0">
valueLabelFont=Dialog,plain,12
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="valueLabelPrefix"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>valueLabelPrefix</b></font></td></tr>
<tr><td valign=top width=40%><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.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="valueLabelPrefix" value="$"&gt;<br>
&lt;param name="valueLabelPrefix_2" value="

⌨️ 快捷键说明

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