org.hfbk.vis.source.Source Class Reference

Inheritance diagram for org.hfbk.vis.source.Source:

Inheritance graph
Collaboration diagram for org.hfbk.vis.source.Source:

Collaboration graph
List of all members.

Public Member Functions

 Source (URL url)
void run ()

Static Public Member Functions

static Source getSource (String url)

Public Attributes

URL url
Graph graph
boolean finished

Static Public Attributes

static String baseURL

Protected Attributes

boolean silent

Package Functions

abstract void buildGraph () throws IOException
Node add (String text, String type, Node parent)
int getId (String text, String type)

Static Package Functions

static String getParam (URL url, String param)

Package Attributes

int edgecount
String keyword

Detailed Description

An abstract Source that creates some Graph in the background.

Subclasses usually fetches some data from web and parses it to some Graph for visualisation.

An useful skeleton is the SourceRegExp which uses a regular expression to do so.

See also:

Definition at line 25 of file

Constructor & Destructor Documentation

org.hfbk.vis.source.Source.Source ( URL  url  ) 

Definition at line 94 of file

References org.hfbk.vis.source.Source.getParam(), and org.hfbk.vis.source.Source.graph.

Here is the call graph for this function:

Member Function Documentation

static Source org.hfbk.vis.source.Source.getSource ( String  url  )  [static]

Finding Sources by given url

the given URL is evaluated for source=... query and a Source of apropriate class is instantiated.

If no matching class is found, null is returned.

If a matching class is found, but the factory constructor signature (URL) is not found, an exception "Source: No valid public constructor at class CLASS" is thrown to encourage the implementation of an apropriate constructor.

Definition at line 54 of file

References org.hfbk.vis.source.Source.getParam().

Referenced by org.hfbk.vis.visnode.VisLog.fetch().

Here is the call graph for this function:

Here is the caller graph for this function:

static String org.hfbk.vis.source.Source.getParam ( URL  url,
String  param 
) [static, package]

Definition at line 81 of file

Referenced by org.hfbk.vis.source.SourceClass.buildGraph(), org.hfbk.vis.source.Source.getSource(), org.hfbk.vis.source.Source.Source(), org.hfbk.vis.source.SourceGoogleImages.SourceGoogleImages(), org.hfbk.vis.source.SourceYoutube.SourceYoutube(), org.hfbk.vis.source.SourceYoutube.url(), and org.hfbk.vis.source.SourceGoogleImages.url().

Here is the caller graph for this function:

void (  ) 

Definition at line 107 of file

References org.hfbk.vis.source.Source.buildGraph(), and org.hfbk.vis.source.Source.finished.

Referenced by org.hfbk.vis.source.SourceYoutube.parse().

Here is the call graph for this function:

Here is the caller graph for this function:

abstract void org.hfbk.vis.source.Source.buildGraph (  )  throws IOException [package, pure virtual]

Implemented in org.hfbk.vis.source.SourceClass, org.hfbk.vis.source.SourceRegExp, org.hfbk.vis.source.SourceServer, org.hfbk.vis.source.SourceWikipedia, and org.hfbk.vis.source.SourceYoutube.

Referenced by

Here is the caller graph for this function:

Node org.hfbk.vis.source.Source.add ( String  text,
String  type,
Node  parent 
) [package]

Definition at line 120 of file

References org.dronus.graph.Graph.addEdge(), org.dronus.graph.Graph.addNode(), org.hfbk.vis.source.Source.edgecount, org.dronus.graph.Graph.findNode(), org.hfbk.vis.source.Source.getId(), and org.hfbk.vis.source.Source.graph.

Referenced by org.hfbk.vis.source.SourceWikipedia.buildGraph(), org.hfbk.vis.source.SourceClass.buildGraph(), org.hfbk.vis.source.SourceYoutube.parse(), org.hfbk.vis.source.SourceGoogleImages.parse(), org.hfbk.vis.source.SourceGoogle.parse(), org.hfbk.vis.source.SourceGoogle.SourceGoogle(), org.hfbk.vis.source.SourceGoogleImages.SourceGoogleImages(), org.hfbk.vis.source.SourceWikipedia.SourceWikipedia(), and org.hfbk.vis.source.SourceYoutube.SourceYoutube().

Here is the call graph for this function:

Here is the caller graph for this function:

int org.hfbk.vis.source.Source.getId ( String  text,
String  type 
) [package]

Definition at line 135 of file

Referenced by org.hfbk.vis.source.Source.add().

Here is the caller graph for this function:

Member Data Documentation

String org.hfbk.vis.source.Source.baseURL [static]

Definition at line 28 of file

URL org.hfbk.vis.source.Source.url

Definition at line 30 of file

Referenced by org.hfbk.vis.source.SourceServer.buildGraph(), and org.hfbk.vis.source.SourceClass.buildGraph().

Graph org.hfbk.vis.source.Source.graph

Definition at line 32 of file

Referenced by org.hfbk.vis.source.Source.add(), org.hfbk.vis.source.SourceServer.buildGraph(), org.hfbk.vis.source.SourceClass.buildGraph(), org.hfbk.vis.VisServer.handleSourceRequest(), org.hfbk.vis.source.SourceYoutube.parse(), org.hfbk.vis.visnode.VisLog.renderSelf(), org.hfbk.vis.source.Source.Source(), and org.hfbk.util.Updater.update().

boolean org.hfbk.vis.source.Source.finished

Definition at line 33 of file

Referenced by org.hfbk.vis.ServerManager.getServer(), org.hfbk.vis.visnode.VisLog.renderSelf(), and

boolean org.hfbk.vis.source.Source.silent [protected]

Definition at line 35 of file

Referenced by org.hfbk.vis.source.SourceWikipedia.buildGraph(), org.hfbk.vis.source.SourceServer.buildGraph(), org.hfbk.vis.source.SourceRegExp.buildGraph(), and org.hfbk.vis.source.SourceYoutube.parse().

int org.hfbk.vis.source.Source.edgecount [package]

Definition at line 37 of file

Referenced by org.hfbk.vis.source.Source.add().

String org.hfbk.vis.source.Source.keyword [package]

Definition at line 39 of file

Referenced by org.hfbk.vis.source.SourceClass.buildGraph(), org.hfbk.vis.source.SourceGoogle.SourceGoogle(), org.hfbk.vis.source.SourceGoogleImages.SourceGoogleImages(), org.hfbk.vis.source.SourceWikipedia.SourceWikipedia(), org.hfbk.vis.source.SourceYoutube.SourceYoutube(), org.hfbk.vis.source.SourceYoutube.url(), org.hfbk.vis.source.SourceWikipedia.url(), org.hfbk.vis.source.SourceGoogleImages.url(), and org.hfbk.vis.source.SourceGoogle.url().

The documentation for this class was generated from the following file:
Generated on Tue Apr 7 17:58:42 2009 for visclient by  doxygen 1.5.1