Class FixedWidthViewSizer

    • Constructor Summary

      Constructors 
      Constructor Description
      FixedWidthViewSizer​(float widthMeters)
      Constructor for creating a sizer for controlling the size of a ViewRenderable by defining a fixed width.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Vector3 getSize​(android.view.View view)
      Calculates the desired size of the view in the Scene.
      float getWidth()
      Returns the width in meters used for controlling the size of a ViewRenderable.
      • Methods inherited from class java.lang.Object

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

      • FixedWidthViewSizer

        public FixedWidthViewSizer​(float widthMeters)
        Constructor for creating a sizer for controlling the size of a ViewRenderable by defining a fixed width.
        Parameters:
        widthMeters - a number greater than zero representing the width in meters.
    • Method Detail

      • getWidth

        public float getWidth()
        Returns the width in meters used for controlling the size of a ViewRenderable.
      • getSize

        public Vector3 getSize​(android.view.View view)
        Description copied from interface: ViewSizer
        Calculates the desired size of the view in the Scene. Vector3.x represents the width, and Vector3.y represents the height.
        Specified by:
        getSize in interface ViewSizer
        Parameters:
        view - the view to calculate the size of
        Returns:
        a new vector that represents the view's size in the Scene