Class: TaskJuggler::Painter::Rect
- 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
-
#initialize(attrs) ⇒ Rect
constructor
Create a rectangle at x, y with width and height.
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) ⇒ 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 |