Package tripleplay.ui
Class Background.Instance
java.lang.Object
tripleplay.ui.Background.Instance
- All Implemented Interfaces:
AutoCloseable
,react.Closeable
- Enclosing class:
Background
An instantiation of a particular background template. Backgrounds are configured as a style
property; elements instantiate them at specific dimensions when they are actually used.
-
Nested Class Summary
Nested classes/interfaces inherited from interface react.Closeable
react.Closeable.Set, react.Closeable.Util
-
Field Summary
Modifier and TypeFieldDescriptionfinal pythagoras.f.IDimension
The size at which this instance was prepared. -
Method Summary
Modifier and TypeMethodDescriptionabstract void
addTo
(GroupLayer parent, float x, float y, float depthAdjust) Adds this background's layers to the specified group at the specified x/y offset.owner()
Returns the background that created this instance.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface react.Closeable
close
-
Field Details
-
size
public final pythagoras.f.IDimension sizeThe size at which this instance was prepared.
-
-
Method Details
-
owner
Returns the background that created this instance. -
addTo
Adds this background's layers to the specified group at the specified x/y offset.- Parameters:
depthAdjust
- an adjustment to the standard depth at which backgrounds are added. This adjustment is added to the standard background depth (-10). This allows one to control the rendering order of multiple backgrounds on a single widget.
-