public class VgMyBubbleView extends java.lang.Object implements VgMyAnchoredDisplay, VgMyLayerAndCameraListener
Modifier and Type | Class and Description |
---|---|
protected class |
VgMyBubbleView.ViewRepositionPostDrawCallback
Pins a UIView to a given mapPosition.
|
Modifier and Type | Field and Description |
---|---|
protected Activity |
mActivity |
protected VgIApplication |
mApplication |
protected LinearLayout |
mBubbleView |
protected java.lang.String |
mCurrentAnchoredLayer |
protected VgIMapModule |
mMapModule |
protected java.lang.String |
mPlaceId |
protected VgIPlaceListenerRefPtr |
mPlaceListener |
protected VgPosition |
mPosition |
protected VgIEnginePostDrawCallbackRefPtr |
mPostDrawCallback |
protected VgMyRouteCreator |
mRouteCreator |
protected VgMySurfaceView |
mSurfaceView |
protected ViewGroup |
mSurfaceViewGroup |
Constructor and Description |
---|
VgMyBubbleView(Activity pActivity,
VgMyRouteCreator pRouteCreator,
VgMySurfaceView pSurfaceView,
ViewGroup pViewGroup) |
Modifier and Type | Method and Description |
---|---|
void |
hide()
Hides this Object.
|
boolean |
isVisible() |
void |
layerChangedTo(VgMyLayerAndCameraHandler pSender,
java.lang.String pFloorFrom,
java.lang.String pFloorTo)
Notification that the layer focus did change.
|
void |
layerWillChangeFrom(VgMyLayerAndCameraHandler pSender,
java.lang.String pFloorFrom,
java.lang.String pFloorTo)
Notification that the layer focus is about to change
|
void |
release()
This method should be called when the activity dies to notify that we
should release/unregister all VisioDevKit objects, and null out as much
references on other objects as possible.
|
void |
setAnchorPosition(java.lang.String pPlaceId,
VgPosition pPosition)
Sets the anchoring to a specific place.
|
void |
show()
Displays this Object.
|
protected void |
updateBubbleView(java.lang.String pPlaceID)
Create the bubble view (if not already created) and
update the view's display with new information related to
the arguments.
|
void |
viewDidChange(VgMyLayerAndCameraHandler pSender,
boolean pDoesChangeFromGlobalToDetailed)
Notification that the view has changed its 'mode' (global or detailed)
|
void |
viewWillChange(VgMyLayerAndCameraHandler pSender,
boolean pDoesChangeFromGlobalToDetailed)
Notification that the view will change its 'mode' (global or detailed)
|
protected LinearLayout mBubbleView
protected Activity mActivity
protected VgMyRouteCreator mRouteCreator
protected VgIApplication mApplication
protected VgIMapModule mMapModule
protected VgIEnginePostDrawCallbackRefPtr mPostDrawCallback
protected VgMySurfaceView mSurfaceView
protected VgPosition mPosition
protected java.lang.String mCurrentAnchoredLayer
protected java.lang.String mPlaceId
protected ViewGroup mSurfaceViewGroup
protected VgIPlaceListenerRefPtr mPlaceListener
public VgMyBubbleView(Activity pActivity, VgMyRouteCreator pRouteCreator, VgMySurfaceView pSurfaceView, ViewGroup pViewGroup)
pActivity
- pRouteCreator
- pSurfaceView
- pViewGroup
- - For now must be a FrameLayout.protected void updateBubbleView(java.lang.String pPlaceID)
pPlaceID
- The id of the place. This can be used to
eventually retrieve other related information from the map
module related to this place.public void setAnchorPosition(java.lang.String pPlaceId, VgPosition pPosition)
VgMyAnchoredDisplay
setAnchorPosition
in interface VgMyAnchoredDisplay
pPlaceID
- public void show()
show
in interface VgMyDisplayable
public void hide()
hide
in interface VgMyDisplayable
public boolean isVisible()
isVisible
in interface VgMyDisplayable
public void layerWillChangeFrom(VgMyLayerAndCameraHandler pSender, java.lang.String pFloorFrom, java.lang.String pFloorTo)
VgMyLayerAndCameraListener
layerWillChangeFrom
in interface VgMyLayerAndCameraListener
pFloorFrom
- The layer which currently has focuspFloorTo
- The layer which will soon have the focuspublic void layerChangedTo(VgMyLayerAndCameraHandler pSender, java.lang.String pFloorFrom, java.lang.String pFloorTo)
VgMyLayerAndCameraListener
layerChangedTo
in interface VgMyLayerAndCameraListener
pFloorFrom
- The layer which previously had the focus.pFloorTo
- The layer which currently has the focus.public void viewWillChange(VgMyLayerAndCameraHandler pSender, boolean pDoesChangeFromGlobalToDetailed)
VgMyLayerAndCameraListener
viewWillChange
in interface VgMyLayerAndCameraListener
pDoesChangeFromGlobalToDetailed
- True if the view switch to global view,
False if it switches to the detailed view.public void viewDidChange(VgMyLayerAndCameraHandler pSender, boolean pDoesChangeFromGlobalToDetailed)
VgMyLayerAndCameraListener
viewDidChange
in interface VgMyLayerAndCameraListener
pDoesChangeFromGlobalToDetailed
- True if the view switch to global view,
False if it switches to the detailed view.public void release()
release
in interface VgMyAnchoredDisplay