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 |
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.
Definition at line 25 of file Source.java.
org.hfbk.vis.source.Source.Source | ( | URL | url | ) |
Definition at line 94 of file Source.java.
References org.hfbk.vis.source.Source.getParam(), and org.hfbk.vis.source.Source.graph.
Here is the call graph for this function:
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 Source.java.
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 Source.java.
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 org.hfbk.vis.source.Source.run | ( | ) |
Definition at line 107 of file Source.java.
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 org.hfbk.vis.source.Source.run().
Here is the caller graph for this function:
Definition at line 120 of file Source.java.
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 Source.java.
Referenced by org.hfbk.vis.source.Source.add().
Here is the caller graph for this function:
String org.hfbk.vis.source.Source.baseURL [static] |
Definition at line 28 of file Source.java.
Definition at line 30 of file Source.java.
Referenced by org.hfbk.vis.source.SourceServer.buildGraph(), and org.hfbk.vis.source.SourceClass.buildGraph().
Definition at line 32 of file Source.java.
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().
Definition at line 33 of file Source.java.
Referenced by org.hfbk.vis.ServerManager.getServer(), org.hfbk.vis.visnode.VisLog.renderSelf(), and org.hfbk.vis.source.Source.run().
boolean org.hfbk.vis.source.Source.silent [protected] |
Definition at line 35 of file Source.java.
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] |
String org.hfbk.vis.source.Source.keyword [package] |
Definition at line 39 of file Source.java.
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().