Tags:
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:

samplenode.gif

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 Action Size Date Who Comment
Java source code fileclass Edge.class manage 0.3 K 2002-08-05 - 05:49 PeterThoeny Edge class
Java source code fileclass Graph.class manage 3.0 K 2002-08-05 - 05:47 PeterThoeny Graph class
Java source code filejava Graph.java manage 8.0 K 2002-08-05 - 05:48 PeterThoeny Graph source code
Java source code fileclass GraphPanel.class manage 5.8 K 2002-08-05 - 05:47 PeterThoeny Graph Panel class
Java source code fileclass Node.class manage 0.4 K 2002-08-05 - 05:47 PeterThoeny Node class
Waveform sound fileau computer.au manage 21.2 K 2002-08-05 - 05:48 PeterThoeny Sound file
Waveform sound fileau drip.au manage 0.7 K 2002-08-05 - 05:48 PeterThoeny Sound file
HTMLhtml example1.html manage 0.4 K 2002-08-05 - 05:49 PeterThoeny Example 1
HTMLhtml example2.html manage 0.2 K 2002-08-05 - 06:24 PeterThoeny Example 2
HTMLhtml example3.html manage 0.6 K 2002-08-05 - 06:24 PeterThoeny Example 3
HTMLhtml example4.html manage 0.3 K 2002-08-05 - 06:24 PeterThoeny Example 4
Waveform sound fileau gong.au manage 41.1 K 2002-08-05 - 05:49 PeterThoeny Sound file
GIFgif samplenode.gif manage 1.2 K 2002-08-05 - 06:09 PeterThoeny Sample node with links
Topic revision: r3 - 2002-10-10 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.