edu.berkeley.guir.papier_mache
Class PapierMache

java.lang.Object
  extended by edu.berkeley.guir.papier_mache.PapierMache

public class PapierMache
extends java.lang.Object

This software is distributed under the Berkeley Software License.

Author:
Scott Klemmer ( srk(AT)cs.berkeley.edu )

Nested Class Summary
static interface PapierMache.CleanupTask
           
static class PapierMache.PhobSelectionEvent
           
static interface PapierMache.PhobSelectionListener
           
static class PapierMache.PMacheContentPane
          A JPanel that auto-resizes itself (and repacks the frame) to be big enough to fit all of the components.
 
Method Summary
static void addCleanupTask(PapierMache.CleanupTask task)
          Any desired cleaning up or freeing of resources should add a new CleanupTask whose cleanUp() method will perform these tasks.
static void addPhobSelectionListener(PapierMache.PhobSelectionListener psl)
           
static javax.swing.Icon createIconFromImageFile(java.lang.String filename)
          Creates an icon with an image from the given filename.
static void firePhobSelectionEvent(PapierMache.PhobSelectionEvent phobEvent)
           
static AssociationTreeTable getAssociationTree()
           
static PMacheStatePanel getStatePanel()
           
static javax.swing.JFrame getSystemDisplayFrame()
           
static PapierMache.PMacheContentPane getSystemDisplayPanel()
           
static void removePhobSelectionListener(PapierMache.PhobSelectionListener psl)
           
static void setAssociationTree(AssociationTreeTable assocTree)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addCleanupTask

public static void addCleanupTask(PapierMache.CleanupTask task)
Any desired cleaning up or freeing of resources should add a new CleanupTask whose cleanUp() method will perform these tasks.


getSystemDisplayFrame

public static javax.swing.JFrame getSystemDisplayFrame()

getSystemDisplayPanel

public static PapierMache.PMacheContentPane getSystemDisplayPanel()

getStatePanel

public static PMacheStatePanel getStatePanel()
Returns:
the panel displaying the current phob tree

setAssociationTree

public static void setAssociationTree(AssociationTreeTable assocTree)

getAssociationTree

public static AssociationTreeTable getAssociationTree()

addPhobSelectionListener

public static void addPhobSelectionListener(PapierMache.PhobSelectionListener psl)

removePhobSelectionListener

public static void removePhobSelectionListener(PapierMache.PhobSelectionListener psl)

firePhobSelectionEvent

public static void firePhobSelectionEvent(PapierMache.PhobSelectionEvent phobEvent)

createIconFromImageFile

public static javax.swing.Icon createIconFromImageFile(java.lang.String filename)
Creates an icon with an image from the given filename. The file is assumed to be in the same directory as this class.