All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class websphinx.workbench.WebGraph

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----websphinx.util.GraphLayout
                           |
                           +----websphinx.workbench.WebGraph

public class WebGraph
extends GraphLayout
implements CrawlListener, LinkListener

Variable Index

 o defaultErrorIcon
 o defaultLinkIcon
 o defaultPageIcon
 o defaultRetrievingIcon

Constructor Index

 o WebGraph()
Make a WebGraph.

Method Index

 o addLinkViewListener(LinkViewListener)
Add a listener for LinkViewEvents.
 o clear()
Clear the graph display.
 o cleared(CrawlEvent)
Notify that the crawler's state was cleared.
 o crawled(LinkEvent)
Notify that a crawling event has occured.
 o getIcon(String)
Get a named icon.
 o getSelectedLink()
 o handleEvent(Event)
 o monitor(Crawler)
Create a new Frame containing a WebGraph connected to a crawler.
 o paused(CrawlEvent)
Notify that the crawler is paused
 o removeLinkViewListener(CrawlListener)
Removes a listener from the set of LinkViewEvent listeners.
 o setErrorIcon(Image)
Set the default icon used for failed requests.
 o setIcon(String, Image)
Map a name to an icon.
 o setLinkIcon(Image)
Set the default icon used for links.
 o setPageIcon(Image)
Set the default icon used for pages.
 o setRetrievingIcon(Image)
Set the default icon used for requests in progress.
 o showControlPanel()
Show control panel for changing graph layout parameters.
 o started(CrawlEvent)
Notify that the crawler started.
 o stopped(CrawlEvent)
Notify that the crawler has stopped.
 o timedOut(CrawlEvent)
Notify that the crawler has timed out
 o update(Link)
Update the edge and node associated with a link.
 o updateClosure(Link[])
Update all the links that the crawler reached from this link.

Variables

 o defaultPageIcon
 public static Image defaultPageIcon
 o defaultLinkIcon
 public static Image defaultLinkIcon
 o defaultRetrievingIcon
 public static Image defaultRetrievingIcon
 o defaultErrorIcon
 public static Image defaultErrorIcon

Constructors

 o WebGraph
 public WebGraph()
Make a WebGraph.

Methods

 o showControlPanel
 public void showControlPanel()
Show control panel for changing graph layout parameters.

Overrides:
showControlPanel in class GraphLayout
 o clear
 public synchronized void clear()
Clear the graph display.

Overrides:
clear in class GraphLayout
 o started
 public void started(CrawlEvent event)
Notify that the crawler started.

 o stopped
 public void stopped(CrawlEvent event)
Notify that the crawler has stopped.

 o cleared
 public void cleared(CrawlEvent event)
Notify that the crawler's state was cleared.

 o timedOut
 public void timedOut(CrawlEvent event)
Notify that the crawler has timed out

 o paused
 public void paused(CrawlEvent event)
Notify that the crawler is paused

 o crawled
 public void crawled(LinkEvent event)
Notify that a crawling event has occured.

 o updateClosure
 public void updateClosure(Link links[])
Update all the links that the crawler reached from this link. Any reachable links not present in the graph are added.

 o update
 public synchronized void update(Link link)
Update the edge and node associated with a link. If the link is not present in the graph, it is added.

 o addLinkViewListener
 public void addLinkViewListener(LinkViewListener listener)
Add a listener for LinkViewEvents. A LinkViewEvent is sent every time a node or edge in the graph is double-clicked.

Parameters:
listener - Object that wants to receive LinkViewEvents
 o removeLinkViewListener
 public void removeLinkViewListener(CrawlListener listener)
Removes a listener from the set of LinkViewEvent listeners. If it is not found in the set, does nothing.

Parameters:
listen - a listener
 o handleEvent
 public boolean handleEvent(Event event)
Overrides:
handleEvent in class GraphLayout
 o getSelectedLink
 public Link getSelectedLink()
 o monitor
 public static Frame monitor(Crawler crawler)
Create a new Frame containing a WebGraph connected to a crawler.

 o getIcon
 public synchronized Image getIcon(String name)
Get a named icon.

Parameters:
name - Name of icon.
Returns:
icon associated with the name, or null if name unknown.
 o setIcon
 public synchronized void setIcon(String name,
                                  Image icon)
Map a name to an icon.

Parameters:
name - Name of icon.
icon - Icon image. If null, mapping is deleted.
 o setPageIcon
 public synchronized void setPageIcon(Image icon)
Set the default icon used for pages.

Parameters:
icon - Icon image. If null, mapping is deleted.
 o setLinkIcon
 public synchronized void setLinkIcon(Image icon)
Set the default icon used for links.

Parameters:
icon - Icon image. If null, mapping is deleted.
 o setRetrievingIcon
 public synchronized void setRetrievingIcon(Image icon)
Set the default icon used for requests in progress.

Parameters:
icon - Icon image. If null, mapping is deleted.
 o setErrorIcon
 public synchronized void setErrorIcon(Image icon)
Set the default icon used for failed requests.

Parameters:
icon - Icon image. If null, mapping is deleted.

All Packages  Class Hierarchy  This Package  Previous  Next  Index