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, setVisiblepublic 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 MapRectanglepublic Coordinate getBottomRight()
getBottomRight in interface MapRectanglepublic void paint(java.awt.Graphics g,
java.awt.Point topLeft,
java.awt.Point bottomRight)
MapRectangletopLeft and
bottomRight are specifying the coordinates within gpaint in interface MapRectangleg - 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