Package org.oscim.gdx
Class GdxMap
- java.lang.Object
-
- org.oscim.gdx.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.GestureDetectormGestureDetectorprotected org.oscim.map.MapmMapprotected org.oscim.renderer.MapRenderermMapRenderer
-
Constructor Summary
Constructors Constructor Description GdxMap()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcreate()protected voidcreateLayers()voiddispose()org.oscim.map.MapgetMap()protected voidinitDefaultLayers(org.oscim.tiling.TileSource tileSource, boolean tileGrid, boolean labels, boolean buildings)protected abstract voidinitGLAdapter(com.badlogic.gdx.graphics.glutils.GLVersion version)protected booleanonKeyDown(int keycode)voidpause()voidrender()voidresize(int w, int h)voidresume()
-
-
-
Method Detail
-
initDefaultLayers
protected void initDefaultLayers(org.oscim.tiling.TileSource tileSource, boolean tileGrid, boolean labels, boolean buildings)
-
create
public void create()
- Specified by:
createin interfacecom.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:
disposein interfacecom.badlogic.gdx.ApplicationListener
-
render
public void render()
- Specified by:
renderin interfacecom.badlogic.gdx.ApplicationListener
-
resize
public void resize(int w, int h)- Specified by:
resizein interfacecom.badlogic.gdx.ApplicationListener
-
pause
public void pause()
- Specified by:
pausein interfacecom.badlogic.gdx.ApplicationListener
-
resume
public void resume()
- Specified by:
resumein interfacecom.badlogic.gdx.ApplicationListener
-
onKeyDown
protected boolean onKeyDown(int keycode)
-
getMap
public org.oscim.map.Map getMap()
-
-