edu.indiana.iucbrf.ccbr.conversationblock.selector.flowchart
Class FlowChart

java.lang.Object
  extended by edu.indiana.iucbrf.ccbr.conversationblock.selector.flowchart.FlowChart
All Implemented Interfaces:
SwingRepresentableWithDomain, SwingRepresentable, java.io.Serializable

public class FlowChart
extends java.lang.Object
implements java.io.Serializable, SwingRepresentableWithDomain

A FlowChart is one means of specifying when to present conversation blocks. Via a FlowChart, blocks can be presented conditional on earlier questions and the given responses. It is currently assumed that all FlowChart questions have FSMFeature-typed answers.

See Also:
Serialized Form

Nested Class Summary
 class FlowChart.NodeUserObject
          A container to put in the JTree node, used in toSwing().
 
Field Summary
 
Fields inherited from interface edu.indiana.util.swing.SwingRepresentable
TITLE_FONT
 
Constructor Summary
protected FlowChart()
           
  FlowChart(FlowChartNode root)
          Creates a new instance of FlowChart
 
Method Summary
 java.lang.String getFilename()
          Get the filename where this flow chart is stored.
 FlowChartNode getRoot()
           
 java.lang.String getTitle()
           
 void setFilename(java.lang.String filename)
          Recommended extension: .flo
 void setTitle(java.lang.String title)
          Set the title of this flow chart.
 javax.swing.JComponent toSwing(Domain domain)
          Returns a tree representation of this flowchart.
 javax.swing.JComponent toSwing(int detailLevel)
          Detail level may be ignored by implementations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowChart

protected FlowChart()

FlowChart

public FlowChart(FlowChartNode root)
Creates a new instance of FlowChart

Method Detail

setTitle

public void setTitle(java.lang.String title)
Set the title of this flow chart.


getTitle

public java.lang.String getTitle()

setFilename

public void setFilename(java.lang.String filename)
Recommended extension: .flo


getFilename

public java.lang.String getFilename()
Get the filename where this flow chart is stored.


getRoot

public FlowChartNode getRoot()

toSwing

public javax.swing.JComponent toSwing(Domain domain)
Returns a tree representation of this flowchart. This is a temporary solution, insufficient for non-tree flow charts.

Specified by:
toSwing in interface SwingRepresentableWithDomain

toSwing

public javax.swing.JComponent toSwing(int detailLevel)
Description copied from interface: SwingRepresentable
Detail level may be ignored by implementations. If used, the standard is for detailLevel 0 to be least detail, with higher values growing more detailed. 0 is least detail, higher numbers are more

Specified by:
toSwing in interface SwingRepresentable