Class CompositeBackground

java.lang.Object
tripleplay.ui.Background
tripleplay.ui.bgs.CompositeBackground

public class CompositeBackground extends Background
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.
  • Constructor Details

    • CompositeBackground

      public CompositeBackground(Background... constituents)
      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

      public CompositeBackground 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.