Class Insets.Mutable

java.lang.Object
tripleplay.ui.util.Insets
tripleplay.ui.util.Insets.Mutable
Enclosing class:
Insets

public static class Insets.Mutable extends Insets
Insets with changeable values.
  • Method Details

    • mutable

      public Insets.Mutable mutable()
      Description copied from class: Insets
      Gets or creates a copy of these insets that can be mutated. Note, if storing an instance, the caller is expected to assign to the return value here in case a new object is allocated.
      Overrides:
      mutable in class Insets
    • add

      public Insets.Mutable add(Insets insets)
      Adds the given insets to these. Returns this for chaining.
    • top

      public Insets.Mutable top(float newTop)
      Sets the top edge and returns this for chaining.
    • right

      public Insets.Mutable right(float newRight)
      Sets the right edge and returns this for chaining.
    • bottom

      public Insets.Mutable bottom(float newBottom)
      Sets the bottom edge and returns this for chaining.
    • left

      public Insets.Mutable left(float newLeft)
      Sets the left edge and returns this for chaining.