Package 

Class Position.Relative

  • All Implemented Interfaces:

    
    public final class Position.Relative
    extends Position
                        

    Set relative position on the x and y axis of the KonfettiView. Some examples: x: 0.0, y: 0.0 Top left corner x: 1.0, y: 0.0 Top right corner x: 0.0, y: 1.0 Bottom left corner x: 1.0, y: 1.0 Bottom right corner x: 0.5, y: 0.5 Center of the view

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Double x
      private final Double y
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Double getX() the relative x coordinate as a double
      final Double getY() the relative y coordinate as a double
      final Position between(Position.Relative value)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait