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) Constructor with custom projection and layer 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, getProjectionModifier and TypeMethodDescriptiongetName()Gets the name of this LayerThe projection of this LayerMethods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
Field Details
-
_lineColor
protected int _lineColor
-
-
Constructor Details
-
LinesLayer
public LinesLayer()Constructor with default projection Mercator. -
LinesLayer
Constructor with default projection Mercator. -
LinesLayer
Constructor with custom projection and layer name.
-
-
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
-