public interface Layer
Known subtypesAbstractLayer, ArrowLinesLayer, LinesLayer, PointLayer, PointsLayer
a Layer interface.
Each Layer needs to ability to paint itself on the map
Methods
public abstract void paint(Graphics g, Tile screenTile) | Paints the Layer on the given Graphics |
public abstract BoundingBox boundingBox() | The bounding box of this Layer |
public abstract String getName() | Gets the name of this Layer |
Method details
paint
public abstract void paint(Graphics g, Tile screenTile)Paints the Layer on the given Graphics
Parameters
gGraphics- a Graphics Object to paint on
screenTileTile- the screen tile
boundingBox
public abstract BoundingBox boundingBox()The bounding box of this Layer
Returns
the Layer bounding box
getName
public abstract String getName()Gets the name of this Layer
Returns
the name of this Layer