Example #1
0
  public void undecorateSelectedNode(WorldObjectImpl node) {

    Object frame = node.getPiccolo().getAttribute(SELECTION_HANDLER_FRAME_ATTR);
    if (frame != null && frame instanceof SelectionBorder) {
      ((SelectionBorder) frame).destroy();
    }
    node.setSelected(false);
    node.getPiccolo().addAttribute(SELECTION_HANDLER_FRAME_ATTR, null);
  }
Example #2
0
  public void decorateSelectedNode(WorldObjectImpl node) {
    SelectionBorder frame = new SelectionBorder(world, node);

    node.setSelected(true);
    node.getPiccolo().addAttribute(SELECTION_HANDLER_FRAME_ATTR, frame);
  }