Skip navigation links
A B C D E F G H I L M O P R S T V W X Y 

A

add(Layer) - Method in class playn.scene.GroupLayer
Adds a layer to the bottom of the group.
addAt(Layer, float, float) - Method in class playn.scene.GroupLayer
Adds the supplied layer to this group layer, adjusting its translation (relative to this group layer) to the supplied values.
alpha() - Method in class playn.scene.Layer
Return the global alpha value for this layer.

B

begin() - Method in class playn.scene.CanvasLayer
Starts a drawing operation on this layer's backing canvas.
bind(Layer, Signal<Clock>, Slot<Clock>) - Static method in class playn.scene.LayerUtil
Automatically connects onPaint to paint when layer is added to a scene graph, and disconnects it when layer is removed.
bind(Layer, Signal<Clock>, Slot<Clock>, Signal<Clock>, Slot<Clock>) - Static method in class playn.scene.LayerUtil
Automatically connects onUpdate to update, and onPaint to paint when layer is added to a scene graph, and disconnects them when layer is removed.

C

CanvasLayer - Class in playn.scene
Simplifies the process of displaying a Canvas which is updated after its initial creation.
CanvasLayer(Graphics, IDimension) - Constructor for class playn.scene.CanvasLayer
Creates a canvas layer with a backing canvas of size (in display units).
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.
capture() - Method in class playn.scene.Interaction
Captures this interaction.
captured() - Method in class playn.scene.Interaction
Returns whether this interaction is captured.
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.

D

defaultBatch - Variable in class playn.scene.SceneGame
 
depth() - Method in class playn.scene.Layer
Returns this layer's current depth.
Dispatcher(Layer, boolean) - Constructor for class playn.scene.Mouse.Dispatcher
 
Dispatcher(Layer, boolean) - Constructor for class playn.scene.Pointer.Dispatcher
 
Dispatcher(Layer, boolean) - Constructor for class playn.scene.Touch.Dispatcher
 
disposeAll() - Method in class playn.scene.GroupLayer
Removes and disposes all child layers from this group.
disposed() - Method in class playn.scene.Layer
Whether this layer has been disposed.

E

end() - Method in class playn.scene.CanvasLayer
Informs this layer that a drawing operation has just completed.
event - Variable in class playn.scene.Interaction
The event currently being dispatched in this interaction.
events() - Method in class playn.scene.Layer
Returns a signal via which events may be dispatched "on" this layer.

F

forceHeight - Variable in class playn.scene.ImageLayer
An explicit width and height for this layer.
forceWidth - Variable in class playn.scene.ImageLayer
An explicit width and height for this layer.

G

getHitLayer(Layer, Point) - Static method in class playn.scene.LayerUtil
Returns the layer hit by (screen) position p (or null) in the scene graph rooted at root, using Layer.hitTest(pythagoras.f.Point).
graphDepth(Layer) - Static method in class playn.scene.LayerUtil
Returns the depth of the given layer in its local scene graph.
GroupLayer - Class in playn.scene
GroupLayer creates a Layer hierarchy by maintaining an ordered group of child Layers.
GroupLayer() - Constructor for class playn.scene.GroupLayer
Creates an unclipped group layer.
GroupLayer(float, float) - Constructor for class playn.scene.GroupLayer
Creates a clipped group layer with the specified size.

H

hasEventListeners() - Method in class playn.scene.Layer
Returns true if Layer.events has at least one listener.
height() - Method in class playn.scene.CanvasLayer
 
height() - Method in class playn.scene.ClippedLayer
 
height() - Method in class playn.scene.ImageLayer
 
