Class: RubyPost::GraphLabel
Overview
base class for graph labels
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from BaseLabel
Instance Method Summary collapse
- #compile ⇒ Object
-
#initialize(t = nil, p = 0) ⇒ GraphLabel
constructor
A new instance of GraphLabel.
Methods inherited from BaseLabel
#add_option, #bot, #bottom, #bottom_left, #bottom_right, #color, #colour, #compile_options, #left, #lft, #llft, #lrt, #right, #rotate, #rt, #scale, #set_position, #set_text, #top, #top_left, #top_right, #translate, #ulft, #urt
Constructor Details
#initialize(t = nil, p = 0) ⇒ GraphLabel
Returns a new instance of GraphLabel.
261 262 263 264 |
# File 'lib/graph.rb', line 261 def initialize(t=nil,p=0) super(t,p) self end |
Instance Method Details
#compile ⇒ Object
266 267 268 |
# File 'lib/graph.rb', line 266 def compile 'glabel.' + @place + '(' + @text.compile + ', ' + @position.compile + ') ' + + ";\n" end |