Class: TaskJuggler::Painter::PolyLine

Inherits:
Element show all
Defined in:
lib/taskjuggler/Painter/BasicShapes.rb

Overview

A Polygon line element.

Constant Summary

Constants included from Primitives

TaskJuggler::Painter::Primitives::FillAndStrokeAttrs, TaskJuggler::Painter::Primitives::FillAttrs, TaskJuggler::Painter::Primitives::StrokeAttrs, TaskJuggler::Painter::Primitives::TextAttrs

Instance Method Summary collapse

Methods inherited from Element

#to_svg

Methods included from Primitives

#circle, #color, #ellipse, #group, #line, #points, #polyline, #rect, #text

Methods included from SVGSupport

#valuesToSVG

Constructor Details

#initialize(attrs) ⇒ PolyLine

Create a polygon line with the provided Points.



66
67
68
# File 'lib/taskjuggler/Painter/BasicShapes.rb', line 66

def initialize(attrs)
  super('polyline', [ :points ] + FillAndStrokeAttrs, attrs)
end