public class LinesLayer
- Object
- AbstractLayer
- LinesLayer
ImplementsLayer
Known subtypesArrowLinesLayer
This is a Lines Layer
Fields
protected int _lineColor |
Constructors
public LinesLayer() | Constructor with default projection Mercator. |
public LinesLayer(String name) | Constructor with default projection Mercator. |
public LinesLayer(Projection p, String name) | Constructor with custom projection and layer name. |
Methods
public 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. |
public void addLineSegment(Coord[] coords) | Adds a Line segment to the Layer |
public void lineColor(int rgb) | Sets the color of the Lines |
public BoundingBox boundingBox() | The bounding box of this Layer |
Inherited fields
From AbstractLayer
Inherited methods
Field details
_lineColor
protected int _lineColorConstructor details
LinesLayer
public LinesLayer()Constructor with default projection Mercator.
LinesLayer
public LinesLayer(String name)Constructor with default projection Mercator.
LinesLayer
public LinesLayer(Projection p, String name)Constructor with custom projection and layer name.
Method details
paint
public 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
paintSegment
protected void paintSegment(Graphics g, Coord[] segment, Tile tile)Paint a segment.
Parameters
gGraphics- a Graphics Object to paint on
segmentCoord[]- array of Coord to draw a Line.
tileTile- Not documented.
addLineSegment
public void addLineSegment(Coord[] coords)Adds a Line segment to the Layer
lineColor
public void lineColor(int rgb)Sets the color of the Lines
boundingBox
public BoundingBox boundingBox()The bounding box of this Layer
Returns
the Layer bounding box