Class OpenTCSConnectionTool

java.lang.Object
org.jhotdraw.beans.AbstractBean
org.jhotdraw.draw.tool.AbstractTool
org.jhotdraw.draw.tool.ConnectionTool
org.opentcs.thirdparty.jhotdraw.application.toolbar.OpenTCSConnectionTool
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 OpenTCSConnectionTool
extends org.jhotdraw.draw.tool.ConnectionTool
A tool to connect two figures with a path for instance.
See Also:
Serialized Form
  • Field Summary

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

    connectors, createdFigure, endConnector, prototype, startConnector, targetFigure

    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
    OpenTCSConnectionTool​(ActiveLayerProvider activeLayerProvider, org.jhotdraw.draw.ConnectionFigure prototype)
    Creates a new instance.
  • Method Summary

    Modifier and Type Method Description
    protected org.jhotdraw.draw.ConnectionFigure createFigure()  
    void mousePressed​(java.awt.event.MouseEvent evt)  
    void mouseReleased​(java.awt.event.MouseEvent event)  

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

    activate, canConnect, canConnect, creationFinished, deactivate, draw, getAnchorWidth, getPrototype, isToolDoneAfterCreation, mouseDragged, mouseMoved, repaintConnectors, setToolDoneAfterCreation

    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, getToolTipText, getView, isActive, keyPressed, keyReleased, keyTyped, maybeFireBoundsInvalidated, mouseClicked, mouseEntered, mouseExited, removeToolListener, removeUndoableEditListener, setActionMap, setInputMap, supportsHandleInteraction, 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

    • OpenTCSConnectionTool

      @Inject public OpenTCSConnectionTool​(ActiveLayerProvider activeLayerProvider, org.jhotdraw.draw.ConnectionFigure prototype)
      Creates a new instance.
      Parameters:
      activeLayerProvider - Provides the currently active layer.
      prototype - The prototypical figure to be used.
  • Method Details

    • mousePressed

      public void mousePressed​(java.awt.event.MouseEvent evt)
      Specified by:
      mousePressed in interface java.awt.event.MouseListener
      Overrides:
      mousePressed in class org.jhotdraw.draw.tool.ConnectionTool
    • mouseReleased

      public void mouseReleased​(java.awt.event.MouseEvent event)
      Specified by:
      mouseReleased in interface java.awt.event.MouseListener
      Overrides:
      mouseReleased in class org.jhotdraw.draw.tool.ConnectionTool
    • createFigure

      protected org.jhotdraw.draw.ConnectionFigure createFigure()
      Overrides:
      createFigure in class org.jhotdraw.draw.tool.ConnectionTool