public class PointToolbar extends Canvas implements MouseListener
Canvas.AccessibleAWTCanvas
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
PointToolbar(Toolbar previousToolbar,
MainDialog dialog)
Create an instance of PointToolbar.
|
Modifier and Type | Method and Description |
---|---|
int |
getCurrentTool()
Get current tool.
|
void |
mouseClicked(MouseEvent e)
Mouse clicked.
|
void |
mouseEntered(MouseEvent e)
Mouse entered.
|
void |
mouseExited(MouseEvent e)
Mouse exited.
|
void |
mousePressed(MouseEvent e)
Mouse pressed, applied to select the tool.
|
void |
mouseReleased(MouseEvent e)
Mouse released.
|
void |
paint(Graphics g)
Paint the buttons of the toolbar.
|
void |
restorePreviousToolbar()
Restore the previous toolbar.
|
void |
setAllUp()
Enable the tool buttons.
|
void |
setSource(ij.ImagePlus sourceImp,
PointHandler sourcePh)
Set the source image.
|
void |
setTarget(ij.ImagePlus targetImp,
PointHandler targetPh)
Set the target image.
|
void |
setTool(int tool)
Set the tool.
|
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
public PointToolbar(Toolbar previousToolbar, MainDialog dialog)
previousToolbar
- pointer to the previous toolbar in order to be able
to restore itdialog
- pointer to the bUnwarpJ interface dialogpublic int getCurrentTool()
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
e
- mouse eventpublic void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
e
- mouse eventpublic void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
e
- mouse eventpublic void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
e
- mouse eventpublic void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
e
- mouse eventpublic void paint(Graphics g)
public void restorePreviousToolbar()
public void setAllUp()
public void setSource(ij.ImagePlus sourceImp, PointHandler sourcePh)
sourceImp
- pointer to the source image representationsourcePh
- source point handlerpublic void setTarget(ij.ImagePlus targetImp, PointHandler targetPh)
targetImp
- pointer to the target image representationtargetPh
- target point handlerpublic void setTool(int tool)
tool
- tool indexCopyright © 2015–2021 Fiji. All rights reserved.