public class Popup extends Billboard
swigCMemOwn
Constructor and Description |
---|
Popup(Billboard baseBillboard,
PopupStyle style)
Constructs an abstract Popup object with the specified style and attaches it to a billboard element.
|
Popup(Geometry geometry,
PopupStyle style)
Constructs an abstract Popup object from a geometry object and a style.
|
Popup(long cPtr,
boolean cMemoryOwn) |
Popup(MapPos pos,
PopupStyle style)
Constructs an abstract Popup object from a map position and a style.
|
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() |
float |
getAnchorPointX()
Returns the horizontal anchor point of this popup.
|
float |
getAnchorPointY()
Returns the vertical anchor point of this popup.
|
static long |
getCPtr(Popup obj) |
PopupStyle |
getStyle()
Returns the style of this Popup.
|
void |
setAnchorPoint(float anchorPointX,
float anchorPointY)
Sets the anchor point for the popup.
|
void |
setStyle(PopupStyle style)
Sets the style for this Popup.
|
static Popup |
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() |
getBaseBillboard, getBounds, getCPtr, getGeometry, getRootGeometry, getRotation, setBaseBillboard, setGeometry, setPos, setRotation
equals, getCPtr, getId, getMetaData, getMetaDataElement, hashCode, isVisible, notifyElementChanged, setId, setMetaData, setMetaDataElement, setVisible
public Popup(long cPtr, boolean cMemoryOwn)
public Popup(Billboard baseBillboard, PopupStyle style)
baseBillboard
- The billboard this popup will be attached to.style
- The style that defines what this popup looks like.public Popup(Geometry geometry, PopupStyle style)
geometry
- The geometry object that defines the location of this popup.style
- The style that defines what this popup looks like.public Popup(MapPos pos, PopupStyle style)
pos
- The map position that defines the location of this popup.style
- The style that defines what this popup looks like.public static long getCPtr(Popup obj)
protected void swigDirectorDisconnect()
public void swigReleaseOwnership()
public void swigTakeOwnership()
public static Popup swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
public Bitmap drawBitmap(ScreenPos anchorScreenPos, float screenWidth, float screenHeight, float dpToPX)
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 float getAnchorPointX()
public float getAnchorPointY()
public void setAnchorPoint(float anchorPointX, float anchorPointY)
anchorPointX
- The new horizontal anchor point for the popup. -1 means the left side,anchorPointY
- The vertical anchor point for the popup. -1 means the bottom,public PopupStyle getStyle()
public void setStyle(PopupStyle style)
public java.lang.String swigGetClassName()
swigGetClassName
in class Billboard
public java.lang.Object swigGetDirectorObject()
swigGetDirectorObject
in class Billboard