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() |
double |
getLon() |
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) |
void |
setLon(double lon) |
java.lang.String |
toString() |
getBackColor, getColor, getDefaultFont, getFont, getLayer, getName, getStroke, getStyle, getStyleAssigned, isVisible, paintText, setBackColor, setColor, setFont, setLayer, setName, setStroke, setStyle, setVisible
private 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 MapMarker
public double getLat()
getLat
in interface ICoordinate
getLat
in interface MapMarker
public double getLon()
getLon
in interface ICoordinate
getLon
in interface MapMarker
public double getRadius()
public MapMarker.STYLE getMarkerStyle()
getMarkerStyle
in interface MapMarker
public void paint(java.awt.Graphics g, java.awt.Point position, int radius)
MapMarker
position
specifies the
coordinates within g
public static Style getDefaultStyle()
public java.lang.String toString()
toString
in class java.lang.Object
public void setLat(double lat)
setLat
in interface ICoordinate
public void setLon(double lon)
setLon
in interface ICoordinate