Class LinesLayer
java.lang.Object
com.codename1.maps.layers.AbstractLayer
com.codename1.maps.layers.LinesLayer
- All Implemented Interfaces:
Layer
- Direct Known Subclasses:
ArrowLinesLayer
This is a Lines Layer
-
Field Summary
FieldsFields inherited from class AbstractLayer
name, projection -
Constructor Summary
ConstructorsConstructorDescriptionConstructor with default projection Mercator.LinesLayer(Projection p, String name) LinesLayer(String name) Constructor with default projection Mercator. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLineSegment(Coord[] coords) Adds a Line segment to the LayerThe bounding box of this LayervoidlineColor(int rgb) Sets the color of the LinesvoidPaints the Layer on the given Graphicsprotected voidpaintSegment(Graphics g, Coord[] segment, Tile tile) Paint a segment.Methods inherited from class AbstractLayer
getName, getProjection
-
Field Details
-
_lineColor
protected int _lineColor
-
-
Constructor Details
-
LinesLayer
public LinesLayer()Constructor with default projection Mercator. -
LinesLayer
Constructor with default projection Mercator. -
LinesLayer
-
-
Method Details
-
paint
-
paintSegment
-
addLineSegment
Adds a Line segment to the Layer
Parameters
coords
-
lineColor
public void lineColor(int rgb) Sets the color of the Lines
Parameters
rgb
-
boundingBox
The bounding box of this Layer
Returns
the Layer bounding box
- Specified by:
boundingBoxin interfaceLayer- Specified by:
boundingBoxin classAbstractLayer
-