Menu

Controlling node appearance

yugen
2002-05-28
2002-05-29
  • yugen

    yugen - 2002-05-28

    In reply to http://sourceforge.net/forum/message.php?msg_id=1580385 :

    > I want influence the appearence of the nodes.
    > Are there any
    > framework-mechanisms provided for changing
    > their outlook?

    You can control node appearance in two ways: size and color. 

    See http://sourceforge.net/forum/forum.php?thread_id=654582&forum_id=126557 for a description of the "colour" command.

    See http://sourceforge.net/forum/forum.php?thread_id=650310&forum_id=126557 for a description of the "resize" command.  You can also use the node size slider on the right-hand side of the panel. 

     
    • yugen

      yugen - 2002-05-29

      If you want to change a node's shape (e.g., to make nodes round instead of square), have a look at ElementDrawing.java, in particular the drawNode() method.  This is where you would substitute your own logic into the code.

       

Log in to post a comment.