I think the following would be the start of a good example of how
Roassal works...
| view rawView el1 el2 edge line |
rawView := ROView new.
el1 := ROElement new.
el1 extent: 50@50.
el1 + ROBox red + ROCircle yellow + ROLabel @ RODraggable.
rawView add: el1.
rawView open
...except that it would be nice if the ROLabel could be centred.
In addition, being able to place the ROLabel in various "offset"
locations, I think that would satisfy a lot of my composition
requirements - for example building a transformer compound symbol with
two overlapping circles and two labels for "equipment tag" and "power
size". To that effect it would be great if ROLabel or similar could
have a callback mechanism to get different attributes from the model.
Alternatively I guess I could make a new subclass of ROShape that draws
such that directly.
cheers -ben