// (c): Tuomas J. Lukka package gzz.view.buoy; import gzz.view.*; import gzz.vob.*; import gzz.*; /** An interface representing a single node type of the buoy view, based on cells. * This is a convenient interface for plugging in Cell-based nodes into * a BuoyAdapter. */ public interface CellBuoyViewNodeType { /** True if this view "owns" a certain cell. */ boolean ownsCell(Cell c); /** Render this view centered on a given cell. * @param content If not null, an object describing the part of content * that the view should be centered on. Can be ignored. */ void renderBuoy(VobScene vs, int into, Cell c, Object content); BuoyViewMainNode createMainNode(Cell c, Object content, CellPlacementHook hook); }