public class LinesLayer

  1. Object
  2. AbstractLayer
  3. 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

Inherited methods

Field details

_lineColor

protected int _lineColor

Constructor 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

g Graphics
a Graphics Object to paint on
screenTile Tile
the screen tile

paintSegment

protected void paintSegment(Graphics g, Coord[] segment, Tile tile)
Paint a segment.

Parameters

g Graphics
a Graphics Object to paint on
segment Coord[]
array of Coord to draw a Line.
tile Tile
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