Package org.oscim.gdx

Class GdxMap

  • All Implemented Interfaces:
    com.badlogic.gdx.ApplicationListener

    public abstract class GdxMap
    extends java.lang.Object
    implements com.badlogic.gdx.ApplicationListener
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.badlogic.gdx.input.GestureDetector mGestureDetector  
      protected org.oscim.map.Map mMap  
      protected org.oscim.renderer.MapRenderer mMapRenderer  
    • Constructor Summary

      Constructors 
      Constructor Description
      GdxMap()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void create()  
      protected void createLayers()  
      void dispose()  
      org.oscim.map.Map getMap()  
      protected void initDefaultLayers​(org.oscim.tiling.TileSource tileSource, boolean tileGrid, boolean labels, boolean buildings)  
      protected abstract void initGLAdapter​(com.badlogic.gdx.graphics.glutils.GLVersion version)  
      protected boolean onKeyDown​(int keycode)  
      void pause()  
      void render()  
      void resize​(int w, int h)  
      void resume()  
      • Methods inherited from class java.lang.Object

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

      • mMap

        protected org.oscim.map.Map mMap
      • mGestureDetector

        protected com.badlogic.gdx.input.GestureDetector mGestureDetector
      • mMapRenderer

        protected org.oscim.renderer.MapRenderer mMapRenderer
    • Constructor Detail

      • GdxMap

        public GdxMap()
    • Method Detail

      • initDefaultLayers

        protected void initDefaultLayers​(org.oscim.tiling.TileSource tileSource,
                                         boolean tileGrid,
                                         boolean labels,
                                         boolean buildings)
      • create

        public void create()
        Specified by:
        create in interface com.badlogic.gdx.ApplicationListener
      • initGLAdapter

        protected abstract void initGLAdapter​(com.badlogic.gdx.graphics.glutils.GLVersion version)
      • createLayers

        protected void createLayers()
      • dispose

        public void dispose()
        Specified by:
        dispose in interface com.badlogic.gdx.ApplicationListener
      • render

        public void render()
        Specified by:
        render in interface com.badlogic.gdx.ApplicationListener
      • resize

        public void resize​(int w,
                           int h)
        Specified by:
        resize in interface com.badlogic.gdx.ApplicationListener
      • pause

        public void pause()
        Specified by:
        pause in interface com.badlogic.gdx.ApplicationListener
      • resume

        public void resume()
        Specified by:
        resume in interface com.badlogic.gdx.ApplicationListener
      • onKeyDown

        protected boolean onKeyDown​(int keycode)
      • getMap

        public org.oscim.map.Map getMap()