public class IJCreationTool<F extends Figure> extends CreationTool implements JHotDrawTool
CreationTool for ImageJ's Swing UI.createdFigure, minimalSize, minimalSizeTreshold, presentationName, prototype, prototypeAttributesanchor, editor, isWorking, listenerListpropertySupport| 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, updateCursoraddToolListener, 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, viewToDrawingaddPropertyChangeListener, addPropertyChangeListener, clone, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListenerequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddUndoableEditListener, removeUndoableEditListener, setActionMap, setInputMapactivate, addToolListener, deactivate, draw, editCopy, editCut, editDelete, editDuplicate, editPaste, getToolTipText, removeToolListener, supportsHandleInteractionmouseEntered, mouseExitedmouseMovedkeyPressed, keyReleased, keyTypedpublic IJCreationTool(ImageDisplay display, JHotDrawAdapter<F> adapter)
protected Figure createFigure()
createFigure in class CreationToolprotected void creationFinished(Figure figure)
creationFinished in class CreationToolpublic ImageDisplay getDisplay()
JHotDrawToolImageDisplay associated with this JHotDraw tool.getDisplay in interface JHotDrawToolpublic JHotDrawAdapter<F> getAdapter()
JHotDrawToolJHotDrawAdapter associated with this JHotDraw tool.getAdapter in interface JHotDrawToolpublic boolean isConstructing()
isConstructing in interface JHotDrawToolpublic void mouseClicked(MouseEvent evt)
mouseClicked in interface MouseListenermouseClicked in class AbstractToolpublic void mousePressed(MouseEvent evt)
mousePressed in interface MouseListenermousePressed in class CreationToolpublic void mouseReleased(MouseEvent evt)
mouseReleased in interface MouseListenermouseReleased in class CreationToolpublic void mouseDragged(MouseEvent evt)
mouseDragged in interface MouseMotionListenermouseDragged in class CreationToolCopyright © 2014–2022 ImageJ. All rights reserved.