public class IJCreationTool<F extends Figure> extends CreationTool implements JHotDrawTool
CreationTool
for ImageJ's Swing UI.createdFigure, minimalSize, minimalSizeTreshold, presentationName, prototype, prototypeAttributes
anchor, editor, isWorking, listenerList
propertySupport
Constructor and Description |
---|
IJCreationTool(ImageDisplay display,
JHotDrawAdapter<F> adapter) |
Modifier and Type | Method and Description |
---|---|
protected Figure |
createFigure() |
protected void |
creationFinished(Figure figure) |
JHotDrawAdapter<F> |
getAdapter()
Gets the
JHotDrawAdapter associated with this JHotDraw tool. |
ImageDisplay |
getDisplay()
Gets the
ImageDisplay associated with this JHotDraw tool. |
boolean |
isConstructing() |
void |
mouseClicked(MouseEvent evt) |
void |
mouseDragged(MouseEvent evt) |
void |
mousePressed(MouseEvent evt) |
void |
mouseReleased(MouseEvent evt) |
activate, deactivate, getAddedFigure, getCreatedFigure, getPrototype, isToolDoneAfterCreation, setToolDoneAfterCreation, updateCursor
addToolListener, addUndoableEditListener, constrainPoint, constrainPoint, createActionMap, createInputMap, draw, editCopy, editCut, editDelete, editDuplicate, editPaste, fireAreaInvalidated, fireAreaInvalidated, fireBoundsInvalidated, fireToolDone, fireToolStarted, getActionMap, getDrawing, getEditor, getInputMap, getToolTipText, getView, isActive, keyPressed, keyReleased, keyTyped, maybeFireBoundsInvalidated, mouseEntered, mouseExited, mouseMoved, removeToolListener, removeUndoableEditListener, setActionMap, setInputMap, supportsHandleInteraction, viewToDrawing
addPropertyChangeListener, addPropertyChangeListener, clone, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addUndoableEditListener, removeUndoableEditListener, setActionMap, setInputMap
activate, addToolListener, deactivate, draw, editCopy, editCut, editDelete, editDuplicate, editPaste, getToolTipText, removeToolListener, supportsHandleInteraction
mouseEntered, mouseExited
mouseMoved
keyPressed, keyReleased, keyTyped
public IJCreationTool(ImageDisplay display, JHotDrawAdapter<F> adapter)
protected Figure createFigure()
createFigure
in class CreationTool
protected void creationFinished(Figure figure)
creationFinished
in class CreationTool
public ImageDisplay getDisplay()
JHotDrawTool
ImageDisplay
associated with this JHotDraw tool.getDisplay
in interface JHotDrawTool
public JHotDrawAdapter<F> getAdapter()
JHotDrawTool
JHotDrawAdapter
associated with this JHotDraw tool.getAdapter
in interface JHotDrawTool
public boolean isConstructing()
isConstructing
in interface JHotDrawTool
public void mouseClicked(MouseEvent evt)
mouseClicked
in interface MouseListener
mouseClicked
in class AbstractTool
public void mousePressed(MouseEvent evt)
mousePressed
in interface MouseListener
mousePressed
in class CreationTool
public void mouseReleased(MouseEvent evt)
mouseReleased
in interface MouseListener
mouseReleased
in class CreationTool
public void mouseDragged(MouseEvent evt)
mouseDragged
in interface MouseMotionListener
mouseDragged
in class CreationTool
Copyright © 2014–2022 ImageJ. All rights reserved.