Cells and clusters
This week I have been working on cell and cluster layout.
Cell layout
It is pretty easy to imagine this layout. Based on number of elements and their sizes, the drawing space is divided into invisible cells. Each of those is occupied by a vertex, which are then connected with edges.
- https://github.com/medicka/PharoGSoC/commit/9a3e002308dfed4ff2109020bdb2222f40cf546b
- https://github.com/medicka/PharoGSoC/commit/b3fde85b177a3edb29894e6a62c01c0756ad187e
- https://github.com/medicka/PharoGSoC/commit/4fcbd1bb261eb3e6a20fd19c11ea07d7adb8d228
- https://github.com/medicka/PharoGSoC/commit/27c3f01cbacc1a61798ade4e3a6d9046358f7504
Cluster layout
In this type of layout we position vertices in such positions that they form a cluster, which represents a group of objects that are positioned close together. Let's put it in another perspective. In context of servers, cluster is a group of computers that are connected with each other and operate closely, as if they were one computer.
In order to implement this layout, firstly I needed to add some methods into the root class of all layouts:
Then I implemented necessary classes and methods for the layout itself:
- https://github.com/medicka/PharoGSoC/commit/c38906af415768cc6ff93152e726e29f82a05360
- https://github.com/medicka/PharoGSoC/commit/f82ce65d2b25ae31da7e8e009f899536de53bd09
- https://github.com/medicka/PharoGSoC/commit/f97d9684b959159ed3a636be0f2016d4d0a39711
- https://github.com/medicka/PharoGSoC/commit/728cb8864493c13e0cfa4966b053b45fccbe7b94
- https://github.com/medicka/PharoGSoC/commit/e9027cf9a1ee519b870775dc277001e63c730314
Beside the layouts, I added better explanations to some methods, changed method classifications and adopted some expected results.
- https://github.com/medicka/PharoGSoC/commit/79f7f99e1eef1f61c429569ef27369028a4f0d39
- https://github.com/medicka/PharoGSoC/commit/fd381eec03c09cc6c6189d788ece99754588b99a
- https://github.com/medicka/PharoGSoC/commit/a8691883a428544998709f28e1bcfbae351b1e6c