public void addProcessor (int index, InputProcessor processor) { if (processor == null) throw new NullPointerException("processor cannot be null"); processors.insert(index, processor); }
public void addProcessor (int index, InputProcessor processor) { if (processor == null) throw new NullPointerException("processor cannot be null"); processors.insert(index, processor); }
/** Adds an actor as a child of this group immediately before another child actor, removing it from its previous parent. If the * actor is already a child of this group, no changes are made. */ public void addActorBefore (Actor actorBefore, Actor actor) { if (actor.parent != null) { if (actor.parent == this) return; actor.parent.removeActor(actor, false); } int index = children.indexOf(actorBefore, true); children.insert(index, actor); actor.setParent(this); actor.setStage(getStage()); childrenChanged(); }
/** Adds an actor as a child of this group immediately before another child actor, removing it from its previous parent. If the * actor is already a child of this group, no changes are made. */ public void addActorBefore (Actor actorBefore, Actor actor) { if (actor.parent != null) { if (actor.parent == this) return; actor.parent.removeActor(actor, false); } int index = children.indexOf(actorBefore, true); children.insert(index, actor); actor.setParent(this); actor.setStage(getStage()); childrenChanged(); }
/** Adds an actor as a child of this group at a specific index, removing it from its previous parent. If the actor is already a * child of this group, no changes are made. * @param index May be greater than the number of children. */ public void addActorAt (int index, Actor actor) { if (actor.parent != null) { if (actor.parent == this) return; actor.parent.removeActor(actor, false); } if (index >= children.size) children.add(actor); else children.insert(index, actor); actor.setParent(this); actor.setStage(getStage()); childrenChanged(); }
/** Adds an actor as a child of this group at a specific index, removing it from its previous parent. If the actor is already a * child of this group, no changes are made. * @param index May be greater than the number of children. */ public void addActorAt (int index, Actor actor) { if (actor.parent != null) { if (actor.parent == this) return; actor.parent.removeActor(actor, false); } if (index >= children.size) children.add(actor); else children.insert(index, actor); actor.setParent(this); actor.setStage(getStage()); childrenChanged(); }
/** Adds an actor as a child of this group immediately after another child actor, removing it from its previous parent. If the * actor is already a child of this group, no changes are made. */ public void addActorAfter (Actor actorAfter, Actor actor) { if (actor.parent != null) { if (actor.parent == this) return; actor.parent.removeActor(actor, false); } int index = children.indexOf(actorAfter, true); if (index == children.size) children.add(actor); else children.insert(index + 1, actor); actor.setParent(this); actor.setStage(getStage()); childrenChanged(); }
/** Adds an actor as a child of this group immediately after another child actor, removing it from its previous parent. If the * actor is already a child of this group, no changes are made. */ public void addActorAfter (Actor actorAfter, Actor actor) { if (actor.parent != null) { if (actor.parent == this) return; actor.parent.removeActor(actor, false); } int index = children.indexOf(actorAfter, true); if (index == children.size) children.add(actor); else children.insert(index + 1, actor); actor.setParent(this); actor.setStage(getStage()); childrenChanged(); }
public void addProcessor (int index, InputProcessor processor) { if (processor == null) throw new NullPointerException("processor cannot be null"); processors.insert(index, processor); }
/** Adds an actor as a child of this group immediately before another child actor, removing it from its previous parent. If the * actor is already a child of this group, no changes are made. */ public void addActorBefore (Actor actorBefore, Actor actor) { if (actor.parent != null) { if (actor.parent == this) return; actor.parent.removeActor(actor, false); } int index = children.indexOf(actorBefore, true); children.insert(index, actor); actor.setParent(this); actor.setStage(getStage()); childrenChanged(); }
/** Adds an actor as a child of this group at a specific index, removing it from its previous parent. If the actor is already a * child of this group, no changes are made. * @param index May be greater than the number of children. */ public void addActorAt (int index, Actor actor) { if (actor.parent != null) { if (actor.parent == this) return; actor.parent.removeActor(actor, false); } if (index >= children.size) children.add(actor); else children.insert(index, actor); actor.setParent(this); actor.setStage(getStage()); childrenChanged(); }
/** Adds an actor as a child of this group immediately after another child actor, removing it from its previous parent. If the * actor is already a child of this group, no changes are made. */ public void addActorAfter (Actor actorAfter, Actor actor) { if (actor.parent != null) { if (actor.parent == this) return; actor.parent.removeActor(actor, false); } int index = children.indexOf(actorAfter, true); if (index == children.size) children.add(actor); else children.insert(index + 1, actor); actor.setParent(this); actor.setStage(getStage()); childrenChanged(); }