Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The example application is a very simple drawing program that effectively functions identically whether using services/extensions or running embedded. The application, called the host, defines a SimpleShape service/extension that it uses to draw shapes. Different implementations of the SimpleShape can be created to allow the application to draw different shapes. Each shape service/extension has name and icon service properties that the application uses for handling manipulating the services/extensions. Available shapes are displayed in the applications tool bar. To draw a shape, click on its button in the tool bar and then click in the drawing canvas. Shapes cannot be resized, but they can be dragged around. When new shape services/extensions appear they are automatically added to the tool bar and they are automatically removed when the shape services/extensions disappear. Closing the applications window causes the framework and the JVM to shut down. The following is a screen shot of the application.

...