本文整理汇总了Java中com.badlogic.gdx.scenes.scene2d.utils.Selection类的典型用法代码示例。如果您正苦于以下问题:Java Selection类的具体用法?Java Selection怎么用?Java Selection使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Selection类属于com.badlogic.gdx.scenes.scene2d.utils包,在下文中一共展示了Selection类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SelectGroup
import com.badlogic.gdx.scenes.scene2d.utils.Selection; //导入依赖的package包/类
public SelectGroup(){
cubRect = new Rectangle();
childRect = new Rectangle();
setCullingArea(cubRect);
cubDra = DrawableUtil.getRectLineDrawable("icon/select.9.png");
selection = new Selection<Actor>();
addListener(dragListener);
}
示例2: Tree
import com.badlogic.gdx.scenes.scene2d.utils.Selection; //导入依赖的package包/类
public Tree (TreeStyle style) {
selection = new Selection();
selection.setActor(this);
selection.setMultiple(true);
setStyle(style);
initialize();
}
示例3: getSiblings
import com.badlogic.gdx.scenes.scene2d.utils.Selection; //导入依赖的package包/类
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;
}
示例4: getSelection
import com.badlogic.gdx.scenes.scene2d.utils.Selection; //导入依赖的package包/类
public Selection<Actor> getSelection() {
return selection;
}
示例5: getSelection
import com.badlogic.gdx.scenes.scene2d.utils.Selection; //导入依赖的package包/类
public Selection<Node> getSelection () {
return selection;
}