I've finished writing a new selection tool for OpenJUMP. The SuperSelectCursorTool extends the current SelectTool and allows more elegant control of the tools selection behvaior. Instead of using the control and shift buttons to control the selection behavior the user will set "selection modes" using a simple toolbox.
The user will now be able to create "sticky selections". In the sticky selection mode each mouse drag or click using the SuperSelectCursorTool will add to the current selected items. The only way to clear the selected items in this mode will be with a "clear selected items" button. The user will also be able to add and remove features from the same set of selected items at will using buttons on a toolbar. I may add support for the creation of named "selection sets" with this cursor tool in the future. I hope this tool will make more complex selection tasks easier for the user. By the end of the week I hope to have the following tasks accomplished: - A plug-in that creates a toolbox with a button to activate the SuperSelect tool, a button to control selection modes, a toggle button to trigger ONLY "removal from" or ONLY "addition to" the selected items when the SuperSelect too is used, and a button to clear the selected items. - Writing Javadoc comments for all public methods in the AbstractSelection class, the SelectTool class, and the FeatureSelection class. - Writing Javadoc for some of the methods in the SelectionManager class. - Refactoring of some source code in the SelectTool class, the AbstractSelection class, and the FeatureSelection class. ( I have already added some source code comments to these classes.) I have also been keeping notes on the selection code in OpenJUMP and will be writing a short module for a new OpenJUMP Programmer's Guide that expands on the material about selections in the original JUMP Developer's Guide and that also contains a section on selections in OpenJUMP for Core Programmers. After this work is complete I will return to my work testing the pluggable rendering system with a stand-alone text label plug-in. The Sunburned Surveyor P.S. - Do we have a common icon I can use on a button that configures a tool or modifies its settings? Something like a screwdriver and a hammer? I thought I would try to be consistent if there is an icon like this that others are using. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel