RoleModel Software Home    Services    People    Process        More About Us    

Simplest Example of Drawlets Applet

Although there are plenty of ways to use the Drawlets framework, it may not be apparent without some examples. Here is an extremely simple one that provides a DrawingCanvas as an Applet. We have tried to expose many of the key features of the framework and kits in this small example. However, please do not be misled into thinking that all text labels, lines, or various shapes need to behave like they do here, or that this is a complete set of features (e.g. you can easily use a different set of handles, change the manner in which they are initially constructed, etc.).

NOTE: This has been verified to work with Netscape Communicator 4.06 & 4.5 and Internet Explorer 4.01 & 5. If you find it works on something older (or doesn't work on something newer), please let us know.

With that disclaimer, here goes:

This just demonstrates some of the basic functionality you get from the Drawlets framework and included kits. The framework is extremely extensible. If you don't like the way this example draws polygons, all you'd have to do is make your own PolygonTool (writing a couple of methods) and add it to the ToolPalette to suit your needs, or use the supplied PrototypeConstructionTool from the "basics" kit instead.

Pretty cool, isn't it?

Go Back

Copyright © 2002-03 by RoleModel Software, Inc. All rights reserved.