Class GravityPositionProviderAdapter

  • All Implemented Interfaces:
    PositionProvider

    public class GravityPositionProviderAdapter
    extends java.lang.Object
    implements PositionProvider
    Provide position for object based on gravity. Does not support RTL gravity.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      android.graphics.PointF provide​(android.util.Size viewportSize)  
      • Methods inherited from class java.lang.Object

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

      • GravityPositionProviderAdapter

        public GravityPositionProviderAdapter​(SizeProvider sizeProvider,
                                              int gravity)
    • Method Detail

      • provide

        public android.graphics.PointF provide​(@NonNull
                                               android.util.Size viewportSize)
        Specified by:
        provide in interface PositionProvider