@Override public void addLifecycleListener (LifecycleListener listener) { synchronized (lifecycleListeners) { lifecycleListeners.add(listener); } }
@Override public void addLifecycleListener (LifecycleListener listener) { synchronized (lifecycleListeners) { lifecycleListeners.add(listener); } }
@Override public void addLifecycleListener (LifecycleListener listener) { synchronized (lifecycleListeners) { lifecycleListeners.add(listener); } }
@Override public void addLifecycleListener (LifecycleListener listener) { synchronized (lifecycleListeners) { lifecycleListeners.add(listener); } }
@Override public void addLifecycleListener (LifecycleListener listener) { synchronized (lifecycleListeners) { lifecycleListeners.add(listener); } }
@Override public void addLifecycleListener (LifecycleListener listener) { synchronized (lifecycleListeners) { lifecycleListeners.add(listener); } }
@Override public void addLifecycleListener (LifecycleListener listener) { synchronized (lifecycleListeners) { lifecycleListeners.add(listener); } }
@Override public void addLifecycleListener (LifecycleListener listener) { synchronized (lifecycleListeners) { lifecycleListeners.add(listener); } }
@Override public void addLifecycleListener (LifecycleListener listener) { synchronized (lifecycleListeners) { lifecycleListeners.add(listener); } }
@Override public void addLifecycleListener (LifecycleListener listener) { synchronized (lifecycleListeners) { lifecycleListeners.add(listener); } }
public void addProcessor (InputProcessor processor) { if (processor == null) throw new NullPointerException("processor cannot be null"); processors.add(processor); }
public void addProcessor (InputProcessor processor) { if (processor == null) throw new NullPointerException("processor cannot be null"); processors.add(processor); }
/** Adds the listener to be notified for all touchDragged and touchUp events for the specified pointer and button. Touch focus * is added automatically when true is returned from {@link InputListener#touchDown(InputEvent, float, float, int, int) * touchDown}. The specified actors will be used as the {@link Event#getListenerActor() listener actor} and * {@link Event#getTarget() target} for the touchDragged and touchUp events. */ public void addTouchFocus (EventListener listener, Actor listenerActor, Actor target, int pointer, int button) { TouchFocus focus = Pools.obtain(TouchFocus.class); focus.listenerActor = listenerActor; focus.target = target; focus.listener = listener; focus.pointer = pointer; focus.button = button; touchFocuses.add(focus); }
/** Adds the listener to be notified for all touchDragged and touchUp events for the specified pointer and button. Touch focus * is added automatically when true is returned from {@link InputListener#touchDown(InputEvent, float, float, int, int) * touchDown}. The specified actors will be used as the {@link Event#getListenerActor() listener actor} and * {@link Event#getTarget() target} for the touchDragged and touchUp events. */ public void addTouchFocus (EventListener listener, Actor listenerActor, Actor target, int pointer, int button) { TouchFocus focus = Pools.obtain(TouchFocus.class); focus.listenerActor = listenerActor; focus.target = target; focus.listener = listener; focus.pointer = pointer; focus.button = button; touchFocuses.add(focus); }
/** Adds an actor as a child of this group, removing it from its previous parent. If the actor is already a child of this * group, no changes are made. */ public void addActor (Actor actor) { if (actor.parent != null) { if (actor.parent == this) return; actor.parent.removeActor(actor, false); } children.add(actor); actor.setParent(this); actor.setStage(getStage()); childrenChanged(); }
/** Adds an actor as a child of this group, removing it from its previous parent. If the actor is already a child of this * group, no changes are made. */ public void addActor (Actor actor) { if (actor.parent != null) { if (actor.parent == this) return; actor.parent.removeActor(actor, false); } children.add(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(); }