//
// Auto-generated using JActiveX.EXE 5.00.2918
//   ("D:\Program Files\Microsoft Visual Studio\VJ98\jactivex.exe" /wfc  /w /xi /X:rkc /l "C:\WINNT\Profiles\ADMINI~1\LOCALS~1\Temp\jvc1F.tmp" /nologo /d "C:\msj\new\jrotview" "C:\WINNT\System32\danim.dll")
//
// WARNING: Do not remove the comments that include "@com" directives.
// This source file must be compiled by a @com-aware compiler.
// If you are using the Microsoft Visual J++ compiler, you must use
// version 1.02.3920 or later. Previous versions will not issue an error
// but will not generate COM-enabled class files.
//

package danim.DAViewerControlWindowed;

import com.ms.com.*;
import com.ms.com.IUnknown;
import com.ms.com.Variant;

// Dispatch-only interface DAViewerControlWindowedEventMulticaster
class DAViewerControlWindowedEventMulticaster implements danim._IDAViewerControlEvents, com.ms.com.NoAutoScripting, com.ms.com.NoAutoMarshaling
{
  danim.DAViewerControlWindowed.DAViewerControlWindowed _jcom_parent;

  DAViewerControlWindowedEventMulticaster( danim.DAViewerControlWindowed.DAViewerControlWindowed _jcom_parent )
  {
     this._jcom_parent = _jcom_parent;
  }

  public void Start()
  {
     if( _jcom_parent.onStart != null) {
        _jcom_parent.onStart.invoke( _jcom_parent, com.ms.wfc.core.Event.EMPTY );
     }
  }


  public void MouseUp(int button, int KeyFlags, int X, int Y)
  {
     if( _jcom_parent.onMouseUp != null) {
        _jcom_parent.onMouseUp.invoke( _jcom_parent, new danim.DAViewerControlWindowed.MouseUpEvent( button, KeyFlags, X, Y ) );
     }
  }


  public void MouseDown(int button, int KeyFlags, int X, int Y)
  {
     if( _jcom_parent.onMouseDown != null) {
        _jcom_parent.onMouseDown.invoke( _jcom_parent, new danim.DAViewerControlWindowed.MouseDownEvent( button, KeyFlags, X, Y ) );
     }
  }


  public void MouseMove(int button, int KeyFlags, int X, int Y)
  {
     if( _jcom_parent.onMouseMove != null) {
        _jcom_parent.onMouseMove.invoke( _jcom_parent, new danim.DAViewerControlWindowed.MouseMoveEvent( button, KeyFlags, X, Y ) );
     }
  }


  public void Click()
  {
     if( _jcom_parent.onClick != null) {
        _jcom_parent.onClick.invoke( _jcom_parent, com.ms.wfc.core.Event.EMPTY );
     }
  }


  public void KeyPress(int KeyAscii)
  {
     if( _jcom_parent.onKeyPress != null) {
        _jcom_parent.onKeyPress.invoke( _jcom_parent, new danim.DAViewerControlWindowed.KeyPressEvent( KeyAscii ) );
     }
  }


  public void KeyUp(int KeyCode, int KeyData)
  {
     if( _jcom_parent.onKeyUp != null) {
        _jcom_parent.onKeyUp.invoke( _jcom_parent, new danim.DAViewerControlWindowed.KeyUpEvent( KeyCode, KeyData ) );
     }
  }


  public void KeyDown(int KeyCode, int KeyData)
  {
     if( _jcom_parent.onKeyDown != null) {
        _jcom_parent.onKeyDown.invoke( _jcom_parent, new danim.DAViewerControlWindowed.KeyDownEvent( KeyCode, KeyData ) );
     }
  }


  public void Error(int HResult, String ErrorString)
  {
     if( _jcom_parent.onError != null) {
        _jcom_parent.onError.invoke( _jcom_parent, new danim.DAViewerControlWindowed.ErrorEvent( HResult, ErrorString ) );
     }
  }


  public void Stop()
  {
     if( _jcom_parent.onStop != null) {
        _jcom_parent.onStop.invoke( _jcom_parent, com.ms.wfc.core.Event.EMPTY );
     }
  }


  public void Pause()
  {
     if( _jcom_parent.onPause != null) {
        _jcom_parent.onPause.invoke( _jcom_parent, com.ms.wfc.core.Event.EMPTY );
     }
  }


  public void Resume()
  {
     if( _jcom_parent.onResume != null) {
        _jcom_parent.onResume.invoke( _jcom_parent, com.ms.wfc.core.Event.EMPTY );
     }
  }


}
