// (c): Tuomas J. Lukka package gzz.view.buoy; import gzz.vob.*; /** An interface representing a single node of the buoy view. * This node must keep its own information about cursor location * and handle keystrokes when it is a main view. *

* This interface will be made cloneable later, in order to support * multiple main buoys in one window. */ public interface BuoyViewMainNode { void renderMain(VobScene vs, int into, BuoyLinkListener l); /** A keystroke was not interpreted to the buoy framework and is * passed to this node as the main buoy. */ void keystroke(String s); /** A mouse event was not interpreted to the buoy framework and is * passed to this node as the main buoy. * @return Whether the oldVobScene can be reused. * If true, this call has changed the coordsys parameters * inside oldVobScene and it can be just rendered. * If false, the buoy manager should regenerate the vobscene. */ boolean mouse(MouseEvent e, VobScene oldVobScene); }