Class JSVGCanvas.LocationListener

  • All Implemented Interfaces:
    java.awt.event.MouseMotionListener, java.util.EventListener
    Enclosing class:
    JSVGCanvas

    protected static class JSVGCanvas.LocationListener
    extends java.awt.event.MouseMotionAdapter
    Helper class. Simply keeps track of the last known mouse position over the canvas.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int lastX  
      protected int lastY  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getLastX()  
      int getLastY()  
      void mouseMoved​(java.awt.event.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

      • LocationListener

        public LocationListener()
    • Method Detail

      • mouseMoved

        public void mouseMoved​(java.awt.event.MouseEvent evt)
        Specified by:
        mouseMoved in interface java.awt.event.MouseMotionListener
        Overrides:
        mouseMoved in class java.awt.event.MouseMotionAdapter
      • getLastX

        public int getLastX()
      • getLastY

        public int getLastY()