Package globus.glmap
Class GLMapVectorLayer
java.lang.Object
globus.glmap.GLNativeObject
globus.glmap.GLMapDrawObject
globus.glmap.GLMapDrawable
globus.glmap.GLMapVectorLayer
Drawable with vector objects
-
Nested Class Summary
Nested classes/interfaces inherited from class globus.glmap.GLMapDrawable
GLMapDrawable.TransformMode
-
Constructor Summary
ConstructorDescriptionCreates new empty image that will be injected to mapGLMapVectorLayer
(int drawOrder) Creates new empty image with given draw order -
Method Summary
Modifier and TypeMethodDescriptionvoid
setVectorObject
(GLMapVectorObject object, GLMapVectorCascadeStyle style, Runnable onReadyToDraw) Sets vector object to drawvoid
setVectorObjects
(GLMapVectorObjectList objects, GLMapVectorCascadeStyle style, Runnable onReadyToDraw) Sets vector objects to drawMethods inherited from class globus.glmap.GLMapDrawable
getAngle, getHeight, getOffset, getPosition, getScale, getWidth, hitTest, isRotatesWithMap, setAngle, setOffset, setPosition, setRotatesWithMap, setScale, setTransformMode
Methods inherited from class globus.glmap.GLMapDrawObject
getDrawOrder, isHidden, setHidden
Methods inherited from class globus.glmap.GLNativeObject
dispose
-
Constructor Details
-
GLMapVectorLayer
public GLMapVectorLayer(int drawOrder) Creates new empty image with given draw order- Parameters:
drawOrder
- Draw order used to sort objects on map
-
GLMapVectorLayer
public GLMapVectorLayer()Creates new empty image that will be injected to map
-
-
Method Details
-
setVectorObject
public void setVectorObject(@NonNull GLMapVectorObject object, @NonNull GLMapVectorCascadeStyle style, @Nullable Runnable onReadyToDraw) Sets vector object to draw- Parameters:
object
- object to drawstyle
- style of objectonReadyToDraw
- optional runnable that called when object is ready to draw
-
setVectorObjects
public void setVectorObjects(@NonNull GLMapVectorObjectList objects, @NonNull GLMapVectorCascadeStyle style, @Nullable Runnable onReadyToDraw) Sets vector objects to draw- Parameters:
objects
- objects to drawstyle
- style of objectonReadyToDraw
- optional runnable that called when object is ready to draw
-