Class: SLComponents::Document
Instance Attribute Summary
Attributes inherited from NodeShape
#dx, #dy, #file_path, #fixed, #label, #linked, #name, #type, #x, #y
Instance Method Summary
collapse
Methods inherited from NodeShape
#initialize
Instance Method Details
#color=(c) ⇒ Object
102
103
104
|
# File 'lib/mk_semi_lattice/sl_components.rb', line 102
def color=(c)
end
|
#setup_shape ⇒ Object
95
96
97
98
99
100
|
# File 'lib/mk_semi_lattice/sl_components.rb', line 95
def setup_shape
@image = Image.new(
'.semi_lattice/icons/document.png',
x: @x-33.6, y: @y-24, width: 45.6, height: 67.2, z: @z
)
end
|
#x=(x) ⇒ Object
106
107
108
|
# File 'lib/mk_semi_lattice/sl_components.rb', line 106
def x=(x)
@image.x = x - 33.6
end
|
#y=(y) ⇒ Object
110
111
112
|
# File 'lib/mk_semi_lattice/sl_components.rb', line 110
def y=(y)
@image.y = y - 24
end
|