story.scheherazade.virgil
Class ElementBrowser
java.lang.Object
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.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ElementBrowser
public ElementBrowser(Virgil virgil,
StoryInterpreter story,
Verbalizer verbalizer,
PlannerRepository planners,
TimelineViewer timelineViewer)
throws Scheherexception
- Constructor.
- Throws:
Scheherexception
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.