story.scheherazade.virgil
Class StateViewer

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

public class StateViewer
extends java.lang.Object

A GUI component that gives details about a single state or a transition between two states.


Field Summary
static java.awt.Color actionBoxColor
           
static java.awt.Color backgroundColor
           
static java.awt.Color conditionBoxColor
           
 
Constructor Summary
StateViewer(Virgil virgil, VirgilConfiguration config, Verbalizer verbalizer)
           
 
Method Summary
 boolean canHighlightAction(AssignedAction action)
           
 void forceRefresh()
           
 javax.swing.JComponent getPanel()
           
 TimelineTime getSelectedTime()
           
 TimelineID getSelectedTimeline()
           
 void highlightAction(AssignedAction action)
          Highlight a particular AssignedAction.
 void highlightCondition(AssignedCondition condition)
          Highlight a particular AssignedCondition.
 java.lang.String makeTransitionName(TransitionTime transition)
          Describe a transition in NL.
 void removeAllHighlights()
          Clear all highlights.
 void setStory(StoryInterpreter story)
           
 void setToState(TimelineID timelineID, StateTime state)
           
 void setToTime(TimelineID timelineID, TimelineTime time)
          Switchboard for calling either setToState or setToTransition.
 void setToTransition(TimelineID timelineID, TransitionTime transition)
           
 void showError(Scheherexception s)
           
 void showError(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

backgroundColor

public static final java.awt.Color backgroundColor

conditionBoxColor

public static final java.awt.Color conditionBoxColor

actionBoxColor

public static final java.awt.Color actionBoxColor
Constructor Detail

StateViewer

public StateViewer(Virgil virgil,
                   VirgilConfiguration config,
                   Verbalizer verbalizer)
            throws Scheherexception
Throws:
Scheherexception
Method Detail

setStory

public void setStory(StoryInterpreter story)
              throws Scheherexception
Throws:
Scheherexception

setToTime

public void setToTime(TimelineID timelineID,
                      TimelineTime time)
               throws Scheherexception
Switchboard for calling either setToState or setToTransition.

Throws:
Scheherexception

setToState

public void setToState(TimelineID timelineID,
                       StateTime state)
                throws Scheherexception
Throws:
Scheherexception

getSelectedTimeline

public TimelineID getSelectedTimeline()
                               throws Scheherexception
Throws:
Scheherexception

getSelectedTime

public TimelineTime getSelectedTime()
                             throws Scheherexception
Throws:
Scheherexception

forceRefresh

public void forceRefresh()
                  throws Scheherexception
Throws:
Scheherexception

setToTransition

public void setToTransition(TimelineID timelineID,
                            TransitionTime transition)
                     throws Scheherexception
Throws:
Scheherexception

makeTransitionName

public java.lang.String makeTransitionName(TransitionTime transition)
                                    throws Scheherexception
Describe a transition in NL.

Throws:
Scheherexception

canHighlightAction

public boolean canHighlightAction(AssignedAction action)
                           throws Scheherexception
Throws:
Scheherexception

highlightAction

public void highlightAction(AssignedAction action)
                     throws Scheherexception
Highlight a particular AssignedAction. Throws an exception if the action is not currently being displayed by the StateViewer.

Throws:
Scheherexception

highlightCondition

public void highlightCondition(AssignedCondition condition)
                        throws Scheherexception
Highlight a particular AssignedCondition. Throws an exception if the condition is not currently being displayed by the StateViewer.

Throws:
Scheherexception

removeAllHighlights

public void removeAllHighlights()
Clear all highlights.


getPanel

public javax.swing.JComponent getPanel()

showError

public void showError(Scheherexception s)

showError

public void showError(java.lang.String s)


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