- cancel() - Method in class playn.scene.Interaction
-
Cancels this interaction.
- CanvasLayer - Class in playn.scene
-
Simplifies the process of displaying a Canvas which is updated after its initial
creation.
- CanvasLayer(Graphics, float, float) - Constructor for class playn.scene.CanvasLayer
-
Creates a canvas layer with a backing canvas of size width x height (in display
units).
- CanvasLayer(Graphics, Canvas) - Constructor for class playn.scene.CanvasLayer
-
Creates a canvas layer with the supplied backing canvas.
- CanvasLayer(Graphics, IDimension) - Constructor for class playn.scene.CanvasLayer
-
Creates a canvas layer with a backing canvas of size (in display units).
- capture() - Method in class playn.scene.Interaction
-
Captures this interaction in ONLY mode.
- capture(Interaction.CaptureMode) - Method in class playn.scene.Interaction
-
Captures this interaction in the specified capture mode.
- captured() - Method in class playn.scene.Interaction
-
Returns whether this interaction is captured.
- CENTER - playn.scene.Layer.Origin
-
Origin is at layer's center.
- childAt(int) - Method in class playn.scene.GroupLayer
-
Returns the layer at the specified index.
- children() - Method in class playn.scene.GroupLayer
-
Returns the number of child layers in this group.
- ClippedLayer - Class in playn.scene
-
A layer whose rendering is (usually) clipped to a rectangle.
- ClippedLayer(float, float) - Constructor for class playn.scene.ClippedLayer
-
- close() - Method in class playn.scene.CanvasLayer
-
- close() - Method in class playn.scene.GroupLayer
-
- close() - Method in class playn.scene.ImageLayer
-
- close() - Method in class playn.scene.Layer
-
Disposes this layer, removing it from its parent layer.
- Layer - Class in playn.scene
-
A layer is a node in the scene graph.
- Layer() - Constructor for class playn.scene.Layer
-
Creates an unclipped layer.
- Layer.HitTester - Interface in playn.scene
-
Used to customize a layer's hit testing mechanism.
- Layer.Origin - Enum in playn.scene
-
Used to configure the origin of a layer based on its width/height.
- Layer.State - Enum in playn.scene
-
- Layer.Visitor - Interface in playn.scene
-
- layerToParent(Layer, Layer, float, float) - Static method in class playn.scene.LayerUtil
-
Converts the supplied point from coordinates relative to the specified
child layer to coordinates relative to the specified parent layer.
- layerToParent(Layer, Layer, XY, Point) - Static method in class playn.scene.LayerUtil
-
Converts the supplied point from coordinates relative to the specified
child layer to coordinates relative to the specified parent layer.
- layerToScreen(Layer, float, float) - Static method in class playn.scene.LayerUtil
-
Converts the supplied point from coordinates relative to the specified
layer to screen coordinates.
- layerToScreen(Layer, XY, Point) - Static method in class playn.scene.LayerUtil
-
Converts the supplied point from coordinates relative to the specified layer to screen
coordinates.
- layerUnderPoint(Layer, float, float) - Static method in class playn.scene.LayerUtil
-
Gets the layer underneath the given screen coordinates, ignoring hit testers.
- LayerUtil - Class in playn.scene
-
Utility class for transforming coordinates between
Layers.
- LayerUtil() - Constructor for class playn.scene.LayerUtil
-
- LC - playn.scene.Layer.Origin
-
Origin is at left center.
- Listener() - Constructor for class playn.scene.Mouse.Listener
-
- Listener() - Constructor for class playn.scene.Pointer.Listener
-
- Listener() - Constructor for class playn.scene.Touch.Listener
-
- LL - playn.scene.Layer.Origin
-
Origin is in lower left.
- local - Variable in class playn.scene.Interaction
-
The current event's location, translated into the hit layer's coordinate space.
- LR - playn.scene.Layer.Origin
-
Origin is in lower right.
- onAdded(SignalView.Listener<? super Layer>) - Method in class playn.scene.Layer
-
Connects
action to
Layer.state such that it is triggered when this layer is added
to a rooted scene graph.
- onButton(Mouse.ButtonEvent, Mouse.Interaction) - Method in class playn.scene.Mouse.Listener
-
Notifies listener of a mouse button event.
- onCancel() - Method in class playn.scene.Mouse.Listener
-
Notifies the listener that the current interaction was canceled.
- onCancel(Pointer.Interaction) - Method in class playn.scene.Pointer.Listener
-
Notifies listener of a pointer cancel event.
- onCancel(Touch.Interaction) - Method in class playn.scene.Touch.Listener
-
Notifies listener of a touch cancel event.
- onDisposed(SignalView.Listener<? super Layer>) - Method in class playn.scene.Layer
-
Connects
action to
Layer.state such that it is triggered when this layer is
disposed.
- onDrag(Mouse.MotionEvent, Mouse.Interaction) - Method in class playn.scene.Mouse.Listener
-
Notifies listener of a mouse drag event.
- onDrag(Pointer.Interaction) - Method in class playn.scene.Pointer.Listener
-
Notifies listener of a pointer drag (move) event.
- onEmit(Object) - Method in class playn.scene.Mouse.Listener
-
- onEmit(Object) - Method in class playn.scene.Pointer.Listener
-
- onEmit(Object) - Method in class playn.scene.Touch.Listener
-
- onEmit(Mouse.Event) - Method in class playn.scene.Mouse.Dispatcher
-
- onEmit(Pointer.Event) - Method in class playn.scene.Pointer.Dispatcher
-
- onEmit(Touch.Event[]) - Method in class playn.scene.Touch.Dispatcher
-
- onEnd(Pointer.Interaction) - Method in class playn.scene.Pointer.Listener
-
Notifies listener of a pointer end event.
- onEnd(Touch.Interaction) - Method in class playn.scene.Touch.Listener
-
Notifies listener of a touch end event.
- onHover(Mouse.HoverEvent, Mouse.Interaction) - Method in class playn.scene.Mouse.Listener
-
Notifies listener of mouse entry or exit.
- ONLY - playn.scene.Interaction.CaptureMode
-
Events are only sent to the capturing layer.
- onMotion(Mouse.MotionEvent, Mouse.Interaction) - Method in class playn.scene.Mouse.Listener
-
Notifies listener of a mouse motion event.
- onMove(Touch.Interaction) - Method in class playn.scene.Touch.Listener
-
Notifies listener of a touch move event.
- onRemoved(SignalView.Listener<? super Layer>) - Method in class playn.scene.Layer
-
Connects
action to
Layer.state such that it is triggered when this layer is
removed from a rooted scene graph.
- onStart(Pointer.Interaction) - Method in class playn.scene.Pointer.Listener
-
Notifies listener of a pointer start event.
- onStart(Touch.Interaction) - Method in class playn.scene.Touch.Listener
-
Notifies listener of a touch start event.
- onWheel(Mouse.WheelEvent, Mouse.Interaction) - Method in class playn.scene.Mouse.Listener
-
Notifies listener of a mouse wheel event.
- origin(Point) - Method in class playn.scene.Layer
-
Writes this layer's origin into into.
- origin(Vector) - Method in class playn.scene.Layer
-
Writes this layer's origin into into.
- originX() - Method in class playn.scene.Layer
-
Returns the x-component of the layer's origin.
- originY() - Method in class playn.scene.Layer
-
Returns the y-component of the layer's origin.
- ox(float) - Method in enum playn.scene.Layer.Origin
-
- oy(float) - Method in enum playn.scene.Layer.Origin
-
- scale(Vector) - Method in class playn.scene.Layer
-
Writes this layer's scale into into.
- scaledHeight() - Method in class playn.scene.Layer
-
Returns the height of the layer multiplied by its y scale.
- scaledWidth() - Method in class playn.scene.Layer
-
Returns the width of the layer multiplied by its x scale.
- scaleX() - Method in class playn.scene.Layer
-
Returns this layer's current scale in the x direction.
- scaleY() - Method in class playn.scene.Layer
-
Returns this layer's current scale in the y direction.
- SceneGame - Class in playn.scene
-
A simple class for games which wish to use a single scene graph.
- SceneGame(Platform, int) - Constructor for class playn.scene.SceneGame
-
- screenToLayer(Layer, float, float) - Static method in class playn.scene.LayerUtil
-
Converts the supplied point from screen coordinates to coordinates
relative to the specified layer.
- screenToLayer(Layer, XY, Point) - Static method in class playn.scene.LayerUtil
-
Converts the supplied point from screen coordinates to coordinates
relative to the specified layer.
- setAlpha(float) - Method in class playn.scene.Layer
-
Sets the alpha component of this layer's current tint.
- setBatch(QuadBatch) - Method in class playn.scene.Layer
-
Configures a custom batch (i.e.
- setClearColor(float, float, float, float) - Method in class playn.scene.SceneGame
-
Configures the color to which the frame buffer is cleared prior to painting the scene graph.
- setClearColor(int) - Method in class playn.scene.SceneGame
-
Configures the color to which the frame buffer is cleared prior to painting the scene graph.
- setDepth(float) - Method in class playn.scene.Layer
-
Sets the depth of this layer.
- setHeight(float) - Method in class playn.scene.ClippedLayer
-
Updates the height of this group layer, and hence its clipping rectangle.
- setHitTester(Layer.HitTester) - Method in class playn.scene.Layer
-
Configures a custom hit tester for this layer.
- setInteractive(boolean) - Method in class playn.scene.Layer
-
Configures this layer as reactive to clicks and touches, or not.
- setName(String) - Method in class playn.scene.Layer
-
Sets the name of this layer.
- setOrigin(float, float) - Method in class playn.scene.Layer
-
Sets the origin of the layer to a fixed position.
- setOrigin(Layer.Origin) - Method in class playn.scene.Layer
-
Configures the origin of this layer based on a logical location which is recomputed whenever
the layer changes size.
- setRegion(Rectangle) - Method in class playn.scene.ImageLayer
-
- setRotation(float) - Method in class playn.scene.Layer
-
Sets the current rotation of this layer, in radians.
- setScale(float) - Method in class playn.scene.Layer
-
Sets the current x and y scale of this layer to scale..
- setScale(float, float) - Method in class playn.scene.Layer
-
Sets the current x and y scale of this layer.
- setScaleX(float) - Method in class playn.scene.Layer
-
Sets the current x scale of this layer.
- setScaleY(float) - Method in class playn.scene.Layer
-
Sets the current y scale of this layer.
- setSize(float, float) - Method in class playn.scene.ClippedLayer
-
Updates the size of this clipped layer, and hence its clipping rectangle.
- setSize(float, float) - Method in class playn.scene.ImageLayer
-
- setSize(IDimension) - Method in class playn.scene.ClippedLayer
-
Updates the size of this clipped layer, and hence its clipping rectangle.
- setSize(IDimension) - Method in class playn.scene.ImageLayer
-
- setSource(TileSource) - Method in class playn.scene.ImageLayer
-
Sets the texture rendered by this layer to the texture provided by source.
- setTile(Tile) - Method in class playn.scene.CanvasLayer
-
- setTile(Tile) - Method in class playn.scene.ImageLayer
-
Sets the texture rendered by this layer.
- setTile(RFuture<? extends Tile>) - Method in class playn.scene.CanvasLayer
-
- setTile(RFuture<? extends Tile>) - Method in class playn.scene.ImageLayer
-
Sets the tile rendered by this layer to the asynchronous result of tile.
- setTint(int) - Method in class playn.scene.Layer
-
Sets the tint for this layer, as ARGB.
- setTranslation(float, float) - Method in class playn.scene.Layer
-
Sets the x and y translation of this layer.
- setTranslation(XY) - Method in class playn.scene.Layer
-
- setTx(float) - Method in class playn.scene.Layer
-
Sets the x translation of this layer.
- setTy(float) - Method in class playn.scene.Layer
-
Sets the y translation of this layer.
- setVisible(boolean) - Method in class playn.scene.Layer
-
Configures this layer's visibility: if true, it will be rendered as normal, if false it and
its children will not be rendered.
- setWidth(float) - Method in class playn.scene.ClippedLayer
-
Updates the width of this group layer, and hence its clipping rectangle.
- state - Variable in class playn.scene.Layer
-
A reactive value which tracks this layer's lifecycle.