/** * 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 displayObject DisplayObject * @return this */ public FPSSurfaceView addChildAt(int location, @NonNull DisplayObject displayObject) { displayObject.setUp(mFps); mDisplayList.add(location, displayObject); return this; }
/** * Adds a child to the top of the display list. * * @param displayObject DisplayObject * @return this */ public FPSSurfaceView addChild(@NonNull DisplayObject displayObject) { displayObject.setUp(mFps); mDisplayList.add(displayObject); return this; }