public class Line extends VectorElement
swigCMemOwn
Constructor and Description |
---|
Line(LineGeometry geometry,
LineStyle style)
Constructs a Line object from a geometry object and a style.
|
Line(long cPtr,
boolean cMemoryOwn) |
Line(MapPosVector poses,
LineStyle style)
Constructs a Line object from a vector of map positions and a style.
|
Modifier and Type | Method and Description |
---|---|
void |
delete() |
protected void |
finalize() |
static long |
getCPtr(Line obj) |
LineGeometry |
getGeometry()
Returns the geometry object that defines the location of this vector element.
|
MapPosVector |
getPoses()
Returns the vertices that define this line.
|
LineStyle |
getStyle()
Returns the style of this line.
|
void |
setGeometry(LineGeometry geometry)
Sets the location for this line.
|
void |
setPoses(MapPosVector poses)
Sets the vertices that define this line.
|
void |
setStyle(LineStyle style)
Sets the style for this line.
|
static Line |
swigCreatePolymorphicInstance(long cPtr,
boolean cMemoryOwn)
Creates a polymorphic instance of the given native object.
|
java.lang.String |
swigGetClassName()
Returns the actual class name of this object.
|
java.lang.Object |
swigGetDirectorObject()
Returns the connected director object.
|
equals, getBounds, getCPtr, getId, getMetaData, getMetaDataElement, hashCode, isVisible, notifyElementChanged, setId, setMetaData, setMetaDataElement, setVisible
public Line(long cPtr, boolean cMemoryOwn)
public Line(LineGeometry geometry, LineStyle style)
geometry
- The geometry object that defines the location of this line.style
- The style that defines what this line looks like.public Line(MapPosVector poses, LineStyle style)
poses
- The vector of map positions that defines the location of this line.style
- The style that defines what this line looks like.public static long getCPtr(Line obj)
protected void finalize()
finalize
in class VectorElement
public void delete()
delete
in class VectorElement
public static Line swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
public LineGeometry getGeometry()
VectorElement
getGeometry
in class VectorElement
public void setGeometry(LineGeometry geometry)
geometry
- The new geometry object that defines the location of this line.public MapPosVector getPoses()
public void setPoses(MapPosVector poses)
poses
- The new vector of map positions that defines this line.public LineStyle getStyle()
public void setStyle(LineStyle style)
public java.lang.String swigGetClassName()
swigGetClassName
in class VectorElement
public java.lang.Object swigGetDirectorObject()
swigGetDirectorObject
in class VectorElement