A Plug-in Tutorial

A Plug-in Tutorial

This chapter contains a series of progressive examples that demonstrate the various facets of plug-in writing. The code for these examples are all contained in the SDK distribution. These examples are all contained in the plugins.tutorial package (and consequently in the tutorial submenu of the plug-in menu).

In order to compile and run these examples, cd in a command shell to the ant subdirectory of the SDK and enter "ant run".

Contents

Tutorial 1: A simple component
A simple first example illustrating the basic API.

Tutorial 2: Pin-bundling and LEDs
Extending Tutorial 1 with pin-bundling and LEDs.

Tutorial 3: Customized view; labeled pins
Adding a simple customized view and pin labeling.

Tutorial 4: Properties; action menu
Setting persistent properties and using the action menu.

Tutorial 5: 4-way MUX: customized view, bundled data
A MUX circuit using a customized footprint.

Tutorial 6: Variable Width Signal Generator: View with Interactive Controls
This plug-in uses javax.swing.JSpinner controls. Spinner values are retained in .cct and .xml files.