Package tripleplay.ui.bgs
Class CompositeBackground
java.lang.Object
tripleplay.ui.Background
tripleplay.ui.bgs.CompositeBackground
A background consisting of multiple other backgrounds. Note: callers should not inset this
background since it derives all of its insets from the contained backgrounds and relies on the
values during instantiation.
-
Nested Class Summary
Nested classes/interfaces inherited from class tripleplay.ui.Background
Background.Instance
-
Field Summary
Fields inherited from class tripleplay.ui.Background
alpha, BACKGROUND_DEPTH, insets
-
Constructor Summary
ConstructorDescriptionCompositeBackground
(Background... constituents) Creates a new composite background with the given constituents. -
Method Summary
Modifier and TypeMethodDescriptionReverses the usual depth of the constituent backgrounds' layers.
-
Constructor Details
-
CompositeBackground
Creates a new composite background with the given constituents. The first background is the outermost, the 2nd one is inside that and so on. The insets of this background are set to the sum of the insets of the constituents.
-
-
Method Details
-
reverseDepth
Reverses the usual depth of the constituent backgrounds' layers. Normally the outermost background's layer is lowest (rendered first). Use this method to render the innermost background's layer first instead.
-