websphinx.workbench
Class WebOutline

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--symantec.itools.awt.TreeView
                          |
                          +--websphinx.workbench.WebOutline
All Implemented Interfaces:
javax.accessibility.Accessible, CrawlListener, java.awt.image.ImageObserver, LinkListener, java.awt.MenuContainer, java.io.Serializable

public class WebOutline
extends symantec.itools.awt.TreeView
implements CrawlListener, LinkListener


Nested Class Summary
 
Nested classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static java.awt.Image defaultErrorIcon
           
static java.awt.Image defaultLinkIcon
           
static java.awt.Image defaultPageIcon
           
static java.awt.Image defaultRetrievingIcon
           
 
Fields inherited from class symantec.itools.awt.TreeView
CHILD, count, g1, hasFocus, horizontalScrollBar, im1, isSun1_1, LAST, NEXT, redrawTriggered, SEL_CHANGED, treeChanged, verticalScrollBar, viewCount
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
WebOutline()
          Make a WebOutline.
 
Method Summary
 void addLinkViewListener(LinkViewListener listener)
          Add a listener for LinkViewEvents.
 void clear()
          Clear the outline.
 void cleared(CrawlEvent event)
          Notify that the crawler's state was cleared.
 void crawled(LinkEvent event)
          Notify that a crawling event has occured.
 java.awt.Image getIcon(java.lang.String name)
          Get a named icon.
 Link getSelectedLink()
           
 boolean handleEvent(java.awt.Event event)
           
static java.awt.Frame monitor(Crawler crawler)
          Create a new Frame containing a WebOutline connected to a crawler.
 void paused(CrawlEvent event)
          Notify that the crawler is paused
 void removeLinkViewListener(CrawlListener listener)
          Removes a listener from the set of LinkViewEvent listeners.
 void setErrorIcon(java.awt.Image icon)
          Set the default icon used for failed requests.
 void setIcon(java.lang.String name, java.awt.Image icon)
          Map a name to an icon.
 void setLinkIcon(java.awt.Image icon)
          Set the default icon used for links.
 void setPageIcon(java.awt.Image icon)
          Set the default icon used for pages.
 void setRetrievingIcon(java.awt.Image icon)
          Set the default icon used for requests in progress.
 void showControlPanel()
          Show control panel for changing layout parameters.
 void started(CrawlEvent event)
          Notify that the crawler started.
 void stopped(CrawlEvent event)
          Notify that the crawler has stopped.
 void timedOut(CrawlEvent event)
          Notify that the crawler has timed out
 void update(Link link)
          Update the edge and node associated with a link.
 void updateClosure(Link[] links)
          Update all the links that the crawler reached from this link.
 
Methods inherited from class symantec.itools.awt.TreeView
append, changeSelection, drawTree, exists, exists, focusLost, getBgHilite, getCount, getFgHilite, getRootNode, getSelectedNode, getSelectedObjects, getSelectedText, getTreeStructure, getViewCount, gotFocus, insert, keyDown, minimumSize, mouseDown, paint, preferredSize, printTree, redraw, redraw, remove, remove, removeSelected, sendActionEvent, setBgHilite, setFgHilite, setLayout, setTreeStructure, triggerRedraw, update
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, paintComponents, paramString, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyUp, list, list, list, location, lostFocus, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

defaultPageIcon

public static java.awt.Image defaultPageIcon

defaultLinkIcon

public static java.awt.Image defaultLinkIcon

defaultRetrievingIcon

public static java.awt.Image defaultRetrievingIcon

defaultErrorIcon

public static java.awt.Image defaultErrorIcon
Constructor Detail

WebOutline

public WebOutline()
Make a WebOutline.

Method Detail

showControlPanel

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


clear

public void clear()
Clear the outline.

Overrides:
clear in class symantec.itools.awt.TreeView

started

public void started(CrawlEvent event)
Notify that the crawler started.

Specified by:
started in interface CrawlListener

stopped

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

Specified by:
stopped in interface CrawlListener

cleared

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

Specified by:
cleared in interface CrawlListener

timedOut

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

Specified by:
timedOut in interface CrawlListener

paused

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

Specified by:
paused in interface CrawlListener

crawled

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

Specified by:
crawled in interface LinkListener

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 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(java.awt.Event event)
Overrides:
handleEvent in class symantec.itools.awt.TreeView

getSelectedLink

public Link getSelectedLink()

monitor

public static java.awt.Frame monitor(Crawler crawler)
Create a new Frame containing a WebOutline connected to a crawler.


getIcon

public java.awt.Image getIcon(java.lang.String name)
Get a named icon.

Parameters:
name - Name of icon.
Returns:
icon associated with the name, or null if name unknown.

setIcon

public void setIcon(java.lang.String name,
                    java.awt.Image icon)
Map a name to an icon.

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

setPageIcon

public void setPageIcon(java.awt.Image icon)
Set the default icon used for pages.

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

setLinkIcon

public void setLinkIcon(java.awt.Image icon)
Set the default icon used for links.

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

setRetrievingIcon

public void setRetrievingIcon(java.awt.Image icon)
Set the default icon used for requests in progress.

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

setErrorIcon

public void setErrorIcon(java.awt.Image icon)
Set the default icon used for failed requests.

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