Class: MotionPlot::Title
- Inherits:
-
Object
- Object
- MotionPlot::Title
- Defined in:
- lib/motion-plot/utilities/title.rb
Instance Attribute Summary collapse
-
#position ⇒ Object
Returns the value of attribute position.
-
#style ⇒ Object
Returns the value of attribute style.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Title
constructor
A new instance of Title.
- #text_style ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Title
Returns a new instance of Title.
6 7 8 9 10 |
# File 'lib/motion-plot/utilities/title.rb', line 6 def initialize(={}) @text = [:text] @position = [:position] || AnchorPosition.default @style = Style.new() end |
Instance Attribute Details
#position ⇒ Object
Returns the value of attribute position.
4 5 6 |
# File 'lib/motion-plot/utilities/title.rb', line 4 def position @position end |
#style ⇒ Object
Returns the value of attribute style.
4 5 6 |
# File 'lib/motion-plot/utilities/title.rb', line 4 def style @style end |
#text ⇒ Object
Returns the value of attribute text.
4 5 6 |
# File 'lib/motion-plot/utilities/title.rb', line 4 def text @text end |
Instance Method Details
#text_style ⇒ Object
12 13 14 |
# File 'lib/motion-plot/utilities/title.rb', line 12 def text_style TextStyle.cpt_text_style(@style) end |