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
-
defaultErrorIcon
-
-
defaultLinkIcon
-
-
defaultPageIcon
-
-
defaultRetrievingIcon
-
-
WebGraph()
- Make a WebGraph.
-
addLinkViewListener(LinkViewListener)
- Add a listener for LinkViewEvents.
-
clear()
- Clear the graph display.
-
cleared(CrawlEvent)
- Notify that the crawler's state was cleared.
-
crawled(LinkEvent)
- Notify that a crawling event has occured.
-
getIcon(String)
- Get a named icon.
-
getSelectedLink()
-
-
handleEvent(Event)
-
-
monitor(Crawler)
- Create a new Frame containing a WebGraph connected to a crawler.
-
paused(CrawlEvent)
- Notify that the crawler is paused
-
removeLinkViewListener(CrawlListener)
- Removes a listener from the set of LinkViewEvent listeners.
-
setErrorIcon(Image)
- Set the default icon used for failed requests.
-
setIcon(String, Image)
- Map a name to an icon.
-
setLinkIcon(Image)
- Set the default icon used for links.
-
setPageIcon(Image)
- Set the default icon used for pages.
-
setRetrievingIcon(Image)
- Set the default icon used for requests in progress.
-
showControlPanel()
- Show control panel for changing graph layout parameters.
-
started(CrawlEvent)
- Notify that the crawler started.
-
stopped(CrawlEvent)
- Notify that the crawler has stopped.
-
timedOut(CrawlEvent)
- Notify that the crawler has timed out
-
update(Link)
- Update the edge and node associated with a link.
-
updateClosure(Link[])
- Update all the links that the crawler reached from this link.
defaultPageIcon
public static Image defaultPageIcon
defaultLinkIcon
public static Image defaultLinkIcon
defaultRetrievingIcon
public static Image defaultRetrievingIcon
defaultErrorIcon
public static Image defaultErrorIcon
WebGraph
public WebGraph()
- Make a WebGraph.
showControlPanel
public void showControlPanel()
- Show control panel for changing graph layout parameters.
- Overrides:
- showControlPanel in class GraphLayout
clear
public synchronized void clear()
- Clear the graph display.
- Overrides:
- clear in class GraphLayout
started
public void started(CrawlEvent event)
- Notify that the crawler started.
stopped
public void stopped(CrawlEvent event)
- Notify that the crawler has stopped.
cleared
public void cleared(CrawlEvent event)
- Notify that the crawler's state was cleared.
timedOut
public void timedOut(CrawlEvent event)
- Notify that the crawler has timed out
paused
public void paused(CrawlEvent event)
- Notify that the crawler is paused
crawled
public void crawled(LinkEvent event)
- Notify that a crawling event has occured.
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.
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.
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
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
handleEvent
public boolean handleEvent(Event event)
- Overrides:
- handleEvent in class GraphLayout
getSelectedLink
public Link getSelectedLink()
monitor
public static Frame monitor(Crawler crawler)
- Create a new Frame containing a WebGraph connected to a crawler.
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.
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.
setPageIcon
public synchronized void setPageIcon(Image icon)
- Set the default icon used for pages.
- Parameters:
- icon - Icon image. If null, mapping is deleted.
setLinkIcon
public synchronized void setLinkIcon(Image icon)
- Set the default icon used for links.
- Parameters:
- icon - Icon image. If null, mapping is deleted.
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.
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