Class: Yuimaru::Sequence::Diagram
- Inherits:
-
Object
- Object
- Yuimaru::Sequence::Diagram
- Defined in:
- lib/yuimaru/sequence/diagram.rb
Constant Summary collapse
- HAND_FAMILY =
'Daniel'
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#surface ⇒ Object
readonly
Returns the value of attribute surface.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
- #draw {|surface| ... } ⇒ Object
-
#initialize(sequence) ⇒ Diagram
constructor
A new instance of Diagram.
Constructor Details
#initialize(sequence) ⇒ Diagram
Returns a new instance of Diagram.
10 11 12 |
# File 'lib/yuimaru/sequence/diagram.rb', line 10 def initialize(sequence) @sequence = sequence end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
8 9 10 |
# File 'lib/yuimaru/sequence/diagram.rb', line 8 def context @context end |
#height ⇒ Object (readonly)
Returns the value of attribute height.
8 9 10 |
# File 'lib/yuimaru/sequence/diagram.rb', line 8 def height @height end |
#surface ⇒ Object (readonly)
Returns the value of attribute surface.
8 9 10 |
# File 'lib/yuimaru/sequence/diagram.rb', line 8 def surface @surface end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
8 9 10 |
# File 'lib/yuimaru/sequence/diagram.rb', line 8 def width @width end |
Instance Method Details
#draw {|surface| ... } ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/yuimaru/sequence/diagram.rb', line 14 def draw set_layout init_surface init_context set_font fill_background draw_actors draw_lifeline yield surface end |