dasher.applet
Interface JDasherHost

All Known Implementing Classes:
JDasherApplet

public interface JDasherHost

Capabilities required of anything which contains a Dasher control. This provides decoupling between the Applet and the core, so that Dasher can be integrated into any Java app.


Method Summary
 void handleEvent(CEvent event)
          Passes an event to the host; the host need not do anything if it doesn't want to.
 void Redraw()
          Should trigger a redraw of Dasher by any means necessary.
 void regMouseMotionListener(java.awt.event.MouseMotionListener e)
          Register ourselves to receive mouse motion events from the host.
 

Method Detail

Redraw

void Redraw()
Should trigger a redraw of Dasher by any means necessary.

This may mean simply calling Dasher.Draw if no user interface setup is necessary.

Under Swing this typically means starting a top-level repaint.


regMouseMotionListener

void regMouseMotionListener(java.awt.event.MouseMotionListener e)
Register ourselves to receive mouse motion events from the host.

The host should either register the submitted object as a MouseMotionListener or supply its own events by some other means.

Parameters:
e - Listener to add

handleEvent

void handleEvent(CEvent event)
Passes an event to the host; the host need not do anything if it doesn't want to.

At present, all events are passed up.

Parameters:
event - Event being passed