public class PointsLayer extends AbstractLayer implements ActionSource
name, projection| Constructor and Description |
|---|
PointsLayer()
Constructor with default projection Mercator.
|
PointsLayer(Projection p,
String name) |
PointsLayer(String name)
Constructor with default projection Mercator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addActionListener(ActionListener l)
Adds a listener to the Points Layer which will cause an event to dispatch
on click the ActionEvent will contain the pressed PointLayer unprojected
|
void |
addPoint(PointLayer point)
Adds a point to the PointsLayer
|
BoundingBox |
boundingBox()
The bounding box of this Layer
|
void |
fireActionEvent(BoundingBox box)
Trigger an event for the points that in contained in the BoundingBox
|
void |
paint(Graphics g,
Tile tile)
Paints the Layer on the given Graphics
|
void |
removeActionListener(ActionListener l)
Removes the given action listener Points Layer
|
void |
removePoint(PointLayer point)
Removes a point from the PointsLayer
|
void |
setPointIcon(Image icon)
Sets the Points icon
|
getName, getProjectionpublic PointsLayer()
public PointsLayer(String name)
public PointsLayer(Projection p, String name)
public void setPointIcon(Image icon)
icon - public void addPoint(PointLayer point)
point - a point to addpublic void removePoint(PointLayer point)
point - to remove from the PointsLayerpublic BoundingBox boundingBox()
boundingBox in interface LayerboundingBox in class AbstractLayerpublic void addActionListener(ActionListener l)
addActionListener in interface ActionSourcel - implementation of the action listener interfacepublic void removeActionListener(ActionListener l)
removeActionListener in interface ActionSourcel - implementation of the action listener interfacepublic void fireActionEvent(BoundingBox box)
box - the BoundingBox to trigger event.