public class AddMarkerTool extends java.lang.Object implements SelectionListener, javax.swing.event.MouseInputListener
Constructor and Description |
---|
AddMarkerTool(SelectionManager selManager) |
Modifier and Type | Method and Description |
---|---|
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseDragged(java.awt.event.MouseEvent e) |
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mouseMoved(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
void |
selectionChanged(SelectionEvent e) |
void |
setDefaultHandler()
Resets handler to default
|
void |
setHandler(AddMarkerHandler handler)
Set custom handler for adding markers
|
public AddMarkerTool(SelectionManager selManager)
public void setDefaultHandler()
public void setHandler(AddMarkerHandler handler)
handler
- handler to be addedpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void selectionChanged(SelectionEvent e)
selectionChanged
in interface SelectionListener