Class ViewSize


  • public class ViewSize
    extends java.lang.Object
    • Constructor Detail

      • ViewSize

        public ViewSize()
      • ViewSize

        public ViewSize​(java.lang.Integer absoluteWidth,
                        java.lang.Float relativeWidth,
                        java.lang.Integer absoluteHeight,
                        java.lang.Float relativeHeight)
    • Method Detail

      • ofAbsoluteWidth

        public static ViewSize ofAbsoluteWidth​(int width)
      • ofRelativeWidth

        public static ViewSize ofRelativeWidth​(float width)
      • ofAbsoluteHeight

        public static ViewSize ofAbsoluteHeight​(int height)
      • ofRelativeHeight

        public static ViewSize ofRelativeHeight​(float height)
      • isWidthAvailable

        public boolean isWidthAvailable()
      • getAbsoluteWidth

        public java.lang.Integer getAbsoluteWidth()
      • setAbsoluteWidth

        public void setAbsoluteWidth​(java.lang.Integer absoluteWidth)
      • getRelativeWidth

        public java.lang.Float getRelativeWidth()
      • setRelativeWidth

        public void setRelativeWidth​(java.lang.Float relativeWidth)
      • isHeightAvailable

        public boolean isHeightAvailable()
      • getAbsoluteHeight

        public java.lang.Integer getAbsoluteHeight()
      • setAbsoluteHeight

        public void setAbsoluteHeight​(java.lang.Integer absoluteHeight)
      • getRelativeHeight

        public java.lang.Float getRelativeHeight()
      • setRelativeHeight

        public void setRelativeHeight​(java.lang.Float relativeHeight)