Class: SLComponents::NodeShape
- Inherits:
-
Object
- Object
- SLComponents::NodeShape
- Defined in:
- lib/mk_semi_lattice/sl_components.rb
Overview
日本語対応フォントの優先順位で選択 for win11, なければ省略
Direct Known Subclasses
Instance Attribute Summary collapse
-
#dx ⇒ Object
Returns the value of attribute dx.
-
#dy ⇒ Object
Returns the value of attribute dy.
-
#file_path ⇒ Object
Returns the value of attribute file_path.
-
#fixed ⇒ Object
Returns the value of attribute fixed.
-
#label ⇒ Object
Returns the value of attribute label.
-
#linked ⇒ Object
Returns the value of attribute linked.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Method Summary collapse
- #color=(c) ⇒ Object
-
#initialize(attrs = {}) ⇒ NodeShape
constructor
A new instance of NodeShape.
- #setup_shape ⇒ Object
Constructor Details
#initialize(attrs = {}) ⇒ NodeShape
Returns a new instance of NodeShape.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/mk_semi_lattice/sl_components.rb', line 13 def initialize(attrs = {}) @x = attrs[:x] @y = attrs[:y] @z = attrs[:z] @color = attrs[:color] @name = attrs[:name] @label = attrs[:label] @fixed = attrs[:fixed] @linked = attrs[:linked] @dx = attrs[:dx] @dy = attrs[:dy] @type = attrs[:type] @file_path = attrs[:file_path] @icon_path = attrs[:icon_path] || nil setup_shape end |
Instance Attribute Details
#dx ⇒ Object
Returns the value of attribute dx.
11 12 13 |
# File 'lib/mk_semi_lattice/sl_components.rb', line 11 def dx @dx end |
#dy ⇒ Object
Returns the value of attribute dy.
11 12 13 |
# File 'lib/mk_semi_lattice/sl_components.rb', line 11 def dy @dy end |
#file_path ⇒ Object
Returns the value of attribute file_path.
11 12 13 |
# File 'lib/mk_semi_lattice/sl_components.rb', line 11 def file_path @file_path end |
#fixed ⇒ Object
Returns the value of attribute fixed.
11 12 13 |
# File 'lib/mk_semi_lattice/sl_components.rb', line 11 def fixed @fixed end |
#label ⇒ Object
Returns the value of attribute label.
11 12 13 |
# File 'lib/mk_semi_lattice/sl_components.rb', line 11 def label @label end |
#linked ⇒ Object
Returns the value of attribute linked.
11 12 13 |
# File 'lib/mk_semi_lattice/sl_components.rb', line 11 def linked @linked end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/mk_semi_lattice/sl_components.rb', line 11 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
11 12 13 |
# File 'lib/mk_semi_lattice/sl_components.rb', line 11 def type @type end |
#x ⇒ Object
Returns the value of attribute x.
11 12 13 |
# File 'lib/mk_semi_lattice/sl_components.rb', line 11 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
11 12 13 |
# File 'lib/mk_semi_lattice/sl_components.rb', line 11 def y @y end |
Instance Method Details
#color=(c) ⇒ Object
30 31 32 |
# File 'lib/mk_semi_lattice/sl_components.rb', line 30 def color=(c) # 派生クラスでオーバーライド end |
#setup_shape ⇒ Object
42 43 44 |
# File 'lib/mk_semi_lattice/sl_components.rb', line 42 def setup_shape # 派生クラスでオーバーライド end |