Class: TaskJuggler::Painter::Rect

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

Overview

A Rectangle element.

Constant Summary

Constants included from Primitives

Primitives::FillAndStrokeAttrs, Primitives::FillAttrs, Primitives::StrokeAttrs, 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) ⇒ Rect

Create a rectangle at x, y with width and height.



55
56
57
58
# File 'lib/taskjuggler/Painter/BasicShapes.rb', line 55

def initialize(attrs)
  super('rect', [ :x, :y, :width, :height, :rx, :ry ] +
                FillAndStrokeAttrs, attrs)
end