/** * Adds a child to the display list at the specified index, bumping children at equal or greater * indexes up one, and setting its parent to this Container * * @param location index * @param displayBase DisplayObject2 * @return this */ public FPSTextureView addChildAt(int location, @NonNull DisplayBase displayBase) { displayBase.setUp(mFps); mDisplayList.add(location, displayBase); return this; }
/** * Adds a child to the top of the display list. * * @param DisplayObject DisplayObject2 * @return this */ public FPSTextureView addChild(@NonNull DisplayBase DisplayObject) { DisplayObject.setUp(mFps); mDisplayList.add(DisplayObject); return this; }