Home

Awesome

GraphViz layout

Layout for Roassal using GraphViz.

Example

someClasses := RTAbstractLine withAllSubclasses.
allMethodCategories := (someClasses flatCollect: #protocols) asSet asArray.
b := RTUMLClassBuilder new.
b lineShape line.
b lineShape color: Color black.
n := RTMultiLinearColorForIdentity new objects: allMethodCategories.
b methodShape color: [ :m | n rtValue: m protocol ].
b methodsNames: [ :cls | cls rtmethods sortedAs: #protocol ].
b addObjects: someClasses.

b layout graphVizDot.

b.

See class-side of RTGraphVizLayout for more examples.

Docs

RTGraphVizLayout new
	timeout: aNumberOfSeconds;
	orthogonalLines;
	on: elements directed: directedEdges undirected: undirectedEdges