Class: TaskJuggler::Painter::Line
- Defined in:
- lib/taskjuggler/Painter/BasicShapes.rb
Overview
A line element.
Constant Summary
Constants included from Primitives
Primitives::FillAndStrokeAttrs, Primitives::FillAttrs, Primitives::StrokeAttrs, Primitives::TextAttrs
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Line
constructor
Create a line from x1, y1, to x2, y2.
Methods inherited from Element
Methods included from Primitives
#circle, #color, #ellipse, #group, #line, #points, #polyline, #rect, #text
Methods included from SVGSupport
Constructor Details
#initialize(attrs) ⇒ Line
Create a line from x1, y1, to x2, y2.
45 46 47 |
# File 'lib/taskjuggler/Painter/BasicShapes.rb', line 45 def initialize(attrs) super('line', [ :x1, :y1, :x2, :y2 ] + StrokeAttrs, attrs) end |