/[gzz]/gzz/gzz/view/buoy/BuoyAdaptor.java
ViewVC logotype

Diff of /gzz/gzz/view/buoy/BuoyAdaptor.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by tjl, Tue Feb 4 21:16:31 2003 UTC revision 1.7 by tjl, Wed Feb 5 20:21:05 2003 UTC
# Line 35  public class BuoyAdaptor implements Buoy Line 35  public class BuoyAdaptor implements Buoy
35    
36      // Implement BuoyViewNodeType      // Implement BuoyViewNodeType
37    
38        public Object getSize(Object linkId, Object anchor, float[] wh) {
39            if(anchor instanceof Cell) {
40                Cell c = (Cell)anchor;
41                return getNode(c).getSize(c, null, wh);
42            }
43            throw new Error("Unknown anchor!");
44        }
45    
46    
47      public void renderBuoy(VobScene vs, int into,      public void renderBuoy(VobScene vs, int into,
48                              Object linkId, Object anchor) {                              Object linkId, Object anchor, Object cachedSize) {
49          if(anchor instanceof Cell) {          if(anchor instanceof Cell) {
50              Cell c = (Cell)anchor;              Cell c = (Cell)anchor;
51              getNode(c).renderBuoy(vs, into, c, null);              getNode(c).renderBuoy(vs, into, c, null, cachedSize);
52              return;              return;
53          }          }
54          throw new Error("Unknown anchor!");          throw new Error("Unknown anchor!");

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26