Class Line


public class Line extends VectorElement
A geometric line string that can be displayed on the map.
  • Constructor Details

    • Line

      public Line(LineGeometry geometry, LineStyle style)
      Constructs a Line object from a geometry object and a style.
      Parameters:
      geometry - The geometry object that defines the location of this line.
      style - The style that defines what this line looks like.
    • Line

      public Line(MapPosVector poses, LineStyle style)
      Constructs a Line object from a vector of map positions and a style.
      Parameters:
      poses - The vector of map positions that defines the location of this line.
      style - The style that defines what this line looks like.
  • Method Details

    • getGeometry

      public LineGeometry getGeometry()
      Description copied from class: VectorElement
      Returns the geometry object that defines the location of this vector element.
      Overrides:
      getGeometry in class VectorElement
      Returns:
      The geometry object of this vector element.
    • setGeometry

      public void setGeometry(LineGeometry geometry)
      Sets the location for this line.
      Parameters:
      geometry - The new geometry object that defines the location of this line.
    • getPoses

      public MapPosVector getPoses()
      Returns the vertices that define this line.
      Returns:
      The vector of map positions that defines this line.
    • setPoses

      public void setPoses(MapPosVector poses)
      Sets the vertices that define this line.
      Parameters:
      poses - The new vector of map positions that defines this line.
    • getStyle

      public LineStyle getStyle()
      Returns the style of this line.
      Returns:
      The style that defines what this line looks like.
    • setStyle

      public void setStyle(LineStyle style)
      Sets the style for this line.
      Parameters:
      style - The new style that defines what this line looks like.