Class ComponentOp

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public abstract class ComponentOp.Animatable

      Class to represent an operation that can be applied on a component that modifies it in some way.

      It is applied before and after rendering, for example a Move, Resize, or Rotate operation, or a transition.

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ComponentOp(S self)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit apply()
      abstract Boolean unapply()
      Boolean verify() override this function to verify that this operation is valid, which is run before it is applied.
      Boolean exclusive() If this is true, when this drawable operation is attempted to be added, if one is already present, instead of replacing it, it will be ignored.
      final Unit add()
      final Unit remove()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ComponentOp

        ComponentOp(S self)
    • Method Detail

      • verify

         Boolean verify()

        override this function to verify that this operation is valid, which is run before it is applied. (default: always true)

        Returns:

        true if this operation is deemed to be valid.

        Since:

        1.1.1

      • exclusive

         Boolean exclusive()

        If this is true, when this drawable operation is attempted to be added, if one is already present, instead of replacing it, it will be ignored.

        Since:

        1.5.0