.. role:: clio-inherited
   :class: clio-flag clio-flag-inherited


##############
LineCollection
##############

.. js:class:: wv.Markup.Shapes.LineCollection

   This class is useful for specifying multiple lines that all share the same visual appearance.
   
   
   Index
   =====
   
   .. rubric:: Constructors
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:func:`~wv.Markup.Shapes.LineCollection.constructor`
   
   .. rubric:: Methods
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:meth:`~wv.Markup.Shapes.LineCollection.addLine`
   * :js:meth:`~wv.Markup.Shapes.LineCollection.clear`
   * :js:meth:`~wv.Markup.Shapes.LineCollection.getEndcapsInverted`
   * :js:meth:`~wv.Markup.Shapes.LineCollection.getEndEndcapColor`
   * :js:meth:`~wv.Markup.Shapes.LineCollection.getEndEndcapSize`
   * :js:meth:`~wv.Markup.Shapes.LineCollection.getEndEndcapType`
   * :js:meth:`~wv.Markup.Shapes.LineCollection.getLines`
   * :js:meth:`~wv.Markup.Shapes.LineCollection.getStartEndcapColor`
   * :js:meth:`~wv.Markup.Shapes.LineCollection.getStartEndcapSize`
   * :js:meth:`~wv.Markup.Shapes.LineCollection.getStartEndcapType`
   * :js:meth:`~wv.Markup.Shapes.LineCollection.getStrokeColor`
   * :js:meth:`~wv.Markup.Shapes.LineCollection.getStrokeWidth`
   * :js:meth:`~wv.Markup.Shapes.LineCollection.setEndcapsInverted`
   * :js:meth:`~wv.Markup.Shapes.LineCollection.setEndcapType`
   * :js:meth:`~wv.Markup.Shapes.LineCollection.setEndEndcapColor`
   * :js:meth:`~wv.Markup.Shapes.LineCollection.setEndEndcapSize`
   * :js:meth:`~wv.Markup.Shapes.LineCollection.setEndEndcapType`
   * :js:meth:`~wv.Markup.Shapes.LineCollection.setStartEndcapColor`
   * :js:meth:`~wv.Markup.Shapes.LineCollection.setStartEndcapSize`
   * :js:meth:`~wv.Markup.Shapes.LineCollection.setStartEndcapType`
   * :js:meth:`~wv.Markup.Shapes.LineCollection.setStrokeColor`
   * :js:meth:`~wv.Markup.Shapes.LineCollection.setStrokeWidth`
   
   



.. rst-class:: kind-group kind-constructors

.. rubric:: Constructors
   :class: kind-group-title


.. js:method:: wv.Markup.Shapes.LineCollection.constructor

      .. rst-class:: sig-pretty-signature
      
         | LineCollection(): :js:class:`LineCollection <wv.Markup.Shapes.LineCollection>`
      
      **Returns**\ : :js:class:`LineCollection <wv.Markup.Shapes.LineCollection>`
      



.. rst-class:: kind-group kind-methods

.. rubric:: Methods
   :class: kind-group-title


.. js:method:: wv.Markup.Shapes.LineCollection.addLine

      .. rst-class:: sig-pretty-signature
      
         | addLine(**p1**\ : :js:class:`Point2 <wv.Point2>`\ , **p2**\ : :js:class:`Point2 <wv.Point2>`\ ): *void*
      
      Adds a line segment to the collection
      
      **Parameters**
      
      
         **p1**\ : :js:class:`Point2 <wv.Point2>`
      
      
            first point of the line segment
      
      
         **p2**\ : :js:class:`Point2 <wv.Point2>`
      
      
            second point of the line segment
      
      
      
      **Returns**\ : *void*
      



.. js:method:: wv.Markup.Shapes.LineCollection.clear

      .. rst-class:: sig-pretty-signature
      
         | clear(): *void*
      
      Removes all line segments from this collection
      
      **Returns**\ : *void*
      



.. js:method:: wv.Markup.Shapes.LineCollection.getEndcapsInverted

      .. rst-class:: clio-flags
      
         :clio-inherited:`inherited`
      
      .. rst-class:: sig-pretty-signature
      
         | getEndcapsInverted(): *boolean*
      
      Gets whether endcaps are inverted for this shape. The default value is false.
      
      **Returns**\ : *boolean*
      
      
         value indicating whether endcaps are inverted
      
      



.. js:method:: wv.Markup.Shapes.LineCollection.getEndEndcapColor

      .. rst-class:: clio-flags
      
         :clio-inherited:`inherited`
      
      .. rst-class:: sig-pretty-signature
      
         | getEndEndcapColor(): :js:class:`Color <wv.Color>`
      
      Gets the color of the end endcap. Default value is black.
      
      **Returns**\ : :js:class:`Color <wv.Color>`
      
      
         color for the end endcap.
      
      



.. js:method:: wv.Markup.Shapes.LineCollection.getEndEndcapSize

      .. rst-class:: clio-flags
      
         :clio-inherited:`inherited`
      
      .. rst-class:: sig-pretty-signature
      
         | getEndEndcapSize(): *number*
      
      Gets the size of the end endcap in pixels. Default value is 9.
      
      **Returns**\ : *number*
      
      
         size of the end endcap.
      
      



.. js:method:: wv.Markup.Shapes.LineCollection.getEndEndcapType

      .. rst-class:: clio-flags
      
         :clio-inherited:`inherited`
      
      .. rst-class:: sig-pretty-signature
      
         | getEndEndcapType(): :js:data:`EndcapType <wv.Markup.Shapes.EndcapType>`
      
      Gets the end endcap type for this shape. The default value is none.
      
      **Returns**\ : :js:data:`EndcapType <wv.Markup.Shapes.EndcapType>`
      
      
         the end endcap type
      
      



.. js:method:: wv.Markup.Shapes.LineCollection.getLines

      .. rst-class:: sig-pretty-signature
      
         | getLines(): *_MarkupLineData*\ []
      
      Gets the lines in the collection
      
      **Returns**\ : *_MarkupLineData*\ []
      



.. js:method:: wv.Markup.Shapes.LineCollection.getStartEndcapColor

      .. rst-class:: clio-flags
      
         :clio-inherited:`inherited`
      
      .. rst-class:: sig-pretty-signature
      
         | getStartEndcapColor(): :js:class:`Color <wv.Color>`
      
      Gets the color of the start endcap. Default value is black.
      
      **Returns**\ : :js:class:`Color <wv.Color>`
      
      
         color for the start endcap.
      
      



.. js:method:: wv.Markup.Shapes.LineCollection.getStartEndcapSize

      .. rst-class:: clio-flags
      
         :clio-inherited:`inherited`
      
      .. rst-class:: sig-pretty-signature
      
         | getStartEndcapSize(): *number*
      
      Gets the size of the start endcap in pixels. Default value is 9.
      
      **Returns**\ : *number*
      
      
         size of the start endcap.
      
      



.. js:method:: wv.Markup.Shapes.LineCollection.getStartEndcapType

      .. rst-class:: clio-flags
      
         :clio-inherited:`inherited`
      
      .. rst-class:: sig-pretty-signature
      
         | getStartEndcapType(): :js:data:`EndcapType <wv.Markup.Shapes.EndcapType>`
      
      Gets the start endcap type for this shape. The default Value is none.
      
      **Returns**\ : :js:data:`EndcapType <wv.Markup.Shapes.EndcapType>`
      
      
         the start endcap type
      
      



.. js:method:: wv.Markup.Shapes.LineCollection.getStrokeColor

      .. rst-class:: clio-flags
      
         :clio-inherited:`inherited`
      
      .. rst-class:: sig-pretty-signature
      
         | getStrokeColor(): :js:class:`Color <wv.Color>`
      
      Gets the stroke color for this shape
      
      **Returns**\ : :js:class:`Color <wv.Color>`
      
      
         the stroke color
      
      



.. js:method:: wv.Markup.Shapes.LineCollection.getStrokeWidth

      .. rst-class:: clio-flags
      
         :clio-inherited:`inherited`
      
      .. rst-class:: sig-pretty-signature
      
         | getStrokeWidth(): *number*
      
      Gets the stroke width for this shape in pixels
      
      **Returns**\ : *number*
      
      
         the stroke width in pixels
      
      



.. js:method:: wv.Markup.Shapes.LineCollection.setEndcapsInverted

      .. rst-class:: clio-flags
      
         :clio-inherited:`inherited`
      
      .. rst-class:: sig-pretty-signature
      
         | setEndcapsInverted(**inverted**\ : *boolean*\ ): *void*
      
      Sets whether endcapsare inverted for this shape.
      
      **Parameters**
      
      
         **inverted**\ : *boolean*
      
      
            value indicated whether endcaps should be inverted
      
      
      
      **Returns**\ : *void*
      



.. js:method:: wv.Markup.Shapes.LineCollection.setEndcapType

      .. rst-class:: clio-flags
      
         :clio-inherited:`inherited`
      
      .. rst-class:: sig-pretty-signature
      
         | setEndcapType(**endcapType**\ : :js:data:`EndcapType <wv.Markup.Shapes.EndcapType>`\ ): *void*
      
      Convenience for setting the start and eend endcap type for this shape
      
      **Parameters**
      
      
         **endcapType**\ : :js:data:`EndcapType <wv.Markup.Shapes.EndcapType>`
      
      
            the new endcap type
      
      
      
      **Returns**\ : *void*
      



.. js:method:: wv.Markup.Shapes.LineCollection.setEndEndcapColor

      .. rst-class:: clio-flags
      
         :clio-inherited:`inherited`
      
      .. rst-class:: sig-pretty-signature
      
         | setEndEndcapColor(**color**\ : :js:class:`Color <wv.Color>`\ ): *void*
      
      Sets the color for the end endcap.
      
      **Parameters**
      
      
         **color**\ : :js:class:`Color <wv.Color>`
      
      
            the end endcap color value.
      
      
      
      **Returns**\ : *void*
      



.. js:method:: wv.Markup.Shapes.LineCollection.setEndEndcapSize

      .. rst-class:: clio-flags
      
         :clio-inherited:`inherited`
      
      .. rst-class:: sig-pretty-signature
      
         | setEndEndcapSize(**size**\ : *number*\ ): *void*
      
      Sets the size of the end endcap in pixels.
      
      **Parameters**
      
      
         **size**\ : *number*
      
      
            the end endcap.
      
      
      
      **Returns**\ : *void*
      



.. js:method:: wv.Markup.Shapes.LineCollection.setEndEndcapType

      .. rst-class:: clio-flags
      
         :clio-inherited:`inherited`
      
      .. rst-class:: sig-pretty-signature
      
         | setEndEndcapType(**endcapType**\ : :js:data:`EndcapType <wv.Markup.Shapes.EndcapType>`\ ): *void*
      
      Sets the end endcap type for this shape
      
      **Parameters**
      
      
         **endcapType**\ : :js:data:`EndcapType <wv.Markup.Shapes.EndcapType>`
      
      
            the new endcap type
      
      
      
      **Returns**\ : *void*
      



.. js:method:: wv.Markup.Shapes.LineCollection.setStartEndcapColor

      .. rst-class:: clio-flags
      
         :clio-inherited:`inherited`
      
      .. rst-class:: sig-pretty-signature
      
         | setStartEndcapColor(**color**\ : :js:class:`Color <wv.Color>`\ ): *void*
      
      Sets the color for the start endcap.
      
      **Parameters**
      
      
         **color**\ : :js:class:`Color <wv.Color>`
      
      
            the start endcap color value.
      
      
      
      **Returns**\ : *void*
      



.. js:method:: wv.Markup.Shapes.LineCollection.setStartEndcapSize

      .. rst-class:: clio-flags
      
         :clio-inherited:`inherited`
      
      .. rst-class:: sig-pretty-signature
      
         | setStartEndcapSize(**size**\ : *number*\ ): *void*
      
      Sets the size of the start endcap in pixels.
      
      **Parameters**
      
      
         **size**\ : *number*
      
      
            the start endcap.
      
      
      
      **Returns**\ : *void*
      



.. js:method:: wv.Markup.Shapes.LineCollection.setStartEndcapType

      .. rst-class:: clio-flags
      
         :clio-inherited:`inherited`
      
      .. rst-class:: sig-pretty-signature
      
         | setStartEndcapType(**endcapType**\ : :js:data:`EndcapType <wv.Markup.Shapes.EndcapType>`\ ): *void*
      
      Sets the start endcap type for this shape
      
      **Parameters**
      
      
         **endcapType**\ : :js:data:`EndcapType <wv.Markup.Shapes.EndcapType>`
      
      
            the new endcap type
      
      
      
      **Returns**\ : *void*
      



.. js:method:: wv.Markup.Shapes.LineCollection.setStrokeColor

      .. rst-class:: clio-flags
      
         :clio-inherited:`inherited`
      
      .. rst-class:: sig-pretty-signature
      
         | setStrokeColor(**color**\ : :js:class:`Color <wv.Color>`\ ): *void*
      
      Sets the stroke color for this shape
      
      **Parameters**
      
      
         **color**\ : :js:class:`Color <wv.Color>`
      
      
            the stroke color
      
      
      
      **Returns**\ : *void*
      



.. js:method:: wv.Markup.Shapes.LineCollection.setStrokeWidth

      .. rst-class:: clio-flags
      
         :clio-inherited:`inherited`
      
      .. rst-class:: sig-pretty-signature
      
         | setStrokeWidth(**strokeWidth**\ : *number*\ ): *void*
      
      Sets the stroke width for this shape in pixels
      
      **Parameters**
      
      
         **strokeWidth**\ : *number*
      
      
            the stroke width in pixels
      
      
      
      **Returns**\ : *void*
      




