Package playn.scene
Class RootLayer
java.lang.Object
playn.scene.Layer
playn.scene.ClippedLayer
playn.scene.GroupLayer
playn.scene.RootLayer
- All Implemented Interfaces:
AutoCloseable,Iterable<Layer>,Closeable
Serves as the root of the scene graph. This is just a
GroupLayer with minor tweaks to
ensure that when layers are added to it, they transition properly to the "added to scene graph"
state.-
Nested Class Summary
Nested classes/interfaces inherited from class playn.scene.Layer
Layer.HitTester, Layer.Origin, Layer.State, Layer.VisitorNested classes/interfaces inherited from interface react.Closeable
Closeable.Set, Closeable.Util -
Field Summary
Fields inherited from class playn.scene.Layer
DEBUG_RECTS, state -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class playn.scene.GroupLayer
add, add, addAt, addCenterAt, addFloorAt, childAt, children, close, disposeAll, hitTestDefault, isEmpty, iterator, remove, remove, removeAllMethods inherited from class playn.scene.ClippedLayer
height, setHeight, setSize, setSize, setWidth, widthMethods inherited from class playn.scene.Layer
absorbHits, alpha, debugPrint, depth, disposed, events, hasEventListeners, hitTest, interactive, name, onAdded, onDisposed, onRemoved, origin, origin, originX, originY, paint, parent, rotation, scale, scaledHeight, scaledWidth, scaleX, scaleY, setAlpha, setBatch, setDepth, setHitTester, setInteractive, setName, setOrigin, setOrigin, setRotation, setScale, setScale, setScaleX, setScaleY, setTint, setTranslation, setTranslation, setTx, setTy, setVisible, tint, toString, transform, translation, translation, tx, ty, visible, visitMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
RootLayer
public RootLayer()Creates an unclipped root layer. This is almost always what you want. -
RootLayer
public RootLayer(float width, float height) Creates a root layer clipped to the specified dimensions. This is rarely what you want.
-