5354555657585960616263
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; } }
425426427428429430431432433434435
} } if (probeHolder != null) { probeUI.setOffset(0, probeHolder.getHeight() / 2); probeHolder.addChild(probeUI); } else { addChild(probeUI); } }
9293949596979899100101102
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) {
143144145146147148149150151152153
if (target != null) { Point2D position = target.globalToLocal(node.localToGlobal(new Point2D.Double( 0, 0))); node.setOffset(position); target.addChild(node); droppable.justDropped(); } } }
163164165166167168169170171172173
WorldObject iParent = state.getInitialParentRef().get(); if (iParent != null) { iParent.addChild(wo); wo.setOffset(state.getInitialOffset()); dropNode(wo); } }