gzz.view.buoy
Interface BuoyViewNodeType

gzz.view.buoy.CellBuoyViewLinker gzz.view.buoy.BuoyViewNodeType gzz.view.buoy.BuoyViewMainNode gzz.view.buoy.ScrollblockCellLinker ../../../../pegboard/buoydesign--tjl/peg.gen.html#PageSpanSemiPluggableBuoyNodes PageSpanSemiPluggableBuoyNodes_small gzz.view.buoy.BuoyViewNodeType gzz.view.buoy.BuoyViewMainNode gzz.view.buoy.BuoyLinkListener gzz.view.buoy.BuoyAdaptor BuoyAdaptor.LinkAdaptor gzz.view.CellPlacementHook gzz.view.buoy.CellBuoyViewNodeType gzz.view.buoy.CellBuoyViewLinker ../../../../pegboard/buoydesign--tjl/peg.gen.html#SemiPluggableBuoys SemiPluggableBuoys_small gzz.view.buoy.BuoyLinkListener gzz.view.buoy.BuoyViewMainNode gzz.view.buoy.BuoyViewNodeType ../../../../pegboard/buoydesign--tjl/peg.gen.html#BuoyManagerBasic BuoyManagerBasic_small
All Known Implementing Classes:
BuoyAdaptor

public interface BuoyViewNodeType

An interface representing a single node of the buoy view.


Method Summary
 BuoyViewMainNode createMainNode(java.lang.Object linkId, java.lang.Object anchor, BuoyLinkListener l)
          Focus was set to the buoy -- create an object that knows the user interface and motion in that space.
 java.lang.Object getSize(java.lang.Object linkId, java.lang.Object anchor, float[] wh)
          Get the ideal size for this buoy.
 int renderBuoy(VobScene vs, int into, java.lang.Object linkId, java.lang.Object anchor, java.lang.Object cachedSize)
          Render portion of the view relevant to linkId and anchor into the given box.
 

Method Detail

getSize

public java.lang.Object getSize(java.lang.Object linkId,
                                java.lang.Object anchor,
                                float[] wh)
Get the ideal size for this buoy.

Returns:
An object that, if passed to renderBuoy, may help performance a little.

renderBuoy

public int renderBuoy(VobScene vs,
                      int into,
                      java.lang.Object linkId,
                      java.lang.Object anchor,
                      java.lang.Object cachedSize)
Render portion of the view relevant to linkId and anchor into the given box. This should not have any side effects, beyond e.g. beginning to load images. The box should be filled completely because it will be used for sensing mouse clicks to this buoy (XXX kludge! Will change later)

Returns:
The coordinate system of the anchor

createMainNode

public BuoyViewMainNode createMainNode(java.lang.Object linkId,
                                       java.lang.Object anchor,
                                       BuoyLinkListener l)
Focus was set to the buoy -- create an object that knows the user interface and motion in that space. The object will use the given BuoyLinkListener to call back when it is rendered and there are buoys that should be rendered.