Package 

Class Shape.Rectangle

  • All Implemented Interfaces:
    nl.dionsegijn.konfetti.core.models.Shape

    
    public final class Shape.Rectangle
     implements Shape
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Float heightRatio
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Float getHeightRatio() The ratio of height to width.
      • Methods inherited from class java.lang.Object

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

      • Shape.Rectangle

        Shape.Rectangle(Float heightRatio)
    • Method Detail

      • getHeightRatio

         final Float getHeightRatio()

        The ratio of height to width. Must be within range 0, 1