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!"); |