Skip to content

Class CircleMapObject

Il Kadyrov edited this page Oct 16, 2020 · 5 revisions

CircleMapObject class is used for showing circle objects on the map.

Referenced from: LocationView.

Public methods

Function setPosition

public void setPosition(Point point)

Function sets the position of circle object on the map.

Parameters
  • point — x and y metric coordinates.

Function getPosition

public Point getPosition()

Function returns the position of circle object on the map.

Return value

X and y metric coordinates of circle object.

Function setRadius

public void setRadius(float radius)

Function sets the radius of circle object.

Parameters
  • radius — radius of the circle object on map, should be evaluated considering the fact that location view's width is from -1 to 1.

Function getRadius

public float getRadius()

Function returns the radius of circle object.

Return value

Radius of the circle map object.

Function setData

public void setData(byte[] data)

Function sets the data for circle map object which could be used for distinguishing different objects on map.

Parameters
  • data — byte array of data.

Function getData

public byte[] getData()

Function returns the data attached to the circle object.

Return value

Byte array of data.

Function setEnabled

public void setEnabled(boolean visibility)

Function is used for setting the visibility of circle object on the map.

Function setColor

public void setColor(float red, float green, float blue, float alpha)

Function is used for setting the color of map object.

Parameters
  • red — red color in range 0..1.
  • green — green color in range 0..1.
  • blue — blue color in range 0..1.
  • alpha — alpha color in range 0..1.

Clone this wiki locally