/** * <code>getChildIndex</code> returns the index of the given spatial * in this node's list of children. * @param sp * The spatial to look up * @return * The index of the spatial in the node's children, or -1 * if the spatial is not attached to this node */ public int getChildIndex(Spatial sp) { return children.indexOf(sp); }
public boolean contains(Object o) { return indexOf(o) >= 0; }
/** * <code>detachChild</code> removes a given child from the node's list. * This child will no longer be maintained. * * @param child * the child to remove. * @return the index the child was at. -1 if the child was not in the list. */ public int detachChild(Spatial child) { if (child == null) throw new NullPointerException(); if (child.getParent() == this) { int index = children.indexOf(child); if (index != -1) { detachChildAt(index); } return index; } return -1; }
public boolean contains(Object o) { return indexOf(o) >= 0; }
/** * <code>getChildIndex</code> returns the index of the given spatial * in this node's list of children. * @param sp * The spatial to look up * @return * The index of the spatial in the node's children, or -1 * if the spatial is not attached to this node */ public int getChildIndex(Spatial sp) { return children.indexOf(sp); }
/** * <code>getChildIndex</code> returns the index of the given spatial * in this node's list of children. * @param sp * The spatial to look up * @return * The index of the spatial in the node's children, or -1 * if the spatial is not attached to this node */ public int getChildIndex(Spatial sp) { return children.indexOf(sp); }
/** * <code>getChildIndex</code> returns the index of the given TriggerData in * this TriggerGenericData's list of children. * * @param child The TriggerData to look up * @return The index of the TriggerData in the TriggerGenericData's * children, or -1 if the TriggerData is not attached to this node */ public int getChildIndex(TriggerData child) { return children.indexOf(child); }
public boolean contains(Object o) { return indexOf(o) >= 0; }
public int getLastTriggerIndex() { return children.indexOf(lastTrigger); }
public int detachChild(TriggerData child) { if (child == null) { throw new NullPointerException(); } if (child.getParent() == this) { int index = children.indexOf(child); if (index != -1) { detachChildAt(index); } return index; } return -1; }
/** * <code>detachChild</code> removes a given child from the node's list. * This child will no longer be maintained. * * @param child * the child to remove. * @return the index the child was at. -1 if the child was not in the list. */ public int detachChild(Spatial child) { if (child == null) throw new NullPointerException(); if (child.getParent() == this) { int index = children.indexOf(child); if (index != -1) { detachChildAt(index); } return index; } return -1; }
/** * <code>detachChild</code> removes a given child from the node's list. * This child will no longer be maintained. * * @param child * the child to remove. * @return the index the child was at. -1 if the child was not in the list. */ public int detachChild(Spatial child) { if (child == null) throw new NullPointerException(); if (child.getParent() == this) { int index = children.indexOf(child); if (index != -1) { detachChildAt(index); } return index; } return -1; }
int index = components.indexOf(original); components.set(index, c); } else {