public class LinesLayer extends AbstractLayer
Modifier and Type | Field and Description |
---|---|
protected int |
_lineColor |
name, projection
Constructor and Description |
---|
LinesLayer()
Constructor with default projection Mercator.
|
LinesLayer(Projection p,
String name) |
LinesLayer(String name)
Constructor with default projection Mercator.
|
Modifier and Type | Method and Description |
---|---|
void |
addLineSegment(Coord[] coords)
Adds a Line segment to the Layer
|
BoundingBox |
boundingBox()
The bounding box of this Layer
|
void |
lineColor(int rgb)
Sets the color of the Lines
|
void |
paint(Graphics g,
Tile screenTile)
Paints the Layer on the given Graphics
|
protected void |
paintSegment(Graphics g,
Coord[] segment,
Tile tile)
Paint a segment.
|
getName, getProjection
public LinesLayer()
public LinesLayer(String name)
public LinesLayer(Projection p, String name)
public void paint(Graphics g, Tile screenTile)
g
- a Graphics Object to paint onscreenTile
- the screen tileprotected void paintSegment(Graphics g, Coord[] segment, Tile tile)
g
- a Graphics Object to paint onsegment
- array of Coord to draw a Line.tile
- public void addLineSegment(Coord[] coords)
coords
- public void lineColor(int rgb)
rgb
- public BoundingBox boundingBox()
boundingBox
in interface Layer
boundingBox
in class AbstractLayer