create new tag
, view all tags

GraphLayoutPlugin Discussions

Related topics as described in RelatedTopicsPluginDev can be represented in a graphical manner. One example is Codev.WebDOTPlugin. Another example is this Java applet I found in a long forgotten book sitting in my book shelfs: Hooked on Java, Creating Hot Web Sites with Java Applets, Arthur van Hoff, ISBN:020148837X. It lists a very cool Graph Layout applet which could be extended to show related topics:

(you need a Java enabled browser to see this)

Above graph data is just a mockup but you get the idea.

Now, the applet could be extended to have links, two for each node: A link pointing to the topic and a link to re-center the graph around the selected topic. Example:


The underlined text is the usual hypertext link; the target is the link to re-center the graph; the blue title bar can be used to move the node around the screen.

Anyone interested to take the challenge to implement this? smile

Implementation hints:

  • Get the topic relation from the RelatedTopicsPluginDev.
  • Use an oops template to hold the applet like in the TWikiDrawPlugin
  • The oops template has some plugin specific variables that get expanded to topic relation of the active topic.
  • A new applet parameter needs to be provided for the topic links.
  • The re-center link points simply to the oops template of the selected topic.
  • For the background of the nodes use the web color as a reference.

-- PeterThoeny - 05 Aug 2002

PeterKlausner created something related, a TouchGraphAddOn.

-- PeterThoeny - 10 Oct 2002

Topic attachments
I Attachment History Action Size Date Who Comment
Java source code fileclass Edge.class r1 manage 0.3 K 2002-08-05 - 05:49 PeterThoeny Edge class
Java source code fileclass Graph.class r1 manage 3.0 K 2002-08-05 - 05:47 PeterThoeny Graph class
Java source code filejava Graph.java r1 manage 8.0 K 2002-08-05 - 05:48 PeterThoeny Graph source code
Java source code fileclass GraphPanel.class r1 manage 5.8 K 2002-08-05 - 05:47 PeterThoeny Graph Panel class
Java source code fileclass Node.class r1 manage 0.4 K 2002-08-05 - 05:47 PeterThoeny Node class
Waveform sound fileau computer.au r1 manage 21.2 K 2002-08-05 - 05:48 PeterThoeny Sound file
Waveform sound fileau drip.au r1 manage 0.7 K 2002-08-05 - 05:48 PeterThoeny Sound file
HTMLhtml example1.html r1 manage 0.4 K 2002-08-05 - 05:49 PeterThoeny Example 1
HTMLhtml example2.html r1 manage 0.2 K 2002-08-05 - 06:24 PeterThoeny Example 2
HTMLhtml example3.html r1 manage 0.6 K 2002-08-05 - 06:24 PeterThoeny Example 3
HTMLhtml example4.html r1 manage 0.3 K 2002-08-05 - 06:24 PeterThoeny Example 4
Waveform sound fileau gong.au r1 manage 41.1 K 2002-08-05 - 05:49 PeterThoeny Sound file
GIFgif samplenode.gif r1 manage 1.2 K 2002-08-05 - 06:09 PeterThoeny Sample node with links
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2002-10-10 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.