Class RectPropertySet

  • Direct Known Subclasses:
    BorderPropertySet

    public class RectPropertySet
    extends java.lang.Object
    Represents a set of CSS properties that together define some rectangular area, and per-side thickness.
    • Field Detail

      • _top

        protected float _top
      • _right

        protected float _right
      • _bottom

        protected float _bottom
      • _left

        protected float _left
    • Constructor Detail

      • RectPropertySet

        protected RectPropertySet()
      • RectPropertySet

        public RectPropertySet​(CSSName cssName,
                               float top,
                               float right,
                               float bottom,
                               float left)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString

        public java.lang.String toString​(java.lang.String name)
        Returns the four values prepended with name.
      • top

        public float top()
      • right

        public float right()
      • bottom

        public float bottom()
      • left

        public float left()
      • getLeftRightDiff

        public float getLeftRightDiff()
      • height

        public float height()
      • width

        public float width()
      • setTop

        public void setTop​(float _top)
      • setRight

        public void setRight​(float _right)
      • setBottom

        public void setBottom​(float _bottom)
      • setLeft

        public void setLeft​(float _left)
      • isAllZeros

        public boolean isAllZeros()
      • hasNegativeValues

        public boolean hasNegativeValues()
      • resetNegativeValues

        public void resetNegativeValues()