public class MagnifierInputHandler extends InputAdapter implements CanvasMarker
Constructor and Description |
---|
MagnifierInputHandler(TNetwork network) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Call this method to do some cleanup work.
|
void |
init()
Initialize this handler.
|
void |
mark(java.awt.Graphics2D g)
Developers can implements this method to given additional code
to paint more information on the network canvas.
|
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 |
mouseWheelMoved(java.awt.event.MouseWheelEvent e) |
keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered
public MagnifierInputHandler(TNetwork network)
public void init()
init
in interface InputHandler
init
in class InputAdapter
public void cleanup()
InputHandler
cleanup
in interface InputHandler
cleanup
in class InputAdapter
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class InputAdapter
public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
mouseMoved
in class InputAdapter
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class InputAdapter
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
mouseExited
in class InputAdapter
public void mark(java.awt.Graphics2D g)
CanvasMarker
mark
in interface CanvasMarker
g
- the graphics object.Copyright © 2002 - 2010 Serva Software. All Rights Reserved.