📄 chartapplet.html
字号:
<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/ChartApplet.html#init()">init</A></B>()</CODE>
<BR>
Initializes the default applet parameters.</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/ChartApplet.html#itemStateChanged(java.awt.event.ItemEvent)">itemStateChanged</A></B>(java.awt.event.ItemEvent e)</CODE>
<BR>
Called when a sample is selected.</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/ChartApplet.html#loadParameters(java.util.Hashtable)">loadParameters</A></B>(java.util.Hashtable parameters)</CODE>
<BR>
Loads the parameters into the specified hashtable.</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/ChartApplet.html#loadURLParameters(java.lang.String, java.util.Hashtable)">loadURLParameters</A></B>(java.lang.String url, java.util.Hashtable parameters)</CODE>
<BR>
Loads the parameters from the specified url.</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/ChartApplet.html#print(java.awt.Graphics)">print</A></B>(java.awt.Graphics g)</CODE>
<BR>
Called when a print request is issued.</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/ChartApplet.html#reset()">reset</A></B>()</CODE>
<BR>
Resets the chart data and features.</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/ChartApplet.html#setParameter(java.lang.String, java.lang.String)">setParameter</A></B>(java.lang.String name, java.lang.String value)</CODE>
<BR>
Sets a parameter in 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/ChartApplet.html#setParameterPrefix(java.lang.String)">setParameterPrefix</A></B>(java.lang.String prefix)</CODE>
<BR>
Sets the parameter prefix for this 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/ChartApplet.html#setParameters(java.util.Hashtable)">setParameters</A></B>(java.util.Hashtable parameters)</CODE>
<BR>
Sets the applet parameters.</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/ChartApplet.html#setParentApplet(java.applet.Applet)">setParentApplet</A></B>(java.applet.Applet parent)</CODE>
<BR>
Sets the parent applet.</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/ChartApplet.html#start()">start</A></B>()</CODE>
<BR>
Starts the automatic refresh thread.</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/ChartApplet.html#stop()">stop</A></B>()</CODE>
<BR>
Stops the automatic refresh thread.</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/ChartApplet.html#toString()">toString</A></B>()</CODE>
<BR>
Returns the title of 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/ChartApplet.html#update(java.awt.Graphics)">update</A></B>(java.awt.Graphics g)</CODE>
<BR>
This method is overridden to avoid flicker when the chart is repainted.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.applet.Applet"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.applet.Applet</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>destroy, getAccessibleContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getImage, getImage, getLocale, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus</CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.awt.Panel"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.awt.Panel</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>addNotify</CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.awt.Container"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.awt.Container</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, validate, validateTree</CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.awt.Component"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.awt.Component</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, transferFocus</CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="labelDelimiter"><!-- --></A><H3>
labelDelimiter</H3>
<PRE>
protected java.lang.String <B>labelDelimiter</B></PRE>
<DL>
<DD>Used as the label delimiter for label string "arrays".</DL>
<HR>
<A NAME="sampleCountRead"><!-- --></A><H3>
sampleCountRead</H3>
<PRE>
protected int <B>sampleCountRead</B></PRE>
<DL>
<DD>This is set after loadParameters() has been called in this class.</DL>
<HR>
<A NAME="seriesCountRead"><!-- --></A><H3>
seriesCountRead</H3>
<PRE>
protected int <B>seriesCountRead</B></PRE>
<DL>
<DD>This is set after loadParameters() has been called in this class.</DL>
<HR>
<A NAME="theChart"><!-- --></A><H3>
theChart</H3>
<PRE>
public <A HREF="../../../com/objectplanet/chart/Chart.html">Chart</A> <B>theChart</B></PRE>
<DL>
<DD>The chart component of the applet.Use this reference to access the charts methods directly via JavaScript or subclasses.</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="ChartApplet()"><!-- --></A><H3>
ChartApplet</H3>
<PRE>
public <B>ChartApplet</B>()</PRE>
<DL>
<DD>Creates the chart applet.</DL>
<!-- ============ METHOD DETAIL ========== -->
<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="callJavaScript(java.lang.String)"><!-- --></A><H3>
callJavaScript</H3>
<PRE>
public void <B>callJavaScript</B>(java.lang.String javascript)</PRE>
<DL>
<DD>Calls a javascript function in the applet page.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>javascript</CODE> - The javascript URL.</DL>
</DD>
</DL>
<HR>
<A NAME="createChart(java.lang.String)"><!-- --></A><H3>
createChart</H3>
<PRE>
protected abstract <A HREF="../../../com/objectplanet/chart/Chart.html">Chart</A> <B>createChart</B>(java.lang.String className)</PRE>
<DL>
<DD>This is called by the constructor and creates the chart used for the applet. It can be overridden by a subclass to use a specialized class for the chart applet.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>className</CODE> - The class name of the chart.</DL>
</DD>
</DL>
<HR>
<A NAME="createColor(java.lang.String)"><!-- --></A><H3>
createColor</H3>
<PRE>
public static java.awt.Color <B>createColor</B>(java.lang.String color)</PRE>
<DL>
<DD>Creates a color based on the string. The string can either be the name of a java defined color, a comma seperated RGB string (255,255,255), or a 6-digit hex-string (#af10cd).<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The color object, or null if string is invalid.</DL>
</DD>
</DL>
<HR>
<A NAME="createFont(java.lang.String, java.lang.String, int, int)"><!-- --></A><H3>
createFont</H3>
<PRE>
public java.awt.Font <B>createFont</B>(java.lang.String value, java.lang.String name, int type, int size)</PRE>
<DL>
<DD>Creates a font based on the information in the specified string.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - The font string value.<DD><CODE>name</CODE> - The name of the default font.<DD><CODE>type</CODE> - The default type (Font.PLAIN, Font.BOLD, Font.ITALIC).<DD><CODE>size</CODE> - The default size.</DL>
</DD>
</DL>
<HR>
<A NAME="getAppletContext()"><!-- --></A><H3>
getAppletContext</H3>
<PRE>
public java.applet.AppletContext <B>getAppletContext</B>()</PRE>
<DL>
<DD>Gets the applet context. If the the table is used in another component and the parent applet has been set, the parent applets context is gotten.<DD><DL>
<DT><B>Overrides:</B><DD><CODE>getAppletContext</CODE> in class <CODE>java.applet.Applet</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getColorValues(java.lang.String)"><!-- --></A><H3>
getColorValues</H3>
<PRE>
protected java.awt.Color[] <B>getColorValues</B>(java.lang.String string)</PRE>
<DL>
<DD>Converts a comma seperated string to a color array.<DD><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -