public class BalloonPopup extends Popup
swigCMemOwn
Constructor and Description |
---|
BalloonPopup(Billboard baseBillboard,
BalloonPopupStyle style,
java.lang.String title,
java.lang.String desc)
Constructs a BalloonPopup object with the specified style and attaches it to a billboard element.
If an empty string is passed for the title, it will not be drawn. |
BalloonPopup(Geometry geometry,
BalloonPopupStyle style,
java.lang.String title,
java.lang.String desc)
Constructs a BalloonPopup object from a geometry object and a style.
If an empty string is passed for the title, it will not be drawn. |
BalloonPopup(long cPtr,
boolean cMemoryOwn) |
BalloonPopup(MapPos pos,
BalloonPopupStyle style,
java.lang.String title,
java.lang.String desc)
Constructs a BalloonPopup object from a map position and a style.
If an empty string is passed for the title, it will not be drawn. |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
Bitmap |
drawBitmap(ScreenPos anchorScreenPos,
float screenWidth,
float screenHeight,
float dpToPX)
Draws a custom bitmap for this Popup that will be used for drawing the Popup on the map.
The method is called each time the Popup gets reloaded internally. |
protected void |
finalize() |
static long |
getCPtr(BalloonPopup obj) |
java.lang.String |
getDescription()
Returns the description of this balloon popup.
|
BalloonPopupStyle |
getStyle()
Returns the style of this balloon popup.
|
java.lang.String |
getTitle()
Returns the title of this balloon popup.
|
void |
setDescription(java.lang.String desc)
Sets the description this balloon popup will display.
|
void |
setStyle(BalloonPopupStyle style)
Sets the style for this balloon popup.
|
void |
setTitle(java.lang.String title)
Sets the title this balloon popup will display.
|
static BalloonPopup |
swigCreatePolymorphicInstance(long cPtr,
boolean cMemoryOwn)
Creates a polymorphic instance of the given native object.
|
protected void |
swigDirectorDisconnect() |
java.lang.String |
swigGetClassName()
Returns the actual class name of this object.
|
java.lang.Object |
swigGetDirectorObject()
Returns the connected director object.
|
void |
swigReleaseOwnership() |
void |
swigTakeOwnership() |
getAnchorPointX, getAnchorPointY, getCPtr, setAnchorPoint, setStyle
getBaseBillboard, getBounds, getCPtr, getGeometry, getRootGeometry, getRotation, setBaseBillboard, setGeometry, setPos, setRotation
equals, getCPtr, getId, getMetaData, getMetaDataElement, hashCode, isVisible, notifyElementChanged, setId, setMetaData, setMetaDataElement, setVisible
public BalloonPopup(long cPtr, boolean cMemoryOwn)
public BalloonPopup(Billboard baseBillboard, BalloonPopupStyle style, java.lang.String title, java.lang.String desc)
baseBillboard
- The billboard this balloon popup will be attached to.style
- The style that defines what this balloon popup looks like.title
- The text this balloon popup will display.desc
- The description this balloon popup will display.public BalloonPopup(Geometry geometry, BalloonPopupStyle style, java.lang.String title, java.lang.String desc)
geometry
- The geometry object that defines the location of this balloon popup.style
- The style that defines what this balloon popup looks like.title
- The text this balloon popup will display.desc
- The description this balloon popup will display.public BalloonPopup(MapPos pos, BalloonPopupStyle style, java.lang.String title, java.lang.String desc)
pos
- The map position that defines the location of this balloon popup.style
- The style that defines what this balloon popup looks like.title
- The text this balloon popup will display.desc
- The description this balloon popup will display.public static long getCPtr(BalloonPopup obj)
protected void swigDirectorDisconnect()
swigDirectorDisconnect
in class Popup
public void swigReleaseOwnership()
swigReleaseOwnership
in class Popup
public void swigTakeOwnership()
swigTakeOwnership
in class Popup
public static BalloonPopup swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
public Bitmap drawBitmap(ScreenPos anchorScreenPos, float screenWidth, float screenHeight, float dpToPX)
Popup
drawBitmap
in class Popup
anchorScreenPos
- The screen position of the anchor point of this popup in pixels.screenWidth
- The current screen width in pixels.screenHeight
- The current screen height in pixels.dpToPX
- The value used for converting display independent pixels (dp) to pixels (px).public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- The new title this balloon popup will display.public java.lang.String getDescription()
public void setDescription(java.lang.String desc)
desc
- The new description this balloon popup will display.public BalloonPopupStyle getStyle()
public void setStyle(BalloonPopupStyle style)
public java.lang.String swigGetClassName()
swigGetClassName
in class Popup
public java.lang.Object swigGetDirectorObject()
swigGetDirectorObject
in class Popup