Menu

Improving the look of the graphs

Marc Dohm
2003-09-12
2003-09-17
  • Marc Dohm

    Marc Dohm - 2003-09-12

    Hello,
    I would like to use Royere to visualize graphs, but I'm not very satisfied with the look of the graphs, i.e. the way the nodes and edges are drawn as squares and simple lines. For example, I consider the appearence of the graphs in TouchGraph much nicer.
    How would I get started, if I wanted to change the Royere code in order to "shape up" the look of the graphs? Which are the classes I'd have to modify?
    Possibly, there already exist some (partial) solutions to the problems stated above?

    Thanks, Marc

     
    • yugen

      yugen - 2003-09-17

      > I would like to use Royere to visualize
      > graphs, but I'm not very satisfied with
      > the look of the graphs, i.e. the way the
      > nodes and edges are drawn as squares
      > and simple lines.

      Check out the drawNode() and drawEdge() methods in ElementDrawing.java.  Modifying the shape of ordinary nodes should not be hard.  If you are using metanodes, modifying the shape of an open metanode could be tricky, since CompoundLayout assumes a rectangular region to draw the contained nodes inside the open metanode. 

      Also, please see the "Controlling node appearance" thread (http://sourceforge.net/forum/message.php?msg_id=1580825 and http://sourceforge.net/forum/message.php?msg_id=1581435\) for additional info. 

      For a comparison of GVF/Royere and TouchGraph, check out this thread: http://sourceforge.net/forum/forum.php?thread_id=764009&forum_id=126557 .

       

Log in to post a comment.