story.scheherazade.virgil
Class ElementBrowser

java.lang.Object
  extended by story.scheherazade.virgil.ElementBrowser

public class ElementBrowser
extends java.lang.Object

Present a tree of some hierarchy in the Scheherazade KR system. Push user selections of the tree out to the class that invokes the ElementBrowser, via the ElementBrowserNotifier.


Nested Class Summary
 class ElementBrowser.TreeType
           
 
Field Summary
static java.awt.Color bgColor
           
static java.lang.String BROWSE_CARD
           
static java.lang.String CANCEL_CARD
           
static java.awt.Color detailBoxColor
           
static java.awt.Color propertyBoxColor
           
static java.lang.String SEARCH_CARD
           
static java.awt.Color searchBoxColor
           
static java.awt.Color searchPromptColor
           
static java.lang.String WORKING_CARD
           
 
Constructor Summary
ElementBrowser(Virgil virgil, StoryInterpreter story, Verbalizer verbalizer, PlannerRepository planners, TimelineViewer timelineViewer)
          Constructor.
 
Method Summary
 void blank()
          Cover the browser with a blank screen.
 ElementBrowserMode getMode()
          Get the mode of the element browser, if it is currently being invoked.
 ElementBrowserNotifier getNotifier()
           
 javax.swing.JComponent getPanel()
           
 javax.swing.JComponent initialize(TimelineID timeline, boolean inherit)
          Create new JFrames, tree models, etc.
 void invoke(ElementBrowserMode mode, ElementBrowserNotifier notifier, ElementBrowserParams params)
           
 int numSelectableElements()
           
 void redrawDetailBox()
           
 void refresh()
           
 void selectNode(GenericScheherID nodeToSelect, boolean collapseOthers)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BROWSE_CARD

public static final java.lang.String BROWSE_CARD
See Also:
Constant Field Values

SEARCH_CARD

public static final java.lang.String SEARCH_CARD
See Also:
Constant Field Values

CANCEL_CARD

public static final java.lang.String CANCEL_CARD
See Also:
Constant Field Values

WORKING_CARD

public static final java.lang.String WORKING_CARD
See Also:
Constant Field Values

detailBoxColor

public static final java.awt.Color detailBoxColor

bgColor

public static final java.awt.Color bgColor

propertyBoxColor

public static final java.awt.Color propertyBoxColor

searchBoxColor

public static final java.awt.Color searchBoxColor

searchPromptColor

public static final java.awt.Color searchPromptColor
Constructor Detail

ElementBrowser

public ElementBrowser(Virgil virgil,
                      StoryInterpreter story,
                      Verbalizer verbalizer,
                      PlannerRepository planners,
                      TimelineViewer timelineViewer)
               throws Scheherexception
Constructor.

Throws:
Scheherexception
Method Detail

getPanel

public javax.swing.JComponent getPanel()

getMode

public ElementBrowserMode getMode()
Get the mode of the element browser, if it is currently being invoked.


initialize

public javax.swing.JComponent initialize(TimelineID timeline,
                                         boolean inherit)
                                  throws Scheherexception
Create new JFrames, tree models, etc.

Throws:
Scheherexception

invoke

public void invoke(ElementBrowserMode mode,
                   ElementBrowserNotifier notifier,
                   ElementBrowserParams params)
            throws Scheherexception
Throws:
Scheherexception

refresh

public void refresh()
             throws Scheherexception
Throws:
Scheherexception

blank

public void blank()
           throws Scheherexception
Cover the browser with a blank screen. Make the browser dormant until called for.

Throws:
Scheherexception

getNotifier

public ElementBrowserNotifier getNotifier()

selectNode

public void selectNode(GenericScheherID nodeToSelect,
                       boolean collapseOthers)
                throws Scheherexception
Throws:
Scheherexception

numSelectableElements

public int numSelectableElements()
                          throws Scheherexception
Throws:
Scheherexception

redrawDetailBox

public void redrawDetailBox()
                     throws Scheherexception
Throws:
Scheherexception


Copyright © 2011 David K. Elson. All Rights Reserved.