Class MultipleSelectionTool

java.lang.Object
org.jhotdraw.beans.AbstractBean
org.jhotdraw.draw.tool.AbstractTool
org.jhotdraw.draw.tool.SelectionTool
org.jhotdraw.draw.tool.DelegationSelectionTool
org.opentcs.thirdparty.jhotdraw.application.toolbar.AbstractMultipleSelectionTool
org.opentcs.guing.application.toolbar.MultipleSelectionTool
All Implemented Interfaces:
java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, org.jhotdraw.draw.tool.Tool

public class MultipleSelectionTool
extends org.opentcs.thirdparty.jhotdraw.application.toolbar.AbstractMultipleSelectionTool
The default selection tool.
See Also:
Serialized Form
  • Field Summary

    Fields inherited from class org.jhotdraw.draw.tool.SelectionTool

    SELECT_BEHIND_ENABLED_PROPERTY

    Fields inherited from class org.jhotdraw.draw.tool.AbstractTool

    anchor, editor, isWorking, listenerList

    Fields inherited from class org.jhotdraw.beans.AbstractBean

    propertySupport
  • Constructor Summary

    Constructors 
    Constructor Description
    MultipleSelectionTool​(org.opentcs.guing.application.ApplicationState appState, MenuFactory menuFactory, org.jhotdraw.draw.tool.SelectAreaTracker selectAreaTracker, org.jhotdraw.draw.tool.DragTracker dragTracker, java.util.Collection<javax.swing.Action> drawingActions, java.util.Collection<javax.swing.Action> selectionActions)
    Creates a new instance.
  • Method Summary

    Modifier and Type Method Description
    java.util.List<javax.swing.JMenuItem> customPopupMenuItems()  

    Methods inherited from class org.opentcs.thirdparty.jhotdraw.application.toolbar.AbstractMultipleSelectionTool

    handleDoubleClick, mouseClicked, showPopupMenu

    Methods inherited from class org.jhotdraw.draw.tool.DelegationSelectionTool

    getToolTipText, handleMultiClick, handlePopupMenu, mouseDragged, mousePressed, mouseReleased, setDrawingActions, setFigureActions

    Methods inherited from class org.jhotdraw.draw.tool.SelectionTool

    activate, deactivate, draw, getDragTracker, getHandleTracker, getSelectAreaTracker, isSelectBehindEnabled, keyPressed, keyReleased, keyTyped, mouseEntered, mouseExited, mouseMoved, setDragTracker, setHandleTracker, setSelectAreaTracker, setSelectBehindEnabled, setTracker, supportsHandleInteraction

    Methods inherited from class org.jhotdraw.draw.tool.AbstractTool

    addToolListener, addUndoableEditListener, constrainPoint, constrainPoint, createActionMap, createInputMap, editCopy, editCut, editDelete, editDuplicate, editPaste, fireAreaInvalidated, fireAreaInvalidated, fireBoundsInvalidated, fireToolDone, fireToolStarted, getActionMap, getDrawing, getEditor, getInputMap, getView, isActive, maybeFireBoundsInvalidated, removeToolListener, removeUndoableEditListener, setActionMap, setInputMap, updateCursor, viewToDrawing

    Methods inherited from class org.jhotdraw.beans.AbstractBean

    addPropertyChangeListener, addPropertyChangeListener, clone, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MultipleSelectionTool

      @Inject public MultipleSelectionTool​(org.opentcs.guing.application.ApplicationState appState, MenuFactory menuFactory, org.jhotdraw.draw.tool.SelectAreaTracker selectAreaTracker, org.jhotdraw.draw.tool.DragTracker dragTracker, java.util.Collection<javax.swing.Action> drawingActions, java.util.Collection<javax.swing.Action> selectionActions)
      Creates a new instance.
      Parameters:
      appState - Stores the application's current state.
      menuFactory - A factory for menu items in popup menus created by this tool.
      selectAreaTracker - The tracker to be used for area selections in the drawing.
      dragTracker - The tracker to be used for dragging figures.
      drawingActions - Drawing-related actions for the popup menus created by this tool.
      selectionActions - Selection-related actions for the popup menus created by this tool.
  • Method Details

    • customPopupMenuItems

      public java.util.List<javax.swing.JMenuItem> customPopupMenuItems()
      Specified by:
      customPopupMenuItems in class org.opentcs.thirdparty.jhotdraw.application.toolbar.AbstractMultipleSelectionTool