Loading...
Searching...
No Matches
com.navigine.idl.java.LocationWindow Class Referenceabstract

Class is used to interact with the view. More...

Public Member Functions

abstract void setSublocationId (int id)
 Method is used to switch location view between sublocations (floors).
 
abstract Point screenPositionToMeters (android.graphics.PointF point)
 Method is used to convert screen (pixels) coordinates to metrics coordinates.
 
abstract android.graphics.PointF metersToScreenPosition (Point point, boolean clipToViewport)
 Method is used to convert metrics coordinates to screen (pixels) coordinates.
 
abstract CircleMapObject addCircleMapObject ()
 Method is used to create and add circle map object to the location view.
 
abstract boolean removeCircleMapObject (CircleMapObject circleMapObject)
 Method is used to remove circle map object from the location view.
 
abstract IconMapObject addIconMapObject ()
 Method is used to create and add icon map object to the location view.
 
abstract boolean removeIconMapObject (IconMapObject iconMapObject)
 Method is used to remove icon map object from the location view.
 
abstract FlatIconMapObject addFlatIconMapObject ()
 Method is used to create and add flat icon map object to the location view.
 
abstract boolean removeFlatIconMapObject (FlatIconMapObject flatIconMapObject)
 Method is used to remove flat icon map object from the location view.
 
abstract PolygonMapObject addPolygonMapObject ()
 Method is used to create and add polygon map object to the location view.
 
abstract boolean removePolygonMapObject (PolygonMapObject polygonMapObject)
 Method is used to remove polygon map object from the location view.
 
abstract PolylineMapObject addPolylineMapObject ()
 Method is used to create and add polyline map object to the location view.
 
abstract boolean removePolylineMapObject (PolylineMapObject polylineMapObject)
 Method is used to remove polyline map object from the location view.
 
abstract void removeAllMapObjects ()
 Method is used to remove all object from the location view.
 
abstract void pickMapObjectAt (android.graphics.PointF point)
 Method is used to select a visible map object marked as interactive MapObject. The result will be delivered to the PickListener by onMapObjectPickComplete PickListener.
 
abstract void pickMapFeatureAt (android.graphics.PointF point)
 Method is used to select a visible map features, such as venues etc. The result will be delivered to the PickListener by onMapFeaturePickComplete PickListener.
 
abstract void addPickListener (PickListener listener)
 Method is used to add PickListener class element which will notify all picking results events.
 
abstract void removePickListener (PickListener listener)
 Method is used for removing previously added PickListener class element.
 
abstract void addInputListener (InputListener listener)
 Method is used to add InputListener class element which will notify input events.
 
abstract void removeInputListener (InputListener listener)
 Method is used for removing previously added InputListener class element.
 
abstract void addCameraListener (CameraListener listener)
 Method is used to add CameraListener class element which will notify camera movements events.
 
abstract void removeCameraListener (CameraListener listener)
 Method is used for removing previously added CameraListener class element.
 
abstract void flyTo (Camera camera, int duration, CameraCallback callback)
 Move the map camera to a new position with an easing animation.
 
abstract boolean selectMapFeature (String featureId)
 Selects a map feature with the specified featureId.
 
abstract boolean deselectMapFeature (String featureId)
 Deselects a map feature with the specified featureId.
 
abstract void deselectAllMapFeatures ()
 Resets the currently selected map features.
 
abstract void moveTo (Camera camera, int duration, AnimationType animationType, CameraCallback callback)
 Move the map camera to a new position with an animation that pans and zooms in a smooth arc.
 
abstract float getZoomFactor ()
 Parameter is used to change location view zoom. Value indicates count of pixels in 1 meter (default: approx 100m in screen width).
 
abstract void setZoomFactor (float newZoomFactor)
 Parameter is used to change location view zoom. Value indicates count of pixels in 1 meter (default: approx 100m in screen width).
 
abstract float getMinZoomFactor ()
 Minimum zoomFactor value (ZoomFactor parameter).
 
abstract void setMinZoomFactor (float newMinZoomFactor)
 Minimum zoomFactor value (ZoomFactor parameter).
 
abstract float getMaxZoomFactor ()
 Maximum zoomFactor value (ZoomFactor parameter).
 
abstract void setMaxZoomFactor (float newMaxZoomFactor)
 Maximum zoomFactor value (ZoomFactor parameter).
 
abstract boolean getStickToBorder ()
 Parameter is used to enable/disable sublocation content sticking to screen borders. If true image sticking to screen bounds, if false sticking to center of screen (Default: true).
 
abstract void setStickToBorder (boolean newStickToBorder)
 Parameter is used to enable/disable sublocation content sticking to screen borders. If true image sticking to screen bounds, if false sticking to center of screen (Default: true).
 
abstract Camera getCamera ()
 Current camera position in meters.
 
abstract void setCamera (Camera newCamera)
 Current camera position in meters.
 
abstract boolean getRotateGestureEnabled ()
 Parameter is used to enable/disable rotation gestures, such as rotation with two fingers.
 
abstract void setRotateGestureEnabled (boolean newRotateGestureEnabled)
 Parameter is used to enable/disable rotation gestures, such as rotation with two fingers.
 
abstract boolean getTiltGesturesEnabled ()
 Parameter is used to enable/disable tilt gestures, such as parallel pan with two fingers.
 
abstract void setTiltGesturesEnabled (boolean newTiltGesturesEnabled)
 Parameter is used to enable/disable tilt gestures, such as parallel pan with two fingers.
 
abstract boolean getScrollGesturesEnabled ()
 Parameter is used to enable/disable scroll gestures, such as the pan gesture.
 
abstract void setScrollGesturesEnabled (boolean newScrollGesturesEnabled)
 Parameter is used to enable/disable scroll gestures, such as the pan gesture.
 
abstract boolean getZoomGesturesEnabled ()
 Parameter is used to enable/disable zoom gestures, such as the pinch with two fingers.
 
abstract void setZoomGesturesEnabled (boolean newZoomGesturesEnabled)
 Parameter is used to enable/disable zoom gestures, such as the pinch with two fingers.
 
abstract float getPickRadius ()
 Radius to use when picking features on the map. The default radius is 0.5 dp (density-independent pixels).
 
abstract void setPickRadius (float newPickRadius)
 Radius to use when picking features on the map. The default radius is 0.5 dp (density-independent pixels).
 
abstract ArrayList< String > getSelectedMapFeatures ()
 List of currently selected map features.
 

Static Public Member Functions

static void setDebugFlag (DebugFlag flag, boolean on)
 
static boolean getDebugFlag (DebugFlag flag)
 

Detailed Description

Class is used to interact with the view.

Referenced from: LocationView,

Definition at line 19 of file LocationWindow.java.

Member Function Documentation

◆ addCameraListener()

abstract void com.navigine.idl.java.LocationWindow.addCameraListener ( CameraListener listener)
abstract

Method is used to add CameraListener class element which will notify camera movements events.

Note
Do not forget to remove listener if it is no longer needed!
Parameters
listenerСorresponding CameraListener listener class.

◆ addCircleMapObject()

abstract CircleMapObject com.navigine.idl.java.LocationWindow.addCircleMapObject ( )
abstract

Method is used to create and add circle map object to the location view.

Returns
CircleMapObject instance CircleMapObject if success, null otherwise.

◆ addFlatIconMapObject()

abstract FlatIconMapObject com.navigine.idl.java.LocationWindow.addFlatIconMapObject ( )
abstract

Method is used to create and add flat icon map object to the location view.

Returns
FlatIconMapObject instance FlatIconMapObject if success, null otherwise.

◆ addIconMapObject()

abstract IconMapObject com.navigine.idl.java.LocationWindow.addIconMapObject ( )
abstract

Method is used to create and add icon map object to the location view.

Returns
IconMapObject instance IconMapObject if success, null otherwise.

◆ addInputListener()

abstract void com.navigine.idl.java.LocationWindow.addInputListener ( InputListener listener)
abstract

Method is used to add InputListener class element which will notify input events.

Note
Do not forget to remove listener if it is no longer needed!
Parameters
listenerСorresponding InputListener listener class.

◆ addPickListener()

abstract void com.navigine.idl.java.LocationWindow.addPickListener ( PickListener listener)
abstract

Method is used to add PickListener class element which will notify all picking results events.

Note
Do not forget to remove listener if it is no longer needed!
Parameters
listenerСorresponding PickListener listener class.

◆ addPolygonMapObject()

abstract PolygonMapObject com.navigine.idl.java.LocationWindow.addPolygonMapObject ( )
abstract

Method is used to create and add polygon map object to the location view.

Returns
PolygonMapObject instance PolygonMapObject if success, null otherwise.

◆ addPolylineMapObject()

abstract PolylineMapObject com.navigine.idl.java.LocationWindow.addPolylineMapObject ( )
abstract

Method is used to create and add polyline map object to the location view.

Returns
PolylineMapObject instance PolylineMapObject if success, null otherwise.

◆ deselectAllMapFeatures()

abstract void com.navigine.idl.java.LocationWindow.deselectAllMapFeatures ( )
abstract

Resets the currently selected map features.

◆ deselectMapFeature()

abstract boolean com.navigine.idl.java.LocationWindow.deselectMapFeature ( String featureId)
abstract

Deselects a map feature with the specified featureId.

Parameters
featureIdfeatureId can be extracted from the mapFeaturePickResult container by using onMapFeaturePickComplete callback of PickListener.
Returns
true if success, false otherwise.

◆ flyTo()

abstract void com.navigine.idl.java.LocationWindow.flyTo ( Camera camera,
int duration,
CameraCallback callback )
abstract

Move the map camera to a new position with an easing animation.

Parameters
cameraThe new camera position
durationThe animation duration in milliseconds
callbackcompletion callback to execute when the animation completes

◆ getCamera()

abstract Camera com.navigine.idl.java.LocationWindow.getCamera ( )
abstract

Current camera position in meters.

Returns

◆ getDebugFlag()

static boolean com.navigine.idl.java.LocationWindow.getDebugFlag ( DebugFlag flag)
inlinestatic

Definition at line 428 of file LocationWindow.java.

◆ getMaxZoomFactor()

abstract float com.navigine.idl.java.LocationWindow.getMaxZoomFactor ( )
abstract

Maximum zoomFactor value (ZoomFactor parameter).

Returns

◆ getMinZoomFactor()

abstract float com.navigine.idl.java.LocationWindow.getMinZoomFactor ( )
abstract

Minimum zoomFactor value (ZoomFactor parameter).

Returns

◆ getPickRadius()

abstract float com.navigine.idl.java.LocationWindow.getPickRadius ( )
abstract

Radius to use when picking features on the map. The default radius is 0.5 dp (density-independent pixels).

Returns

◆ getRotateGestureEnabled()

abstract boolean com.navigine.idl.java.LocationWindow.getRotateGestureEnabled ( )
abstract

Parameter is used to enable/disable rotation gestures, such as rotation with two fingers.

Returns

◆ getScrollGesturesEnabled()

abstract boolean com.navigine.idl.java.LocationWindow.getScrollGesturesEnabled ( )
abstract

Parameter is used to enable/disable scroll gestures, such as the pan gesture.

Returns

◆ getSelectedMapFeatures()

abstract ArrayList< String > com.navigine.idl.java.LocationWindow.getSelectedMapFeatures ( )
abstract

List of currently selected map features.

Returns

◆ getStickToBorder()

abstract boolean com.navigine.idl.java.LocationWindow.getStickToBorder ( )
abstract

Parameter is used to enable/disable sublocation content sticking to screen borders. If true image sticking to screen bounds, if false sticking to center of screen (Default: true).

Returns

◆ getTiltGesturesEnabled()

abstract boolean com.navigine.idl.java.LocationWindow.getTiltGesturesEnabled ( )
abstract

Parameter is used to enable/disable tilt gestures, such as parallel pan with two fingers.

Returns

◆ getZoomFactor()

abstract float com.navigine.idl.java.LocationWindow.getZoomFactor ( )
abstract

Parameter is used to change location view zoom. Value indicates count of pixels in 1 meter (default: approx 100m in screen width).

Returns

◆ getZoomGesturesEnabled()

abstract boolean com.navigine.idl.java.LocationWindow.getZoomGesturesEnabled ( )
abstract

Parameter is used to enable/disable zoom gestures, such as the pinch with two fingers.

Returns

◆ metersToScreenPosition()

abstract android.graphics.PointF com.navigine.idl.java.LocationWindow.metersToScreenPosition ( Point point,
boolean clipToViewport )
abstract

Method is used to convert metrics coordinates to screen (pixels) coordinates.

Parameters
point(x,y) point in meters coordinates Point.
clipToViewportif true, results that would be outside the viewport are clipped to a position on the edge of the viewport in the direction of the location.
Returns
(x,y) point in screen pixels.

◆ moveTo()

abstract void com.navigine.idl.java.LocationWindow.moveTo ( Camera camera,
int duration,
AnimationType animationType,
CameraCallback callback )
abstract

Move the map camera to a new position with an animation that pans and zooms in a smooth arc.

Note
The animation duration is calculated based on the distance to the new camera position and the specified speed
Parameters
cameraThe new camera position
durationDuration of the animation in milliseconds (-1 for default duration)
animationTypeThe type of easing animation
callbackA callback to execute when the animation completes

◆ pickMapFeatureAt()

abstract void com.navigine.idl.java.LocationWindow.pickMapFeatureAt ( android.graphics.PointF point)
abstract

Method is used to select a visible map features, such as venues etc. The result will be delivered to the PickListener by onMapFeaturePickComplete PickListener.

Parameters
pointposition in the view to pick from, in pixels.

◆ pickMapObjectAt()

abstract void com.navigine.idl.java.LocationWindow.pickMapObjectAt ( android.graphics.PointF point)
abstract

Method is used to select a visible map object marked as interactive MapObject. The result will be delivered to the PickListener by onMapObjectPickComplete PickListener.

Parameters
pointposition in the view to pick from, in pixels.

◆ removeAllMapObjects()

abstract void com.navigine.idl.java.LocationWindow.removeAllMapObjects ( )
abstract

Method is used to remove all object from the location view.

◆ removeCameraListener()

abstract void com.navigine.idl.java.LocationWindow.removeCameraListener ( CameraListener listener)
abstract

Method is used for removing previously added CameraListener class element.

Parameters
listenerСorresponding CameraListener class to remove.

◆ removeCircleMapObject()

abstract boolean com.navigine.idl.java.LocationWindow.removeCircleMapObject ( CircleMapObject circleMapObject)
abstract

Method is used to remove circle map object from the location view.

Parameters
circleMapObjectcircle map object instance CircleMapObject.
Returns
true if success, false otherwise.

◆ removeFlatIconMapObject()

abstract boolean com.navigine.idl.java.LocationWindow.removeFlatIconMapObject ( FlatIconMapObject flatIconMapObject)
abstract

Method is used to remove flat icon map object from the location view.

Parameters
flatIconMapObjectflat icon map object instance FlatIconMapObject.
Returns
true if success, false otherwise.

◆ removeIconMapObject()

abstract boolean com.navigine.idl.java.LocationWindow.removeIconMapObject ( IconMapObject iconMapObject)
abstract

Method is used to remove icon map object from the location view.

Parameters
iconMapObjecticon map object instance IconMapObject.
Returns
true if success, false otherwise.

◆ removeInputListener()

abstract void com.navigine.idl.java.LocationWindow.removeInputListener ( InputListener listener)
abstract

Method is used for removing previously added InputListener class element.

Parameters
listenerСorresponding InputListener class to remove.

◆ removePickListener()

abstract void com.navigine.idl.java.LocationWindow.removePickListener ( PickListener listener)
abstract

Method is used for removing previously added PickListener class element.

Parameters
listenerСorresponding PickListener class to remove.

◆ removePolygonMapObject()

abstract boolean com.navigine.idl.java.LocationWindow.removePolygonMapObject ( PolygonMapObject polygonMapObject)
abstract

Method is used to remove polygon map object from the location view.

Parameters
polygonMapObjectpolygon map object instance PolygonMapObject.
Returns
true if success, false otherwise.

◆ removePolylineMapObject()

abstract boolean com.navigine.idl.java.LocationWindow.removePolylineMapObject ( PolylineMapObject polylineMapObject)
abstract

Method is used to remove polyline map object from the location view.

Parameters
polylineMapObjectpolyline map object instance PolylineMapObject.
Returns
true if success, false otherwise.

◆ screenPositionToMeters()

abstract Point com.navigine.idl.java.LocationWindow.screenPositionToMeters ( android.graphics.PointF point)
abstract

Method is used to convert screen (pixels) coordinates to metrics coordinates.

Parameters
point(x,y) point in screen pixels.
Returns
(x,y) point in meters coordinates Point.

◆ selectMapFeature()

abstract boolean com.navigine.idl.java.LocationWindow.selectMapFeature ( String featureId)
abstract

Selects a map feature with the specified featureId.

Parameters
featureIdfeatureId can be extracted from the mapFeaturePickResult container by using onMapFeaturePickComplete callback of PickListener.
Returns
true if success, false otherwise.

◆ setCamera()

abstract void com.navigine.idl.java.LocationWindow.setCamera ( Camera newCamera)
abstract

Current camera position in meters.

Parameters
newCamera

◆ setDebugFlag()

static void com.navigine.idl.java.LocationWindow.setDebugFlag ( DebugFlag flag,
boolean on )
inlinestatic

Definition at line 422 of file LocationWindow.java.

◆ setMaxZoomFactor()

abstract void com.navigine.idl.java.LocationWindow.setMaxZoomFactor ( float newMaxZoomFactor)
abstract

Maximum zoomFactor value (ZoomFactor parameter).

Parameters
newMaxZoomFactor

◆ setMinZoomFactor()

abstract void com.navigine.idl.java.LocationWindow.setMinZoomFactor ( float newMinZoomFactor)
abstract

Minimum zoomFactor value (ZoomFactor parameter).

Parameters
newMinZoomFactor

◆ setPickRadius()

abstract void com.navigine.idl.java.LocationWindow.setPickRadius ( float newPickRadius)
abstract

Radius to use when picking features on the map. The default radius is 0.5 dp (density-independent pixels).

Parameters
newPickRadius

◆ setRotateGestureEnabled()

abstract void com.navigine.idl.java.LocationWindow.setRotateGestureEnabled ( boolean newRotateGestureEnabled)
abstract

Parameter is used to enable/disable rotation gestures, such as rotation with two fingers.

Parameters
newRotateGestureEnabled

◆ setScrollGesturesEnabled()

abstract void com.navigine.idl.java.LocationWindow.setScrollGesturesEnabled ( boolean newScrollGesturesEnabled)
abstract

Parameter is used to enable/disable scroll gestures, such as the pan gesture.

Parameters
newScrollGesturesEnabled

◆ setStickToBorder()

abstract void com.navigine.idl.java.LocationWindow.setStickToBorder ( boolean newStickToBorder)
abstract

Parameter is used to enable/disable sublocation content sticking to screen borders. If true image sticking to screen bounds, if false sticking to center of screen (Default: true).

Parameters
newStickToBorder

◆ setSublocationId()

abstract void com.navigine.idl.java.LocationWindow.setSublocationId ( int id)
abstract

Method is used to switch location view between sublocations (floors).

Parameters
idsublocation unique identifier Sublocation.

◆ setTiltGesturesEnabled()

abstract void com.navigine.idl.java.LocationWindow.setTiltGesturesEnabled ( boolean newTiltGesturesEnabled)
abstract

Parameter is used to enable/disable tilt gestures, such as parallel pan with two fingers.

Parameters
newTiltGesturesEnabled

◆ setZoomFactor()

abstract void com.navigine.idl.java.LocationWindow.setZoomFactor ( float newZoomFactor)
abstract

Parameter is used to change location view zoom. Value indicates count of pixels in 1 meter (default: approx 100m in screen width).

Parameters
newZoomFactor

◆ setZoomGesturesEnabled()

abstract void com.navigine.idl.java.LocationWindow.setZoomGesturesEnabled ( boolean newZoomGesturesEnabled)
abstract

Parameter is used to enable/disable zoom gestures, such as the pinch with two fingers.

Parameters
newZoomGesturesEnabled

The documentation for this class was generated from the following file: