Constructor and Description |
---|
PointLayer(Coord position,
String name,
Image icon)
Creates a Point Layer.
|
Modifier and Type | Method and Description |
---|---|
BoundingBox |
boundingBox()
The bounding box of this Layer
|
Image |
getIcon()
Gets the point Icon
|
String |
getName()
Gets the Point name
|
void |
paint(Graphics g,
Tile tile)
Paints the Layer on the given Graphics
|
void |
setDisplayName(boolean displayName)
This method declares if the point name should be displayed
|
void |
setIcon(Image icon)
Sets the display icon
|
String |
toString()
Returns a string representation of the object.
|
equals, getLatitude, getLongitude, hashCode, isProjected, setLatitude, setLongitude, setProjected, translate, translate
public String getName()
public Image getIcon()
public void setIcon(Image icon)
icon
- public void setDisplayName(boolean displayName)
displayName
- public void paint(Graphics g, Tile tile)
Layer
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
public BoundingBox boundingBox()
Layer
boundingBox
in interface Layer