Expanded overview (somethink like the "blueprint" diagram, wiith small single boxes for every item)not provide something like a scrollable list)Expanded (show a full list, this may be difficult for classes with many methods roassal shapes doCollapsed (only shows the attribute (var or methods) and the number of elementsMaybe something like a group of three RTBoxes. The first box only has a label, the secondbuilding complex shapes as groups of simpler (RT)shapes.I wouldn't subclass RTShape neither. The whole framework looks like it is based on builders andvisible representation or connect parts of it with other elements, then every single element of theto the class diagram would happen on with RTShape/element/builder...., so you would need something on that level anyway.TRArcShape defines an arc based on the geometric property and with RTShapes you visualize a modelHi Peter,I would say, stay at the RTShape level. Trachel objects are for the low level stuff. For example a
by mapping its attributes to geometric values for the visible (trachel ) shapes.
An UML class diagram is a rectangle with three segments (or three boxes). The mapping from class attributes
Sure you can define a UML-Trachel shape as one geometric object. But I would only choose this
way if the object is somehow "static" and "closed".If you want to change the object(model) through the
UML-diagram (class label, class vars, class methods) should be accessible on the RT-Level.
and third box has a list of other elements (vars/methods).
In addition the two other boxes may have different states.I would start by looking at the "Pharo Smart Browser" (In the Roassal2 image)It defines boxes for classes and within this (expanded) boxes is a list of
trees for the methods, for an UML - Diagramm you'll use a list of labels for the methods).Nicolai2014-10-03 22:03 GMT+02:00 Peter Uhnák <i.uhnak@gmail.com>:_______________________________________________Hi,I am wondering what is the proper level at which should be addressed composition of elements.Imagine I want to create a diagram of UML class but I want to be able to dynamically add and remove new lines and sections, including various formatting (underline, italics, bold, ...) of each line separately. The RTUMLClassBuilder (or any other builder for that matter) is not an option since it's a one time build.The option I see is to subclass RTShape (let's name it MyRTUmlClass) and implement method trachelShapeFor: .Now the issue is, that I cannot use other RTShape (Roassal) elements, because they would have to be inserted into RTView which may not be available at the time - is there a way around it?So the other option is to use TRShape (Trachel) elements instead which would be fine except I feel like I am duplicating code of roassal elements (so for TRLabelShape I would copy RTLabel trachelShapeFor: and bend it for my needs), and the second issue is that in updateFor:trachelShape: I would need to access internal structure of the element and change it (because for example a new method was added) - does that break encapsulation?And finally, from conceptual standpoint what should be the content of RTView elements? Because if I have diagram full of UML classes I probably don't care about the content of them when doing layouting - so I would prefer to have only MyRTUmlClass elements there and not every single label inside it (as is the case of RTUmlClassBuilder), because otherwise having access to RTView elements is useless and I must keep reference to correct objects myself.Thanks!Peterp.s.: Is it currently possible to format text? I saw only color, font and size... what about underline/italics/bold?
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev