com.sygic.sdk.map.object.MapCircle Class Reference
Inheritance diagram for com.sygic.sdk.map.object.MapCircle:
Collaboration diagram for com.sygic.sdk.map.object.MapCircle:

Public Member Functions

 MapCircle (final @NonNull GeoCoordinates center, final double radius)
 
 MapCircle (final @NonNull GeoCoordinates center, final double radius, final int lineWidth, final int lineColor, final int fillColor)
 
GeoCoordinates getCenter ()
 
void setCenter (@NonNull final GeoCoordinates center)
 
double getRadius ()
 
void setRadius (final double radius)
 
int getLineWidth ()
 
void setLineWidth (final int lineWidth)
 
int getLineColor ()
 
void setLineColor (final int lineColor)
 
int getFillColor ()
 
void setFillColor (final int fillColor)
 
int describeContents ()
 
void writeToParcel (final Parcel dest, final int flags)
 
boolean equals (Object o)
 
int hashCode ()
 
- Public Member Functions inherited from com.sygic.sdk.map.object.MapObject
int getMapObjectType ()
 
boolean equals (Object o)
 
int hashCode ()
 
int describeContents ()
 
void writeToParcel (final Parcel dest, final int flags)
 
- Public Member Functions inherited from com.sygic.sdk.map.object.ViewObject
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 ()
 

Static Public Attributes

static final Creator< MapCircleCREATOR
 

Protected Member Functions

 MapCircle (final Parcel in)
 
- Protected Member Functions inherited from com.sygic.sdk.map.object.MapObject
 MapObject (@NonNull final GeoCoordinates position, final @MapObjectType int type, final int id, final int zIndex)
 
 MapObject (final Parcel in)
 
- Protected Member Functions inherited from com.sygic.sdk.map.object.ViewObject
 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
 
- Static Protected Attributes inherited from com.sygic.sdk.map.object.MapObject
static final int DEFAULT_OBJECT_COLOR = Color.argb(255, 200, 10, 21)
 

Detailed Description

Represents the class implementation for circle object of MapObject

Constructor & Destructor Documentation

com.sygic.sdk.map.object.MapCircle.MapCircle ( final @NonNull GeoCoordinates  center,
final double  radius 
)

Constructs a circle with given center and radius in meters.

com.sygic.sdk.map.object.MapCircle.MapCircle ( final @NonNull GeoCoordinates  center,
final double  radius,
final int  lineWidth,
final int  lineColor,
final int  fillColor 
)

Creates a circle with specified colors. See also MapCircle#MapCircle(GeoCoordinates, double)

com.sygic.sdk.map.object.MapCircle.MapCircle ( final Parcel  in)
protected

Member Function Documentation

int com.sygic.sdk.map.object.MapCircle.describeContents ( )

For documentation, see android.os.Parcelable.describeContents()

boolean com.sygic.sdk.map.object.MapCircle.equals ( Object  o)
GeoCoordinates com.sygic.sdk.map.object.MapCircle.getCenter ( )

Returns the GeoCoordinate representing the current center of the MapCircle .

int com.sygic.sdk.map.object.MapCircle.getFillColor ( )

Returns the current fill color for this MapCircle.

int com.sygic.sdk.map.object.MapCircle.getLineColor ( )

Returns the current border line color for this MapCircle.

int com.sygic.sdk.map.object.MapCircle.getLineWidth ( )

Returns the current border line width for this MapCircle, in pixels.

double com.sygic.sdk.map.object.MapCircle.getRadius ( )

Returns the current radius of the MapCircle , in meters.

int com.sygic.sdk.map.object.MapCircle.hashCode ( )
void com.sygic.sdk.map.object.MapCircle.setCenter ( @NonNull final GeoCoordinates  center)

Sets the center for this MapCircle to a specified GeoCoordinate.

Parameters
centerDesired GeoCoordinate for this MapCircle center.
void com.sygic.sdk.map.object.MapCircle.setFillColor ( final int  fillColor)

Sets a fill color for this MapCircle.

Parameters
fillColorFill color in ARGB color value.
void com.sygic.sdk.map.object.MapCircle.setLineColor ( final int  lineColor)

Sets a line color.

Parameters
lineColorLine color in ARGB color value.
void com.sygic.sdk.map.object.MapCircle.setLineWidth ( final int  lineWidth)

Sets a border line width in pixels.

Parameters
lineWidthLine width in pixels.
void com.sygic.sdk.map.object.MapCircle.setRadius ( final double  radius)

Sets the circle radius in meters.

Parameters
radiusRadius in meters.
void com.sygic.sdk.map.object.MapCircle.writeToParcel ( final Parcel  dest,
final int  flags 
)

For documentation, see android.os.Parcelable.writeToParcel()

Member Data Documentation

final Creator<MapCircle> com.sygic.sdk.map.object.MapCircle.CREATOR
static
Initial value:
= new Creator<MapCircle>() {
@Override
public MapCircle createFromParcel(final Parcel source) {
return new MapCircle(source);
}
@Override
public MapCircle[] newArray(final int size) {
return new MapCircle[size];
}
}

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