Package ca.nengo.ui.lib.world

Examples of ca.nengo.ui.lib.world.WorldObject.addChild()


    Text title = new Text(TEXT);
    title.setFont(FONT);

    title.setOffset(PADDING * 1.5, -0.5 * PADDING);
    titleHolder.addChild(title);

    titleHolder.setBounds(0, 0, title.getWidth() + PADDING * 2, title.getHeight());
    return titleHolder;
  }
}
View Full Code Here


            }
    }

    if (probeHolder != null) {
      probeUI.setOffset(0, probeHolder.getHeight() / 2);
      probeHolder.addChild(probeUI);

    } else {
      addChild(probeUI);
    }
  }
View Full Code Here

      if (node != null) {
        ObjectState state = objectStates.get(object);
        WorldObject fParent = state.getFinalParentRef().get();
        if (fParent != null) {

          fParent.addChild(node);
          node.setOffset(state.getFinalOffset());

          try {
            dropNode(node);
          } catch (UserCancelledException e) {
View Full Code Here

        if (target != null) {
          Point2D position = target.globalToLocal(node.localToGlobal(new Point2D.Double(
              0, 0)));

          node.setOffset(position);
          target.addChild(node);
          droppable.justDropped();
        }

      }
    }
View Full Code Here

          WorldObject iParent = state.getInitialParentRef().get();

          if (iParent != null) {

            iParent.addChild(wo);
            wo.setOffset(state.getInitialOffset());

            dropNode(wo);
          }
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.