On Sun, Sep 11, 2016 at 02:10:25PM -0700, Fuhrmanator wrote:
I'd like my visualizations showing inheritance to be UML-like. That is, I'd like arrow heads to be empty. I found some classes (RTEmptyArrowHead, etc.) and thought they might be the answer. However, I can't get it to work in the following code. Do those classes work?
Hi,
use can use `#head:` for `arrowedLine`, or `#headStart:`/`#headEnd` for `doubleArrowedLine`.
Note that you are `connect(ing)From: #superclass`, so you would have to reverse it if you want to use the `arrowedLine` (because the line points to the subclass), or use the `doubleArrowedLine`.
E.g.
| b | b := RTMondrian new. b shape circle size: 3. b nodes: RTShape withAllSubclasses.
"b shape arrowedLine withShorterDistanceAttachPoint; head: RTEmptyNarrowArrow asHead."
"or"
b shape doubleArrowedLine withShorterDistanceAttachPoint; headStart: RTEmptyNarrowArrow asHead; headEnd: RTNoShape new.
b edges connectFrom: #superclass.
b layout forceWithCharge: -500. b build. ^ b view
Peter
I'm using Moose suite 6.0 on Windows 10.
| b line | b := RTMondrian new. b shape circle size: 3. b nodes: RTShape withAllSubclasses.
"b shape arrowedLine withShorterDistanceAttachPoint." line := RTEmptyArrow new. b shape line withShorterDistanceAttachPoint.
b edgesFrom: #superclass. b layout forceWithCharge: -500. b build. ^ b view
http://forum.world.st/file/n4915133/RTEmptyArrowAttempt.png
-- View this message in context: http://forum.world.st/Changing-arrow-head-types-in-RTMondrian-tp4915133.html Sent from the Moose mailing list archive at Nabble.com. _______________________________________________ Moose-dev mailing list Moose-dev@list.inf.unibe.ch https://www.list.inf.unibe.ch/listinfo/moose-dev