public SelectGroup(){ cubRect = new Rectangle(); childRect = new Rectangle(); setCullingArea(cubRect); cubDra = DrawableUtil.getRectLineDrawable("icon/select.9.png"); selection = new Selection<Actor>(); addListener(dragListener); }
public Tree (TreeStyle style) { selection = new Selection(); selection.setActor(this); selection.setMultiple(true); setStyle(style); initialize(); }
public Array<Node> getSiblings() { Selection<Node> selection = tree.getSelection(); Node nodeSel = selection.first(); int level = nodeSel.getLevel(); Array<Node> siblings = (level == 1) ? tree.getRootNodes(): nodeSel.getParent().getChildren(); return siblings; }
public Selection<Actor> getSelection() { return selection; }
public Selection<Node> getSelection () { return selection; }