Wednesday, March 7, 2007

Jig plugin: First Look

Here's where the Jig plugin stands so far:
1. The plugin will be split into components instead of one big interface.

2. There are three interfaces that I see so far. A tool interface(for new tools), a Menu interface(for adding new menus to the menu bar), and a MenuItem interface(for adding menuitems to already constructed menus).

3. The Menu interface will have a single method:
public JMenu getJMenu();

4
. The MenuItem interface will have a single method as well:
public Map getJMenuItems();
The Map will be mapping JMenuItems with AvailableMenus.
AvailableMenus are the available menus that a JMenuItem can be attached to.

5. The Tool interface is the next thing to be considered.

to be continued...

Thursday, March 1, 2007

Plugins

The Drawable class has been successfully changed and the undo/redo functionality is in place. The next step is to create an interface for Jig plugins.

Before I work on creating the interface, I'm going to layout the use case for each plugin that I'll be developing. These Plugins are:
1. POAP plugin
2. M.O.S.A.I.C. plugin (this is a plugin based n my senior project)
3. POAP/M.O.S.A.I.C. plugin

The idea is to somewhat create the plugin interface from what I need instead of creating a plugin interface and trying to fit my needs into that package.

Also, I'll add the design changes that Donsi and I talked about which he also wrote comments about.