Menu

Using the label as vertices

2007-12-12
2013-05-29
  • minieymousee

    minieymousee - 2007-12-12

    Hi..

    Rather than draw a vertex to show the data in my graph, is it possible if i use its label? Such as in http://www.visualthesaurus.com/

    I knew that the vertices can be replaced by icons but can it be replaced with its own label? Hope somebody have an idea..

    Thank in advance..
    Amy

     
    • Tom Nelson

      Tom Nelson - 2007-12-12

      Have you looked at our demos, particularly the 6th one on
      this page: http://jung.sourceforge.net/applet/index.html

      Tom Nelson

       
    • minieymousee

      minieymousee - 2007-12-27

      Hi Tom..

      Thanks for the reply. I have already run the demos. Superb!
      But can i just use the label as the vertex without the rectangle as the bound?
      Any idea? Ive run through the classes used but no help. Im not an expert in java though.
      Hope anyone can help..

      Thanks in advance..
      Amy

       
      • Tom Nelson

        Tom Nelson - 2007-12-27

        you could make the label background the same color as
        the graph background, then the label bounds would not show.
        If you want to have the vertex actually be the text
        (like having the edge arrows follow the character shapes
        instead of the label bounds) there is no built-in support
        for that.

        Tom Nelson

         
    • minieymousee

      minieymousee - 2007-12-28

      Hello Tom..

      Thanks for the reply. Really appreciate it.

      Regards
      Amy

       

Log in to post a comment.