public class MapPolygonImpl extends MapObjectImpl implements MapPolygon
| Modifier and Type | Field and Description |
|---|---|
private List<? extends ICoordinate> |
points |
| Constructor and Description |
|---|
MapPolygonImpl(ICoordinate... points) |
MapPolygonImpl(Layer layer,
List<? extends ICoordinate> points) |
MapPolygonImpl(Layer layer,
String name,
ICoordinate... points) |
MapPolygonImpl(Layer layer,
String name,
List<? extends ICoordinate> points) |
MapPolygonImpl(Layer layer,
String name,
List<? extends ICoordinate> points,
Style style) |
MapPolygonImpl(List<? extends ICoordinate> points) |
MapPolygonImpl(String name,
ICoordinate... points) |
MapPolygonImpl(String name,
List<? extends ICoordinate> points) |
| Modifier and Type | Method and Description |
|---|---|
static Style |
getDefaultStyle() |
List<? extends ICoordinate> |
getPoints() |
void |
paint(Graphics g,
List<Point> points)
Paints the map polygon on the map.
|
void |
paint(Graphics g,
Polygon polygon)
Paints the map polygon on the map.
|
String |
toString() |
getBackColor, getColor, getDefaultFont, getFont, getLayer, getName, getStroke, getStyle, getStyleAssigned, isVisible, paintText, setBackColor, setColor, setFont, setLayer, setName, setStroke, setStyle, setVisibleprivate List<? extends ICoordinate> points
public MapPolygonImpl(ICoordinate... points)
public MapPolygonImpl(List<? extends ICoordinate> points)
public MapPolygonImpl(String name, List<? extends ICoordinate> points)
public MapPolygonImpl(String name, ICoordinate... points)
public MapPolygonImpl(Layer layer, List<? extends ICoordinate> points)
public MapPolygonImpl(Layer layer, String name, List<? extends ICoordinate> points)
public MapPolygonImpl(Layer layer, String name, ICoordinate... points)
public MapPolygonImpl(Layer layer, String name, List<? extends ICoordinate> points, Style style)
public List<? extends ICoordinate> getPoints()
getPoints in interface MapPolygonpublic void paint(Graphics g, List<Point> points)
MapPolygonpoints
are specifying the coordinates within gpaint in interface MapPolygong - graphicspoints - list of points defining the polygon to drawpublic void paint(Graphics g, Polygon polygon)
MapPolygonpolygon
is specifying the coordinates within gpaint in interface MapPolygong - graphicspolygon - polygon to drawpublic static Style getDefaultStyle()