Package globus.glmap
Class GLMapBalloon
- java.lang.Object
-
- globus.glmap.GLNativeObject
-
- globus.glmap.GLMapDrawObject
-
- globus.glmap.GLMapDrawable
-
- globus.glmap.GLMapBalloon
-
public class GLMapBalloon extends GLMapDrawable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class globus.glmap.GLMapDrawable
GLMapDrawable.TransformMode
-
-
Constructor Summary
Constructors Constructor Description GLMapBalloon(int drawOrder)Creates new empty image with given draw order
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetBackgroundBitmap(android.graphics.Bitmap bitmap, android.graphics.Rect insets)Sets backgroud image of balloonvoidsetPlaceToCenter(boolean placeToCenter)If set to `true` position nearest to center of screen will be selectedvoidsetPossiblePositions(double[] positions)Sets positions where balloon can be displayedvoidsetReferenceAngle(float referenceAngle)Sets reference angle to detect direction of balloonvoidsetText(java.lang.String text, GLMapVectorStyle style, android.graphics.Rect insets, java.lang.Runnable onReadyToDraw)Sets new text of balloon-
Methods 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
-
-
-
-
Method Detail
-
setBackgroundBitmap
public void setBackgroundBitmap(@NonNull android.graphics.Bitmap bitmap, @Nullable android.graphics.Rect insets)Sets backgroud image of balloon- Parameters:
bitmap- image to setinsets- insets of background image
-
setText
public void setText(@NonNull java.lang.String text, @NonNull GLMapVectorStyle style, @Nullable android.graphics.Rect insets, @Nullable java.lang.Runnable onReadyToDraw)Sets new text of balloon- Parameters:
text- new text to drawstyle- style of the textinsets- insets of textonReadyToDraw- optional runnable that called when text ready to draw
-
setReferenceAngle
public void setReferenceAngle(float referenceAngle)
Sets reference angle to detect direction of balloon- Parameters:
referenceAngle- reference angle
-
setPossiblePositions
public void setPossiblePositions(double[] positions)
Sets positions where balloon can be displayed- Parameters:
positions- positions to set [x1, y1, dx1, dy1, x2, y2, dx1, dy2, ...]
-
setPlaceToCenter
public void setPlaceToCenter(boolean placeToCenter)
If set to `true` position nearest to center of screen will be selected- Parameters:
placeToCenter- value to set
-
-