281 |
int actr = vs.translateCS(anchorUnit, "TR12", .5f, .5f); |
int actr = vs.translateCS(anchorUnit, "TR12", .5f, .5f); |
282 |
int buoycs = floater.buoyCoordsys(actr, key); |
int buoycs = floater.buoyCoordsys(actr, key); |
283 |
|
|
284 |
/* |
|
285 |
final int nadir_buoy = |
final int nadir_buoy = |
286 |
((GLVobCoorder)vs.coords).nadirOrigin(buoycs, nadir_point_cs); |
((GLVobCoorder)vs.coords).nadirOrigin(buoycs, nadir_point_cs); |
287 |
vs.matcher.add(nadir_buoy, "NADIR"); |
vs.matcher.add(nadir_buoy, "NADIR"+c.toString() ); |
|
*/ |
|
288 |
//vs.matcher.add(nadir_buoy, new Pair(c, connectedFrom)); |
//vs.matcher.add(nadir_buoy, new Pair(c, connectedFrom)); |
289 |
|
|
290 |
|
//final int frameCS = vs.orthoBoxCS(buoycs, "frame", 0, |
291 |
final int frameCS = vs.orthoBoxCS(buoycs, "frame", 0, |
final int frameCS = vs.orthoBoxCS(nadir_buoy, "frame", 0, |
292 |
-buoyVPWidth/2, -buoyVPHeight/2, 1, 1, |
-buoyVPWidth/2, -buoyVPHeight/2, 1, 1, |
293 |
buoyVPWidth, buoyVPHeight); |
buoyVPWidth, buoyVPHeight); |
294 |
vs.activate(frameCS); |
vs.activate(frameCS); |
295 |
ev_handler.onClick(frameCS, "Link CLICK", |
ev_handler.onClick(frameCS, "Link CLICK", |
296 |
new Object[]{ c, connectedFrom}); |
new Object[]{ c, connectedFrom, new Integer(anchor), new Integer(frameCS)}); |
297 |
ev_handler.onDrag(frameCS, "Drag buoy"); |
ev_handler.onDrag(frameCS, "Drag buoy"); |
298 |
|
|
299 |
// XXX Pan |
// XXX Pan |
515 |
fr = vs.orthoBoxCS(ctr, "frame", 100, |
fr = vs.orthoBoxCS(ctr, "frame", 100, |
516 |
-leftPanelRealWidth/2, -leftPanelRealHeight/2, |
-leftPanelRealWidth/2, -leftPanelRealHeight/2, |
517 |
1, 1, leftPanelRealWidth, leftPanelRealHeight); |
1, 1, leftPanelRealWidth, leftPanelRealHeight); |
518 |
|
vs.matcher.add(ctr, "ctrl_home"); |
519 |
} |
} |
520 |
else { |
else { |
521 |
fr = cs_gen.getNextCS(); |
fr = cs_gen.getNextCS(); |
522 |
} |
} |
523 |
|
|
524 |
|
|
525 |
vs.matcher.add(fr, p); |
//vs.matcher.add(fr, p); |
526 |
vs.activate(fr); |
vs.activate(fr); |
527 |
ev_handler.onClick(fr, "Shortcut link", new Object[]{p}); |
ev_handler.onClick(fr, "Shortcut link", new Object[]{p, new Integer(fr)}); |
528 |
|
|
529 |
|
|
530 |
int c2f = vs.coords.ortho(0, 11, 0, 0, |
int c2f = vs.coords.ortho(0, 11, 0, 0, |