[Seaside] Re: Mondrian in Squeak?
renggli at gmail.com
Tue Dec 18 06:16:00 UTC 2007
> Great! Any example (or hint) on how to build up the graph for
> MOViewer newOn: aGraph?
> e.g. what is the rough equivalent of this original Mondrian code?
> view := ViewRenderer new.
> view nodes: model classes
> using: (Rectangle withBorder width: #NOA; height: #NOM; liniarColor:
> #LOC within: model classes).
> view edges: model inheritances
> using: (Line from: #superclass to: #subclass).
> view layout: TreeLayout new.
> view open.
Have a look at the examples on the class-side of MOPainting, I don't
exactly remember how it worked. The example #createSystemComplexityOf:
does essentially what you ask for, plus some more things ...
More information about the seaside