Package 

Class GlobalBounds


  • 
    public final class GlobalBounds
    
                        

    Defines the dimension and positions in Global coordinates for a geometry. By Global we mean that the View position will not be relative to its parent but to the Device screen. These dimensions are already normalized according with the current device screen density. Example: if a device has a DPI = 2, the value of the dimension or position is divided by 2 to get a normalized value.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Long x
      private final Long y
      private final Long width
      private final Long height
    • Method Summary

      Modifier and Type Method Description
      final Long getX()
      final Long getY()
      final Long getWidth()
      final Long getHeight()
      • Methods inherited from class java.lang.Object

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

      • GlobalBounds

        GlobalBounds(Long x, Long y, Long width, Long height)
        Parameters:
        x - as the position on X axis
        y - as the position on Y axis
        width - as the width
        height - as the height