[Views] TreeViews, MatrixView and GraphViews

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Views] TreeViews, MatrixView and GraphViews

Günther Schmidt
Hi all,

AFAIK there are two ready-to-use Views for tree, TreeView and MoenTreeView.

What would you suggest to go about visualizing a Matrix, or a Graph?

Has anybody built views for that purpose?

Günther


I believe, for Matrix at least, there are Morphs in Squeak, but there
are no Morphs in Dolphin.


Reply | Threaded
Open this post in threaded view
|

Re: [Views] TreeViews, MatrixView and GraphViews

Udo Schneider
Günther Schmidt wrote:
> What would you suggest to go about visualizing a Matrix, or a Graph?
I would recommend using GraphViz to layout the graph. I've made good
experiences with WinGraphViz
(http://home.so-net.net.tw/oodtsen/wingraphviz/). WinGraphViz can be
used to create a picture (bitmap or vector) of your nodes. You can then
display this in an ImageView.

If you want to interact with the layouted nodes you have to choose a
different output format (plain text with node coordinates) and implement
the interaction on your own. You could even use the plain text format
only and to the drawing on your own.

Another way I followed was to render the Graph as SVG and display this
using an URLPresenter. I then captured some of the events (like link
clicked and so on) and reacted according to it.

> Has anybody built views for that purpose?
I once did a very rough wrapper doing (part of) the stuff above -
although I have to admit that it seems to be deeply burried somewhere.

CU,

Udo