story.scheherazade.virgil
Class Definer

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

public class Definer
extends java.lang.Object

A Definer has two. One is a browser of currently defined elements, and the other is a PredicateSelector for defining new elements. It works over several types as given by DefinerMode.


Field Summary
static java.awt.Color addPropertyColor
           
 
Constructor Summary
Definer(Virgil virgil, StoryInterpreter story, Verbalizer verbalizer, PlannerRepository planners, DefinerMode mode, TimelineViewer timelineViewer, TimelineID timeline, boolean inherit)
           
 
Method Summary
 javax.swing.JComponent getPanel()
           
 void initializeAddPropertySelector(GenericScheherID ID)
          Initialize the predicate selector to add a property to a defined element
 void initializeEditDefinitionSelector(GenericScheherID ID)
          Initialize the predicate selector to edit extant definitions.
 void initializeNewDefinitionSelector()
          Initialize the predicate selector to create new definitions.
 void refresh()
           
 void setBackground(java.awt.Color color)
           
 void updateBrowser()
          Update the currently-defined-element browser.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

addPropertyColor

public static final java.awt.Color addPropertyColor
Constructor Detail

Definer

public Definer(Virgil virgil,
               StoryInterpreter story,
               Verbalizer verbalizer,
               PlannerRepository planners,
               DefinerMode mode,
               TimelineViewer timelineViewer,
               TimelineID timeline,
               boolean inherit)
        throws Scheherexception
Throws:
Scheherexception
Method Detail

setBackground

public void setBackground(java.awt.Color color)

initializeNewDefinitionSelector

public void initializeNewDefinitionSelector()
                                     throws Scheherexception
Initialize the predicate selector to create new definitions.

Throws:
Scheherexception

initializeEditDefinitionSelector

public void initializeEditDefinitionSelector(GenericScheherID ID)
                                      throws Scheherexception
Initialize the predicate selector to edit extant definitions.

Throws:
Scheherexception

initializeAddPropertySelector

public void initializeAddPropertySelector(GenericScheherID ID)
                                   throws Scheherexception
Initialize the predicate selector to add a property to a defined element

Throws:
Scheherexception

updateBrowser

public void updateBrowser()
                   throws Scheherexception
Update the currently-defined-element browser.

Throws:
Scheherexception

getPanel

public javax.swing.JComponent getPanel()

refresh

public void refresh()
             throws Scheherexception
Throws:
Scheherexception


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