public class MapMarkerCircle extends MapObjectImpl implements MapMarker
MapMarker interface. Each map marker
is painted as a circle with a black border line and filled with a specified
color.MapMarker.STYLE| Modifier and Type | Field and Description |
|---|---|
private Coordinate |
coord |
private MapMarker.STYLE |
markerStyle |
private double |
radius |
| Constructor and Description |
|---|
MapMarkerCircle(Coordinate coord,
double radius)
Constructs a new
MapMarkerCircle. |
MapMarkerCircle(double lat,
double lon,
double radius)
Constructs a new
MapMarkerCircle. |
MapMarkerCircle(Layer layer,
Coordinate coord,
double radius)
Constructs a new
MapMarkerCircle. |
MapMarkerCircle(Layer layer,
double lat,
double lon,
double radius)
Constructs a new
MapMarkerCircle. |
MapMarkerCircle(Layer layer,
java.lang.String name,
Coordinate coord,
double radius)
Constructs a new
MapMarkerCircle. |
MapMarkerCircle(Layer layer,
java.lang.String name,
Coordinate coord,
double radius,
MapMarker.STYLE markerStyle,
Style style)
Constructs a new
MapMarkerCircle. |
MapMarkerCircle(java.lang.String name,
Coordinate coord,
double radius)
Constructs a new
MapMarkerCircle. |
| Modifier and Type | Method and Description |
|---|---|
Coordinate |
getCoordinate() |
static Style |
getDefaultStyle() |
double |
getLat()
Returns latitude.
|
double |
getLon()
Returns longitude.
|
MapMarker.STYLE |
getMarkerStyle() |
double |
getRadius() |
void |
paint(java.awt.Graphics g,
java.awt.Point position,
int radius)
Paints the map marker on the map.
|
void |
setLat(double lat)
Sets latitude.
|
void |
setLon(double lon)
Sets longitude.
|
java.lang.String |
toString() |
getBackColor, getColor, getDefaultFont, getFont, getLayer, getName, getStroke, getStyle, getStyleAssigned, isVisible, paintText, setBackColor, setColor, setFont, setLayer, setName, setStroke, setStyle, setVisibleprivate Coordinate coord
private double radius
private MapMarker.STYLE markerStyle
public MapMarkerCircle(Coordinate coord, double radius)
MapMarkerCircle.coord - Coordinates of the map markerradius - Radius of the map marker positionpublic MapMarkerCircle(java.lang.String name, Coordinate coord, double radius)
MapMarkerCircle.name - Name of the map markercoord - Coordinates of the map markerradius - Radius of the map marker positionpublic MapMarkerCircle(Layer layer, Coordinate coord, double radius)
MapMarkerCircle.layer - Layer of the map markercoord - Coordinates of the map markerradius - Radius of the map marker positionpublic MapMarkerCircle(double lat, double lon, double radius)
MapMarkerCircle.lat - Latitude of the map markerlon - Longitude of the map markerradius - Radius of the map marker positionpublic MapMarkerCircle(Layer layer, double lat, double lon, double radius)
MapMarkerCircle.layer - Layer of the map markerlat - Latitude of the map markerlon - Longitude of the map markerradius - Radius of the map marker positionpublic MapMarkerCircle(Layer layer, java.lang.String name, Coordinate coord, double radius)
MapMarkerCircle.layer - Layer of the map markername - Name of the map markercoord - Coordinates of the map markerradius - Radius of the map marker positionpublic MapMarkerCircle(Layer layer, java.lang.String name, Coordinate coord, double radius, MapMarker.STYLE markerStyle, Style style)
MapMarkerCircle.layer - Layer of the map markername - Name of the map markercoord - Coordinates of the map markerradius - Radius of the map marker positionmarkerStyle - Marker style (fixed or variable)style - Graphical stylepublic Coordinate getCoordinate()
getCoordinate in interface MapMarkerpublic double getLat()
ICoordinategetLat in interface ICoordinategetLat in interface MapMarkerpublic double getLon()
ICoordinategetLon in interface ICoordinategetLon in interface MapMarkerpublic double getRadius()
public MapMarker.STYLE getMarkerStyle()
getMarkerStyle in interface MapMarkerpublic void paint(java.awt.Graphics g, java.awt.Point position, int radius)
MapMarkerposition specifies the
coordinates within gpublic static Style getDefaultStyle()
public java.lang.String toString()
toString in class java.lang.Objectpublic void setLat(double lat)
ICoordinatesetLat in interface ICoordinatelat - latitude in degreespublic void setLon(double lon)
ICoordinatesetLon in interface ICoordinatelon - longitude in degrees