public class ToolDelegator extends AbstractTool
Modifier and Type | Field and Description |
---|---|
protected JHotDrawTool |
activeTool |
protected JHotDrawTool |
creationTool |
protected JHotDrawTool |
selectionTool |
anchor, editor, isWorking, listenerList
propertySupport
Constructor and Description |
---|
ToolDelegator() |
Modifier and Type | Method and Description |
---|---|
void |
activate(DrawingEditor editer) |
void |
addToolListener(ToolListener listener) |
void |
addUndoableEditListener(UndoableEditListener listener) |
void |
deactivate(DrawingEditor editer) |
void |
draw(Graphics2D graphics) |
protected boolean |
maybeSwitchTool(MouseEvent event) |
void |
mouseClicked(MouseEvent event) |
void |
mouseDragged(MouseEvent event) |
void |
mouseEntered(MouseEvent event) |
void |
mouseExited(MouseEvent event) |
void |
mouseMoved(MouseEvent event) |
void |
mousePressed(MouseEvent event) |
void |
mouseReleased(MouseEvent event) |
void |
removeToolListener(ToolListener listener) |
void |
removeUndoableEditListener(UndoableEditListener listener) |
void |
setActionMap(ActionMap map) |
void |
setCreationTool(JHotDrawTool creationTool) |
void |
setInputMap(InputMap map) |
void |
setSelection(boolean val) |
boolean |
supportsHandleInteraction() |
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, updateCursor, viewToDrawing
addPropertyChangeListener, addPropertyChangeListener, clone, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
protected JHotDrawTool selectionTool
protected JHotDrawTool creationTool
protected JHotDrawTool activeTool
public void setSelection(boolean val)
public void setCreationTool(JHotDrawTool creationTool)
public void draw(Graphics2D graphics)
draw
in interface Tool
draw
in class AbstractTool
public void mouseMoved(MouseEvent event)
mouseMoved
in interface MouseMotionListener
mouseMoved
in class AbstractTool
public void mouseClicked(MouseEvent event)
mouseClicked
in interface MouseListener
mouseClicked
in class AbstractTool
public void mousePressed(MouseEvent event)
mousePressed
in interface MouseListener
mousePressed
in class AbstractTool
public void mouseReleased(MouseEvent event)
mouseReleased
in interface MouseListener
mouseReleased
in class AbstractTool
public void mouseDragged(MouseEvent event)
public void mouseEntered(MouseEvent event)
mouseEntered
in interface MouseListener
mouseEntered
in class AbstractTool
public void mouseExited(MouseEvent event)
mouseExited
in interface MouseListener
mouseExited
in class AbstractTool
public void activate(DrawingEditor editer)
activate
in interface Tool
activate
in class AbstractTool
public void deactivate(DrawingEditor editer)
deactivate
in interface Tool
deactivate
in class AbstractTool
public void addToolListener(ToolListener listener)
addToolListener
in interface Tool
addToolListener
in class AbstractTool
public void removeToolListener(ToolListener listener)
removeToolListener
in interface Tool
removeToolListener
in class AbstractTool
public void addUndoableEditListener(UndoableEditListener listener)
addUndoableEditListener
in class AbstractTool
public void removeUndoableEditListener(UndoableEditListener listener)
removeUndoableEditListener
in class AbstractTool
public void setInputMap(InputMap map)
setInputMap
in class AbstractTool
public void setActionMap(ActionMap map)
setActionMap
in class AbstractTool
public boolean supportsHandleInteraction()
supportsHandleInteraction
in interface Tool
supportsHandleInteraction
in class AbstractTool
protected boolean maybeSwitchTool(MouseEvent event)
Copyright © 2014–2022 ImageJ. All rights reserved.