height() - Method in class playn.scene.Layer
Returns the height of the layer.
hitLayer - Variable in class playn.scene.Interaction
The layer that was hit at the start of this interaction.
hitTest(Point) - Method in class playn.scene.Layer
Tests whether the supplied (layer relative) point "hits" this layer or any of its children.
hitTest(Layer, Point) - Method in interface playn.scene.Layer.HitTester
Returns layer, or a child of layer if the supplied coordinate (which is in layer's coordinate system) hits layer, or one of its children.
hitTest(Layer, XY) - Static method in class playn.scene.LayerUtil
Returns true if an XY touches a Layer.
hitTest(Layer, float, float) - Static method in class playn.scene.LayerUtil
Returns true if a coordinate on the screen touches a Layer.
hitTestDefault(Point) - Method in class playn.scene.GroupLayer
 
hitTestDefault(Point) - Method in class playn.scene.Layer
Like Layer.hitTest(pythagoras.f.Point) except that it ignores a configured Layer.HitTester.
HoverEvent(int, double, float, float, boolean) - Constructor for class playn.scene.Mouse.HoverEvent
 

I

ImageLayer - Class in playn.scene
A layer that displays a texture or region of a texture (tile).
ImageLayer(Tile) - Constructor for class playn.scene.ImageLayer
Creates an image layer with the supplied texture tile.
ImageLayer(TileSource) - Constructor for class playn.scene.ImageLayer
Obtains the tile from source, asynchronously if necessary, and displays it.
ImageLayer() - Constructor for class playn.scene.ImageLayer
Creates a texture layer with no texture.
indexInParent(Layer) - Static method in class playn.scene.LayerUtil
Returns the index of the given layer within its parent, or -1 if the parent is null.
inside - Variable in class playn.scene.Mouse.HoverEvent
Whether the mouse is now inside or outside the layer in question.
Interaction<E extends Event.XY> - Class in playn.scene
Contains information about the interaction of which an event is a part.
Interaction(Layer) - Constructor for class playn.scene.Interaction
 
interactive() - Method in class playn.scene.Layer
Returns true if this layer reacts to clicks and touches.
isEmpty() - Method in class playn.scene.GroupLayer
Returns whether this group has any child layers.
iterator() - Method in class playn.scene.GroupLayer
 

L

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.State - Enum in playn.scene
Enumerates layer lifecycle states; see Layer.state.
layerToParent(Layer, Layer, IPoint, 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.
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.
layerToScreen(Layer, IPoint, Point) - Static method in class playn.scene.LayerUtil
Converts the supplied point from coordinates relative to the specified layer to screen coordinates.
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.
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
 
Listener() - Constructor for class playn.scene.Mouse.Listener
 
Listener() - Constructor for class playn.scene.Pointer.Listener
 
Listener() - Constructor for class playn.scene.Touch.Listener
 
local - Variable in class playn.scene.Interaction
The current event's location, translated into the hit layer's coordinate space.

M

Mouse - Class in playn.scene
Integrates the layer system with mouse interactions.
Mouse() - Constructor for class playn.scene.Mouse
 
Mouse.Dispatcher - Class in playn.scene
Handles the dispatching of mouse events to layers.
Mouse.HoverEvent - Class in playn.scene
An event dispatched when the mouse enters or exits a layer.
Mouse.Interaction - Class in playn.scene
Used to dispatch mouse interactions to layers.
Mouse.Listener - Class in playn.scene
A listener for mouse button, motion and wheel events with layer info.

O

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.
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(Mouse.Event) - Method in class playn.scene.Mouse.Dispatcher
 
onEmit(Object) - Method in class playn.scene.Mouse.Listener
 
onEmit(Pointer.Event) - Method in class playn.scene.Pointer.Dispatcher
 
onEmit(Object) - Method in class playn.scene.Pointer.Listener
 
onEmit(Touch.Event[]) - Method in class playn.scene.Touch.Dispatcher
 
onEmit(Object) - Method in class playn.scene.Touch.Listener
 
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.
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.
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.
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.

P

paint(Surface) - Method in class playn.scene.Layer
Renders this layer to surf, including its children.
parent() - Method in class playn.scene.Layer
Returns the layer that contains this layer, or null.
parentToLayer(Layer, IPoint, Point) - Static method in class playn.scene.LayerUtil
Converts the supplied point from coordinates relative to its parent to coordinates relative to the specified layer.
parentToLayer(Layer, Layer, IPoint, Point) - Static method in class playn.scene.LayerUtil
Converts the supplied point from coordinates relative to the specified parent to coordinates relative to the specified child layer.
playn.scene - package playn.scene
 
Pointer - Class in playn.scene
Integrates the layer system with pointer interactions.
Pointer(Platform, Layer, boolean) - Constructor for class playn.scene.Pointer
Creates a pointer event system which dispatches both global pointer events and per-layer pointer events.
Pointer.Dispatcher - Class in playn.scene
Handles the dispatching of pointer events to layers.
Pointer.Interaction - Class in playn.scene
Used to dispatch pointer interactions to layers.
Pointer.Listener - Class in playn.scene
A listener for pointer events with layer info.

R

region - Variable in class playn.scene.ImageLayer
The subregion of the tile to render.
remove(Layer) - Method in class playn.scene.GroupLayer
Removes a layer from the group.
removeAll() - Method in class playn.scene.GroupLayer
Removes all child layers from this group.
resize(float, float) - Method in class playn.scene.CanvasLayer
Resizes the canvas that is displayed by this layer.
RootLayer - Class in playn.scene
Serves as the root of the scene graph.
RootLayer() - Constructor for class playn.scene.RootLayer
Creates an unclipped root layer.
RootLayer(float, float) - Constructor for class playn.scene.RootLayer
Creates an root layer clipped to the specified dimensions.
rootLayer - Variable in class playn.scene.SceneGame
 
rotation() - Method in class playn.scene.Layer
Returns this layer's current rotation.

S

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, IPoint, Point) - Static method in class playn.scene.LayerUtil
Converts the supplied point from screen coordinates to coordinates relative to the specified layer.
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.
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.
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.
setOrigin(float, float) - Method in class playn.scene.Layer
Sets the origin of the layer.
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 group layer, and hence its clipping rectangle.
setSize(float, float) - Method in class playn.scene.ImageLayer
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(RFuture<? extends 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.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.
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.

T

tile() - Method in class playn.scene.ImageLayer
Returns the tile rendered by this layer.
tint() - Method in class playn.scene.Layer
Returns the current tint for this layer, as ARGB.
toString() - Method in class playn.scene.Layer
 
Touch - Class in playn.scene
Integrates the layer system with touch interactions.
Touch() - Constructor for class playn.scene.Touch
 
Touch.Dispatcher - Class in playn.scene
Handles the dispatching of touch events to layers.
Touch.Interaction - Class in playn.scene
Used to dispatch touch interactions to layers.
Touch.Listener - Class in playn.scene
A listener for touch events with layer info.
transform() - Method in class playn.scene.Layer
Returns the layer's current transformation matrix.
tx() - Method in class playn.scene.Layer
Returns this layer's current translation in the x direction.
ty() - Method in class playn.scene.Layer
Returns this layer's current translation in the y direction.

V

valueOf(String) - Static method in enum playn.scene.Layer.State
Returns the enum constant of this type with the specified name.
values() - Static method in enum playn.scene.Layer.State
Returns an array containing the constants of this enum type, in the order they are declared.
viewSurf - Variable in class playn.scene.SceneGame
 
visible() - Method in class playn.scene.Layer
Returns true if this layer is visible (i.e.

W

width() - Method in class playn.scene.CanvasLayer
 
width() - Method in class playn.scene.ClippedLayer
 
width() - Method in class playn.scene.ImageLayer
 
width() - Method in class playn.scene.Layer
Returns the width of the layer.

X

x() - Method in class playn.scene.Interaction
Returns Interaction.event's x coordinate, for convenience.

Y

y() - Method in class playn.scene.Interaction
Returns Interaction.event's y coordinate, for convenience.
A B C D E F G H I L M O P R S T V W X Y 
Skip navigation links

Copyright © 2015. All Rights Reserved.