This page last changed on Aug 14, 2007 by scytacki.

A page to document the format for, and how to create your own drawing tool otml.

You can run a drawing tool with stamps example here: http://rails.dev.concord.org/sds/2/offering/144/jnlp/540/view?sailotrunk.otmlurl=http://continuum.concord.org/otrunk/examples/DrawingTool/drawing_tool_stamps.otml&sailotrunk.hidetree=false&jnlp_properties=otrunk.view.author%253Dtrue%2526

Then go to the file menu and select "Save As..."
Open the saved file in a text editor and look for this part:

...
       <OTDrawingTool2 name="Stamp Drawing" backgroundImage="http://continuum.concord.org/otrunk/examples/DrawingTool/images/U6I1mixture234.png">
          <stamps>
            <OTDrawingStamp src="http://continuum.concord.org/otrunk/examples/DrawingTool/images/canister.png" description="canister" />
            <OTDrawingStamp src="http://continuum.concord.org/otrunk/examples/DrawingTool/images/mix.png" description="mix" />
            <OTDrawingStamp src="http://continuum.concord.org/otrunk/examples/DrawingTool/images/plus.png" description="plus" />
          </stamps>
        </OTDrawingTool2>
...

You can put in references to your images, save the file, and go back to the File menu and select "Reload Window".
Now you should see your changes.

You can use URLs relative to the location of the saved otml file, so you do not need to post the images online to test this out.
It should work with pngs, gifs, and jpeg images.

Document generated by Confluence on Jan 27, 2014 16:52