28 |
import org.fenfire.view.View2D; |
import org.fenfire.view.View2D; |
29 |
import org.fenfire.view.NodedView2D; |
import org.fenfire.view.NodedView2D; |
30 |
import org.fenfire.util.Pair; |
import org.fenfire.util.Pair; |
31 |
|
import org.fenfire.util.Triple; |
32 |
import org.nongnu.libvob.*; |
import org.nongnu.libvob.*; |
33 |
import org.nongnu.libvob.impl.DefaultVobMatcher; |
import org.nongnu.libvob.impl.DefaultVobMatcher; |
34 |
import org.nongnu.libvob.buoy.*; |
import org.nongnu.libvob.buoy.*; |
53 |
|
|
54 |
public Object getSize(Object linkId, Object anchor, |
public Object getSize(Object linkId, Object anchor, |
55 |
float wh[]) { |
float wh[]) { |
56 |
Pair p = (Pair)anchor; |
Triple t = (Triple)anchor; |
57 |
Pair q = (Pair)p.second; |
Rectangle rect = (Rectangle)t.second; |
|
Rectangle rect = (Rectangle)q.first; |
|
58 |
wh[0] = rect.width; |
wh[0] = rect.width; |
59 |
wh[1] = rect.height; |
wh[1] = rect.height; |
60 |
return null; |
return null; |
68 |
vs.map.put( eff, into); |
vs.map.put( eff, into); |
69 |
return into; |
return into; |
70 |
} |
} |
71 |
Pair p = (Pair)anchor; |
Triple t = (Triple)anchor; |
72 |
Object plane = p.first; |
Object plane = t.first; |
73 |
|
|
74 |
Pair q = (Pair)p.second; |
Rectangle rect = (Rectangle)t.second; |
75 |
Rectangle rect = (Rectangle)q.first; |
Object node = t.third; // may be null if this |
|
Object node = q.second; // may be null if this |
|
76 |
// is not a noded View2D |
// is not a noded View2D |
77 |
|
|
78 |
float[] tmp = new float[2]; |
float[] tmp = new float[2]; |