public class MapRectangleImpl extends MapObjectImpl implements MapRectangle
Constructor and Description |
---|
MapRectangleImpl(Coordinate topLeft,
Coordinate bottomRight) |
MapRectangleImpl(Layer layer,
Coordinate topLeft,
Coordinate bottomRight) |
MapRectangleImpl(Layer layer,
java.lang.String name,
Coordinate topLeft,
Coordinate bottomRight) |
MapRectangleImpl(Layer layer,
java.lang.String name,
Coordinate topLeft,
Coordinate bottomRight,
Style style) |
MapRectangleImpl(java.lang.String name,
Coordinate topLeft,
Coordinate bottomRight) |
Modifier and Type | Method and Description |
---|---|
Coordinate |
getBottomRight() |
static Style |
getDefaultStyle() |
Coordinate |
getTopLeft() |
void |
paint(java.awt.Graphics g,
java.awt.Point topLeft,
java.awt.Point bottomRight)
Paints the map rectangle on the map.
|
java.lang.String |
toString() |
getBackColor, getColor, getDefaultFont, getFont, getLayer, getName, getStroke, getStyle, getStyleAssigned, isVisible, paintText, setBackColor, setColor, setFont, setLayer, setName, setStroke, setStyle, setVisible
public MapRectangleImpl(Coordinate topLeft, Coordinate bottomRight)
public MapRectangleImpl(java.lang.String name, Coordinate topLeft, Coordinate bottomRight)
public MapRectangleImpl(Layer layer, Coordinate topLeft, Coordinate bottomRight)
public MapRectangleImpl(Layer layer, java.lang.String name, Coordinate topLeft, Coordinate bottomRight)
public MapRectangleImpl(Layer layer, java.lang.String name, Coordinate topLeft, Coordinate bottomRight, Style style)
public Coordinate getTopLeft()
getTopLeft
in interface MapRectangle
public Coordinate getBottomRight()
getBottomRight
in interface MapRectangle
public void paint(java.awt.Graphics g, java.awt.Point topLeft, java.awt.Point bottomRight)
MapRectangle
topLeft
and
bottomRight
are specifying the coordinates within g
paint
in interface MapRectangle
g
- graphics structure for paintingtopLeft
- lop left edge of painting regionbottomRight
- bottom right edge of painting regionpublic static Style getDefaultStyle()
public java.lang.String toString()
toString
in class java.lang.Object