Class CoreLoop

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.util.EventListener

    public class CoreLoop
    extends java.lang.Object
    implements java.awt.event.ActionListener
    Each MapCanvas instance has a core rendering loop. Everything happens within this loop, from mouse and keyboard event handling, to interaction and layer display. This loop runs within the Swing event thread. So care should be taken that any update/render operations should complete quickly, to prevent the UI from frozen. Any time consuming task, such as loading data from MapViewer data server, should take place in a separate thread, and update the corresponding layer when done.
    • Constructor Summary

      Constructors 
      Constructor Description
      CoreLoop​(MapCanvas view)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent e)
      Handle timer firing.
      void start()  
      void stop()  
      void toggle()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CoreLoop

        public CoreLoop​(MapCanvas view)
    • Method Detail

      • start

        public void start()
      • stop

        public void stop()
      • toggle

        public void toggle()
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
        Handle timer firing.
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener