com.sygic.sdk.map.object.ViewObject Class Referenceabstract
Inheritance diagram for com.sygic.sdk.map.object.ViewObject:
Collaboration diagram for com.sygic.sdk.map.object.ViewObject:

Classes

interface  ObjectType
 

Public Member Functions

int getId ()
 
int getZIndex ()
 
void setZIndex (int ZIndex)
 
GeoCoordinates getPosition ()
 
int getObjectType ()
 
void setId (final int id)
 
boolean equals (Object o)
 
int hashCode ()
 
int describeContents ()
 
void writeToParcel (final Parcel dest, final int flags)
 
- Public Member Functions inherited from com.sygic.sdk.BaseNativeParcelable
boolean isValidParcelable ()
 

Protected Member Functions

 ViewObject (@NonNull final GeoCoordinates position, final @ObjectType int type)
 
 ViewObject (@NonNull final GeoCoordinates position, final @ObjectType int type, final int id, final int zIndex)
 
 ViewObject (final Parcel in)
 

Additional Inherited Members

- Protected Attributes inherited from com.sygic.sdk.BaseNativeParcelable
boolean mIsValidParcelable = true
 

Detailed Description

Represent the base class implementation for all objects that are selectable from a com.sygic.sdk.map.MapView

Constructor & Destructor Documentation

com.sygic.sdk.map.object.ViewObject.ViewObject ( @NonNull final GeoCoordinates  position,
final @ObjectType int  type 
)
protected
com.sygic.sdk.map.object.ViewObject.ViewObject ( @NonNull final GeoCoordinates  position,
final @ObjectType int  type,
final int  id,
final int  zIndex 
)
protected
com.sygic.sdk.map.object.ViewObject.ViewObject ( final Parcel  in)
protected

Member Function Documentation

int com.sygic.sdk.map.object.ViewObject.describeContents ( )
boolean com.sygic.sdk.map.object.ViewObject.equals ( Object  o)
int com.sygic.sdk.map.object.ViewObject.getId ( )
int com.sygic.sdk.map.object.ViewObject.getObjectType ( )

Returns the type of view object.

Returns
ObjectType type of view object
GeoCoordinates com.sygic.sdk.map.object.ViewObject.getPosition ( )

Returns the position of selected view object. The meaning of the location for a particular object depends on that object's type. Objects that don't have a location will return position with invalid value. The meaning of the location for certain view objects is as follows:

MapView objects: com.sygic.sdk.map.object.MapObject.MapObjectType#Point - has location. com.sygic.sdk.map.object.MapObject.MapObjectType#SafetySpot - has location com.sygic.sdk.map.object.MapObject.MapObjectType#Circle - the center of the circle com.sygic.sdk.map.object.MapObject.MapObjectType#Container - no location com.sygic.sdk.map.object.MapObject.MapObjectType#Marker - has location com.sygic.sdk.map.object.MapObject.MapObjectType#LabeledMarker - has location com.sygic.sdk.map.object.MapObject.MapObjectType#Polygon - the first vertex com.sygic.sdk.map.object.MapObject.MapObjectType#Polyline - the first vertex com.sygic.sdk.map.object.MapObject.MapObjectType#Route - the first waypoint of the route

Returns
The position of selected view object.
int com.sygic.sdk.map.object.ViewObject.getZIndex ( )
int com.sygic.sdk.map.object.ViewObject.hashCode ( )
void com.sygic.sdk.map.object.ViewObject.setId ( final int  id)

For internal use only. Do not use outside of sdk.

void com.sygic.sdk.map.object.ViewObject.setZIndex ( int  ZIndex)
void com.sygic.sdk.map.object.ViewObject.writeToParcel ( final Parcel  dest,
final int  flags 
)

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