Label + Ellipse

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Label + Ellipse

abergel
Hi!

I have slightly improved the composite shape to enable text to be inserted in an ellipse. I am surprised to have wait for so long before adding this.

-=-=-=-=-=-=-=-=-=-=-=-=
v := RTView new.

s := RTEllipse new + (RTLabel new text: #name).
s allOfSameSize.
es := s elementsOn: Collection withAllSubclasses.
es @ RTDraggable.

RTEdgeBuilder new
view: v;
elements: es;
connectFrom: #superclass.

v addAll: es.

RTClusterLayout on: es.
v
-=-=-=-=-=-=-=-=-=-=-=-=


Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev