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
118
119
120
121
|
# File 'lib/mk_semi_lattice/sl_components.rb', line 118
def color=(c)
@folder1.color = c
@folder2.color = c
end
|
#setup_shape ⇒ Object
113
114
115
116
|
# File 'lib/mk_semi_lattice/sl_components.rb', line 113
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
123
124
125
126
|
# File 'lib/mk_semi_lattice/sl_components.rb', line 123
def x=(x)
@folder1.x = x - 28
@folder2.x = x - 28
end
|
#y=(y) ⇒ Object
128
129
130
131
|
# File 'lib/mk_semi_lattice/sl_components.rb', line 128
def y=(y)
@folder1.y = y - 10
@folder2.y = y - 20
end
|