Java 类com.badlogic.gdx.scenes.scene2d.utils.Selection 实例源码

项目:libgdx_ui_editor    文件:SelectGroup.java   
public SelectGroup(){
    cubRect = new Rectangle();
    childRect = new Rectangle();
    setCullingArea(cubRect);
    cubDra = DrawableUtil.getRectLineDrawable("icon/select.9.png");
    selection = new Selection<Actor>();
    addListener(dragListener);
}
项目:libgdxcn    文件:Tree.java   
public Tree (TreeStyle style) {
    selection = new Selection();
    selection.setActor(this);
    selection.setMultiple(true);
    setStyle(style);
    initialize();
}
项目:bladecoder-adventure-engine    文件:EditTree.java   
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;
}
项目:libgdx_ui_editor    文件:SelectGroup.java   
public Selection<Actor> getSelection() {
    return selection;
}
项目:libgdxcn    文件:Tree.java   
public Selection<Node> getSelection () {
    return selection;
}