org.apache.batik.swing
Class JSVGCanvas.LocationListener

java.lang.Object
  extended by java.awt.event.MouseMotionAdapter
      extended by org.apache.batik.swing.JSVGCanvas.LocationListener
All Implemented Interfaces:
MouseMotionListener, EventListener
Enclosing class:
JSVGCanvas

protected class JSVGCanvas.LocationListener
extends MouseMotionAdapter

Helper class. Simply keeps track of the last known mouse position over the canvas.


Field Summary
protected  int lastX
           
protected  int lastY
           
 
Constructor Summary
JSVGCanvas.LocationListener()
           
 
Method Summary
 int getLastX()
           
 int getLastY()
           
 void mouseMoved(MouseEvent evt)
           
 
Methods inherited from class java.awt.event.MouseMotionAdapter
mouseDragged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastX

protected int lastX

lastY

protected int lastY
Constructor Detail

JSVGCanvas.LocationListener

public JSVGCanvas.LocationListener()
Method Detail

mouseMoved

public void mouseMoved(MouseEvent evt)
Specified by:
mouseMoved in interface MouseMotionListener
Overrides:
mouseMoved in class MouseMotionAdapter

getLastX

public int getLastX()

getLastY

public int getLastY()


Copyright © 2008 Apache Software Foundation. All Rights Reserved.