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 rectangle on the map.
|
void |
paint(Graphics g,
Polygon polygon)
Paints the map rectangle on the map.
|
String |
toString() |
getBackColor, getColor, getDefaultFont, getFont, getLayer, getName, getStroke, getStyle, getStyleAssigned, isVisible, paintText, setBackColor, setColor, setFont, setLayer, setName, setStroke, setStyle, setVisible
private 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 MapPolygon
public void paint(Graphics g, List<Point> points)
MapPolygon
points
are specifying the coordinates within g
paint
in interface MapPolygon
public void paint(Graphics g, Polygon polygon)
MapPolygon
polygon
is specifying the coordinates within g
paint
in interface MapPolygon
public static Style getDefaultStyle()