version 1.18 | version 1.19 |
---|
| |
% RCS INFORMATION: | % RCS INFORMATION: |
% | % |
% $RCSfile: pg.tex,v $ | % $RCSfile: pg.tex,v $ |
% $Author: mbach $ $Locker: $ $State: Exp $ | % $Author: brunner $ $Locker: $ $State: Exp $ |
% $Revision: 1.18 $ $Date: 2002/10/18 16:31:03 $ | % $Revision: 1.19 $ $Date: 2002/10/24 21:14:52 $ |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
% DESCRIPTION: | % DESCRIPTION: |
% | % |
| |
There are several PARAM tags you can add to customize the JMV | There are several PARAM tags you can add to customize the JMV |
applet's appearance. Please note that in HTML code that has | applet's appearance. Please note that in HTML code that has |
already been modified to use the Java Plug-In, these applet | already been modified to use the Java Plug-In, these applet |
parameters must be added in 3 places in order to be effective: | parameters must be added in three places in order to be effective on |
| all popular browsers: |
\begin{enumerate} | \begin{enumerate} |
\item Once as {\tt <PARAM NAME = name VALUE=value>} after the {\tt <OBJECT>} tag. | \item Once as {\tt <PARAM NAME = name VALUE=value>} after the {\tt <OBJECT>} tag. |
\item Once as {\tt <... name = value ...>} within the {\tt <EMBED...>} tag. | \item Once as {\tt <... name = value ...>} within the {\tt <EMBED...>} tag. |
| |
400 for height and 400 for width. Another important parameter within the APPLET tag is the ``ARCHIVE'' parameter. This specifies where the jar files are located. Typically, this will point to ``jmv-({\tt version}).jar'', where ({\tt version}) is the version number of JMV you are using, as in ``jmv-1.00.jar''. | 400 for height and 400 for width. Another important parameter within the APPLET tag is the ``ARCHIVE'' parameter. This specifies where the jar files are located. Typically, this will point to ``jmv-({\tt version}).jar'', where ({\tt version}) is the version number of JMV you are using, as in ``jmv-1.00.jar''. |
%% If you want to allow users to load VRML files, you must also include ``vrml97.jar''. This jar file is included in the downloads. | %% If you want to allow users to load VRML files, you must also include ``vrml97.jar''. This jar file is included in the downloads. |
| |
\section{Creating a JMV applet with the Html Creator} | \section{Creating a JMV applet with the HTML Creator} |
The JMV downloads also come with a form to help you create your own JMV applet. (JMVform.html, in the creator/ directory). To use the form, fill out all the options you want modified (these are the same as the ones described earlier), and click on the ``Create Applet'' button at the bottom. The text for the Applet will appear in the text box below it. Copy and paste this text into your html page to use it. Please note that Javascript must be enabled to use the Creator. | The JMV downloads also come with a form to help you create your own JMV applet. (JMVform.html, in the creator/ directory). To use the form, fill out all the options you want modified (these are the same as the ones described earlier), and click on the ``Create Applet'' button at the bottom. The text for the Applet will appear in the text box below it. Copy and paste this text into your html page to use it. Please note that Javascript must be enabled to use the Creator. |
| |
\chapter{Adding a new Bean} | \chapter{Adding Beans} |
\JMV\ communicates information between the menu and the molecule window through Java Beans. Here is how to add your own Bean to the JMV code. | \JMV\ communicates information between the menu and the molecule window through Java Beans. Here is how to add your own Bean to the JMV code. |
| |
Starting with the code in JMV, make the following changes to add/modify a bean: | Starting with the code in JMV, make the following changes to add/modify a bean: |
| |
for more information on signing applets. | for more information on signing applets. |
| |
| |
\chapter{Javadocs} | \chapter{Javadoc documentation} |
The Javadocs (Java\-generated documentation files) for JMV can be accessed at \htmladdnormallink{{\tt http://www.ks.uiuc.edu/Research/jmv/current/progdocs/}}{http://www.ks.uiuc.edu/Research/jmv/current/progdocs/}. \\ | |
They contain information about the classes, functions, and member variables in the JMV code.\\ | Additional source documentation for JMV is also available in Javadoc |
To generate your own Javadocs, type the command ``make doc'' in the src/ directory in the JMV source distribution. | format. The Javadoc documentation for JMV is accessable at |
| \htmladdnormallink{{\tt |
| http://www.ks.uiuc.edu/Research/jmv/current/progdocs/}}{http://www.ks.uiuc.edu/Research/jmv/current/progdocs/}. |
| They contain information about the classes, functions, and member |
| variables in the JMV code. To generate your own copy of the Javadoc |
| documenation, type the command {\tt make doc} in the {\tt src} directory in |
| the JMV source distribution. |
| |
% that's all, folks | % that's all, folks |
\end{document} | \end{document} |
| |