class TaskJuggler::Painter::Text

A text element.

Public Class Methods

new(str, attrs) click to toggle source

Create a text of str at x, y coordinates.

Calls superclass method TaskJuggler::Painter::Element.new
# File lib/taskjuggler/Painter/Text.rb, line 24
def initialize(str, attrs)
  super('text', [ :x, :y ] + TextAttrs, attrs)
  @text = str
end