Class TaskJuggler::Painter::Text
In: lib/taskjuggler/Painter/Text.rb
Parent: Element

A text element.

Methods

new  

Public Class methods

Create a text of str at x, y coordinates.

[Source]

# File lib/taskjuggler/Painter/Text.rb, line 25
      def initialize(str, attrs)
        super('text', [ :x, :y ] + TextAttrs, attrs)
        @text = str
      end

[Validate]