public class CustomPopup extends Popup
swigCMemOwn
构造器和说明 |
---|
CustomPopup(Billboard baseBillboard,
PopupStyle style,
CustomPopupHandler popupHandler)
Constructs a CustomPopup object with the specified style and attaches it to a billboard element.
|
CustomPopup(Geometry geometry,
PopupStyle style,
CustomPopupHandler popupHandler)
Constructs a CustomPopup object from a geometry object and a style.
|
CustomPopup(long cPtr,
boolean cMemoryOwn) |
CustomPopup(MapPos pos,
PopupStyle style,
CustomPopupHandler popupHandler)
Constructs a CustomPopup object from a map position and a style.
|
限定符和类型 | 方法和说明 |
---|---|
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.
|
protected void |
finalize() |
static long |
getCPtr(CustomPopup obj) |
CustomPopupHandler |
getPopupHandler()
Returns the handler used for the popup.
|
boolean |
processClick(ClickType clickType,
MapPos clickPos,
ScreenPos elementClickPos)
Handles the click event for this Popup.
|
static CustomPopup |
swigCreatePolymorphicInstance(long cPtr,
boolean cMemoryOwn)
Creates a polymorphic instance of the given native object.
|
java.lang.String |
swigGetClassName()
Returns the actual class name of this object.
|
java.lang.Object |
swigGetDirectorObject()
Returns the connected director object.
|
getAnchorPointX, getAnchorPointY, getCPtr, getStyle, setAnchorPoint, setAnchorPointX, setAnchorPointY, setStyle
getBaseBillboard, getBounds, getCPtr, getGeometry, getRootGeometry, getRotation, setBaseBillboard, setGeometry, setPos, setRotation
attachTerrain, attachTerrain, autoNotifyElementChanged, equals, getCPtr, getId, getInternalElevation, getMetaData, getMetaDataElement, hashCode, hasInternalElevation, isVisible, notifyElementChanged, setId, setMetaData, setMetaDataElement, setVisible
public CustomPopup(long cPtr, boolean cMemoryOwn)
public CustomPopup(Billboard baseBillboard, PopupStyle style, CustomPopupHandler popupHandler)
baseBillboard
- The billboard this popup will be attached to.style
- The style that defines what this popup looks like.popupHandler
- The handler to use for the popup.public CustomPopup(Geometry geometry, PopupStyle style, CustomPopupHandler popupHandler)
geometry
- The geometry object that defines the location of this popup.style
- The style that defines what this popup looks like.popupHandler
- The handler to use for the popup.public CustomPopup(MapPos pos, PopupStyle style, CustomPopupHandler popupHandler)
pos
- The map position that defines the location of this popup.style
- The style that defines what this popup looks like.popupHandler
- The handler to use for the popup.public static long getCPtr(CustomPopup obj)
public static CustomPopup swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
cPtr
- The native pointer of the instance.cMemoryOwn
- The ownership flag.public CustomPopupHandler getPopupHandler()
public boolean processClick(ClickType clickType, MapPos clickPos, ScreenPos elementClickPos)
clickType
- The type of the click.clickPos
- The position of the click.elementClickPos
- The 2D position of the click on the popup.public Bitmap drawBitmap(ScreenPos anchorScreenPos, float screenWidth, float screenHeight, float dpToPX)
Popup
drawBitmap
在类中 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 swigGetClassName()
swigGetClassName
在类中 Popup
public java.lang.Object swigGetDirectorObject()
swigGetDirectorObject
在类中 Popup