| Graphics Plugin
Embedding with EMF File |
<EMBED SRC="VCLab.emf"
NAME="grafik" WIDTH="400" HEIGHT="300">
Below you will see at first a loaded EMF graphic from file VCLab.emf.
|
|
| Executing showEmf(...) method |
Source code:
<FORM>Pressing the button <INPUT TYPE="button"
NAME="show1" VALUE="showEmf" ONCLICK="document.grafik.showEmf('sph.emf');">
will load an EMF file and map it to the plugin window.</FORM> |
|
| Executing MATLAB Commands and Apply showClipBoard()
method |
Source code:
<FORM NAME="control">Enter some MATLAB plot
commands here<BR><INPUT TYPE="TEXT" NAME="MatlabCommands"
SIZE="80" VALUE="x=0:pi/10:2*pi;
plot(x,sin(x)); print -dmeta"><BR>and execute them
by pressing<INPUT TYPE="BUTTON" NAME="MatlabExecute"
VALUE="mEvalString" ONCLICK="document.matlab.mEvalString(document.control.MatlabCommands.value);">.
Pressing<INPUT TYPE="button" ONCLICK="document.grafik.showClipBoard();"
VALUE="showClipBoard"> will map the results to the plugin
window.</FORM> |
|
| Start and Stop Methods |
Source code:
<FORM>Pressing<INPUT TYPE="button"
ONCLICK="document.grafik.start();"
VALUE="Start">and<INPUT TYPE="button" ONCLICK="document.grafik.stop();"
VALUE="Stop"> will start and stop scanning the clipboard
for a new graphic. Enter some other MATLAB commands above and press the
mEvalString button.</FORM> |