The Abstract base class for items. Provides support for enabling and disabling modal items.
Tool developers that extend this class override the event notification methods. This class
handles registering the tool with the current map display.
Note: subclasses must have a single public parameterless constructor that calls the super
constructor with a number indicating which event they want to listen for.
Example:
super( MOUSE|MOTION ) indicates that the items will be receive all mouse and mouse motion commands.
Assigns renderManager to field and registers as a listener with source. The target field is
used to determine which type of listeners to register as.
Parameters: targets - Used to determine which listeners to register as. The following choices fromthe following list can be combined using | and this tool will be registered as bothtypes of listeners:
final protected void deregisterMouseListeners()(Code)
Deregisters this object as a listener.
The events this object listens for are indicated by the targets parameter in the constructor.
This method is called by setActive() and only needs to be called by client code if setActive
is overridden and not called with super().
This method does not need to be overridden by subclasses normally.
final protected void registerMouseListeners()(Code)
Registers this object as a listener.
The events this object listens for are indicated by the targets parameter in the constructor.
This method is called by setActive() and only needs to be called by client code if setActive
is overridden and not called with super().
This method does not need to be overridden by subclasses normally.
Called each time an eclipse editor is activated. The RenderManager and ViewportPane are those
that are associated with the newly actived Eclipse view. Intended to be used if something
other just changing the current state happens. if false the tool is set as inactive and
deregistered with the component. This method does not need to be overridden by subclasses
normally.
Parameters: items - The items that the tool can use in its operations See Also:IToolContext