Exemplo n.º 1
0
 public static void addStickyBoundsHandlesTo(PNode aNode, PCamera camera) {
   camera.addChild(new PSWTBoundsHandle(PBoundsLocator.createEastLocator(aNode)));
   camera.addChild(new PSWTBoundsHandle(PBoundsLocator.createWestLocator(aNode)));
   camera.addChild(new PSWTBoundsHandle(PBoundsLocator.createNorthLocator(aNode)));
   camera.addChild(new PSWTBoundsHandle(PBoundsLocator.createSouthLocator(aNode)));
   camera.addChild(new PSWTBoundsHandle(PBoundsLocator.createNorthEastLocator(aNode)));
   camera.addChild(new PSWTBoundsHandle(PBoundsLocator.createNorthWestLocator(aNode)));
   camera.addChild(new PSWTBoundsHandle(PBoundsLocator.createSouthEastLocator(aNode)));
   camera.addChild(new PSWTBoundsHandle(PBoundsLocator.createSouthWestLocator(aNode)));
 }
Exemplo n.º 2
0
 public static void addBoundsHandlesTo(PNode aNode) {
   aNode.addChild(new PSWTBoundsHandle(PBoundsLocator.createEastLocator(aNode)));
   aNode.addChild(new PSWTBoundsHandle(PBoundsLocator.createWestLocator(aNode)));
   aNode.addChild(new PSWTBoundsHandle(PBoundsLocator.createNorthLocator(aNode)));
   aNode.addChild(new PSWTBoundsHandle(PBoundsLocator.createSouthLocator(aNode)));
   aNode.addChild(new PSWTBoundsHandle(PBoundsLocator.createNorthEastLocator(aNode)));
   aNode.addChild(new PSWTBoundsHandle(PBoundsLocator.createNorthWestLocator(aNode)));
   aNode.addChild(new PSWTBoundsHandle(PBoundsLocator.createSouthEastLocator(aNode)));
   aNode.addChild(new PSWTBoundsHandle(PBoundsLocator.createSouthWestLocator(aNode)));
 }