be.ugent.caagt.swirl.mouse

Class MouseToolCommand


public class MouseToolCommand
extends ToggleCommand

Toggle command that installs a given mouse tool with a given mouse overlay.

Important note: work on this part of the Swirl library will be discontinued because unfortunately newer versions of the GUI commands framework will no longer be available as open source. In due course this class will become deprecated and will eventually be removed from the library.

Constructor Summary

MouseToolCommand(CommandManager commandManager, String id, MouseOverlay overlay, MouseTool tool)
Default constructor

Method Summary

void
handleSelection(boolean selected)
Installs the mouse tool onto the mouse overlay associated with this action.

Constructor Details

MouseToolCommand

public MouseToolCommand(CommandManager commandManager,
                        String id,
                        MouseOverlay overlay,
                        MouseTool tool)
Default constructor

Method Details

handleSelection

public void handleSelection(boolean selected)
Installs the mouse tool onto the mouse overlay associated with this action.