Class: SLComponents::Folder
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
121
122
123
124
|
# File 'lib/mk_semi_lattice/sl_components.rb', line 121
def color=(c)
@folder1.color = c
@folder2.color = c
end
|
#setup_shape ⇒ Object
116
117
118
119
|
# File 'lib/mk_semi_lattice/sl_components.rb', line 116
def setup_shape
@folder1 = Rectangle.new(x: @x-28, y: @y-10, width: 56, height: 32, color: @color, z: @z)
@folder2 = Rectangle.new(x: @x-28, y: @y-20, width: 26, height: 12, color: @color, z: @z)
end
|
#x=(x) ⇒ Object
126
127
128
129
|
# File 'lib/mk_semi_lattice/sl_components.rb', line 126
def x=(x)
@folder1.x = x - 28
@folder2.x = x - 28
end
|
#y=(y) ⇒ Object
131
132
133
134
|
# File 'lib/mk_semi_lattice/sl_components.rb', line 131
def y=(y)
@folder1.y = y - 10
@folder2.y = y - 20
end
|