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 -
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.ConnectionFigurecreateFigure()voidmousePressed(java.awt.event.MouseEvent evt)voidmouseReleased(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, setToolDoneAfterCreationMethods 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
-
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:
mousePressedin interfacejava.awt.event.MouseListener- Overrides:
mousePressedin classorg.jhotdraw.draw.tool.ConnectionTool
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent event)- Specified by:
mouseReleasedin interfacejava.awt.event.MouseListener- Overrides:
mouseReleasedin classorg.jhotdraw.draw.tool.ConnectionTool
-
createFigure
protected org.jhotdraw.draw.ConnectionFigure createFigure()- Overrides:
createFigurein classorg.jhotdraw.draw.tool.ConnectionTool
-