Index

A B C D E F G H I L M N O P R S T U V W X Y 
All Classes and Interfaces|All Packages

A

ABOVE - Enum constant in enum class playn.scene.Interaction.CaptureMode
Events are sent to the capturing layer and its parents.
absorbHits() - Method in class playn.scene.Layer
Configures a hit tester for this layer which hits this layer any time a hit does not hit a child of this layer.
add(Layer) - Method in class playn.scene.GroupLayer
Adds a layer to the bottom of the group.
add(Layer, Layer, Layer...) - Method in class playn.scene.GroupLayer
Adds all supplied children to this layer, in order.
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.
addCenterAt(Layer, float, float) - Method in class playn.scene.GroupLayer
Adds child to this group layer, positioning it such that its center is at (tx, tx).
ADDED - Enum constant in enum class playn.scene.Layer.State
 
addFloorAt(Layer, float, float) - Method in class playn.scene.GroupLayer
Adds child to this group layer, adjusting its translation (relative to this group layer) to floor(tx), floor(ty).
allow(Interaction.Depth) - Method in enum class playn.scene.Interaction.CaptureMode
 
alpha() - Method in class playn.scene.Layer
Return the global alpha value for this layer.

B

BC - Enum constant in enum class playn.scene.Layer.Origin
Origin is at bottom center.
begin() - Method in class playn.scene.CanvasLayer
Starts a drawing operation on this layer's backing canvas.
BELOW - Enum constant in enum class playn.scene.Interaction.CaptureMode
Events are sent to the capturing layer and its children.
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

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 - Enum constant in enum class 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.

D

DEBUG_RECTS - Static variable in class playn.scene.Layer
Controls rendering of debug rectangles around views.
debugPrint(Log) - Method in class playn.scene.Layer
Prints a debug representation of this layer and its children.
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.
DISPOSED - Enum constant in enum class playn.scene.Layer.State
 

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

FIXED - Enum constant in enum class playn.scene.Layer.Origin
Origin is manually specified via Layer.setOrigin(float,float).
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 this layer.
hitLayer - Variable in class playn.scene.Interaction
The layer that was hit at the start of this interaction.
hitTest(Layer, float, float) - Static method in class playn.scene.LayerUtil
Returns true if a coordinate on the screen touches a Layer.
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(Point) - Method in class playn.scene.Layer
Tests whether the supplied (layer relative) point "hits" this layer or any of its children.
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() - Constructor for class playn.scene.ImageLayer
Creates a texture layer with no texture.
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.
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, boolean) - Constructor for class playn.scene.Interaction
 
Interaction.CaptureMode - Enum Class in playn.scene
Used to configure Interaction.capture().
interactive() - Method in class playn.scene.Layer
Returns whether 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.Origin - Enum Class in playn.scene
Used to configure the origin of a layer based on its width/height.
Layer.State - Enum Class in playn.scene
Enumerates layer lifecycle states; see Layer.state.
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 - Enum constant in enum class 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 - Enum constant in enum class 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 - Enum constant in enum class playn.scene.Layer.Origin
Origin is in lower right.

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.

N

name() - Method in class playn.scene.Layer
Returns the name of this layer.

O

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 - Enum constant in enum class 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 class playn.scene.Layer.Origin
 
oy(float) - Method in enum class playn.scene.Layer.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, Layer, XY, 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.
parentToLayer(Layer, XY, 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.
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.
print(Log, Layer) - Static method in class playn.scene.LayerUtil
Prints the layer heirarchy starting at layer, using Log.debug(java.lang.String).

R

RC - Enum constant in enum class playn.scene.Layer.Origin
Origin is at right center.
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.
remove(Layer, Layer, Layer...) - Method in class playn.scene.GroupLayer
Removes all supplied children from this layer, in order.
removeAll() - Method in class playn.scene.GroupLayer
Removes all child layers from this group.
REMOVED - Enum constant in enum class playn.scene.Layer.State
 
resize(float, float) - Method in class playn.scene.CanvasLayer
Resizes the canvas that is displayed by this layer.
rootLayer - Variable in class playn.scene.SceneGame
 
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 a root layer clipped to the specified dimensions.
rotation() - Method in class playn.scene.Layer
Returns this layer's current rotation.

S

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
A variant of Layer.setTranslation(float,float) that takes an XY.
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

TC - Enum constant in enum class playn.scene.Layer.Origin
Origin is at top center.
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.Interaction
 
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.
translation(Point) - Method in class playn.scene.Layer
Writes this layer's translation into into.
translation(Vector) - Method in class playn.scene.Layer
Writes this layer's translation into into.
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.

U

UL - Enum constant in enum class playn.scene.Layer.Origin
Origin is in upper left.
UR - Enum constant in enum class playn.scene.Layer.Origin
Origin is in upper right.

V

valueOf(String) - Static method in enum class playn.scene.Interaction.CaptureMode
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class playn.scene.Layer.Origin
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class playn.scene.Layer.State
Returns the enum constant of this class with the specified name.
values() - Static method in enum class playn.scene.Interaction.CaptureMode
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class playn.scene.Layer.Origin
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class playn.scene.Layer.State
Returns an array containing the constants of this enum class, 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.
visit(Layer.Visitor) - Method in class playn.scene.Layer
Visits this layer and its children, in depth first order, with visitor.
visit(Layer, int) - Method in interface playn.scene.Layer.Visitor
 

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 this 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 N O P R S T U V W X Y 
All Classes and Interfaces|All Packages