// (c) MIT 2003.  All rights reserved.

// -*-Mode: Java-*- 
// $Id: WCausalAnnotation.java,v 1.2 2003/03/06 00:40:43 moltmans Exp $
// WCausalAnnotation.java -- 
// Author: Michael Oltmans <moltmans@ai.mit.edu> 
// Created: <Wed Mar  8 17:44:00 2000> 
// Time-stamp: <2000-04-13 15:16:25 moltmans> 
package rec.annotate.widgets;

import rec.sys.*;
import rec.annotate.*;

public class WCausalAnnotation extends Widget
{
  protected Annotation m_a;
  protected Annotation m_b;

  /**
   * A widget representing the fact that event a causes event b.
   **/
  public WCausalAnnotation( Annotation a, Annotation b ) 
  {
    m_a = a;
    m_b = b;
  }

  public void makeDefaultSuitcase( Surface s )
  {
//      DoTransition dt = new DoTransition(s) {
//        public void doDo( )
//        {
//  	m_a.updateNotebook();
//  	m_b.updateNotebook();
//  	m_notebook.addEvent( m_a );
//  	m_notebook.addEvent( m_b );
//  	performAction( m_Surface );

//  	m_annotation.updateNotebook();
//  	DebugWindow.addLine( "Annotations", m_describe );
//  	DebugWindow.addLine( "Annotations", m_annotation.toString() );
//        }

//        public void doUndo( )
//        {
//  	m_annotation.retractUpdate();
//        }

//        public String getAction( )
//        {
//  	return "make a motion annotation";
//        }
//      };
//      addToSuitcase( dt );
  }


  
}
