edu.washington.cs.supple.example.synthetic
Class BinaryTreeExample

java.lang.Object
  extended byedu.washington.cs.supple.application.AbstractSuppleApplication
      extended byedu.washington.cs.supple.application.SimpleApplication
          extended byedu.washington.cs.supple.example.synthetic.BinaryTreeExample
All Implemented Interfaces:
SuppleApplication

public class BinaryTreeExample
extends SimpleApplication

Generator for a binary tree UI.

Author:
kgajos

Field Summary
protected  java.lang.Object defaultValue
           
protected  int depth
           
 
Constructor Summary
BinaryTreeExample(java.lang.Object defaultValue, int depth)
           
 
Method Summary
static UiObject createBinaryTreeUi(int depth, java.lang.Object defaultValue)
           
 UiObject createUi()
          Create the UI.
 java.lang.String toString()
           
 
Methods inherited from class edu.washington.cs.supple.application.SimpleApplication
createSession, shutdown, start
 
Methods inherited from class edu.washington.cs.supple.application.AbstractSuppleApplication
getDisplayName, getId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

depth

protected int depth

defaultValue

protected java.lang.Object defaultValue
Constructor Detail

BinaryTreeExample

public BinaryTreeExample(java.lang.Object defaultValue,
                         int depth)
Method Detail

createUi

public UiObject createUi()
Description copied from class: SimpleApplication
Create the UI.

Specified by:
createUi in class SimpleApplication
Returns:
the UI for a single session.

toString

public java.lang.String toString()

createBinaryTreeUi

public static UiObject createBinaryTreeUi(int depth,
                                          java.lang.Object defaultValue)