Class RectValue

  • All Implemented Interfaces:
    Value

    public class RectValue
    extends AbstractValue
    This class represents CSS rect values.
    Version:
    $Id: RectValue.java 1733416 2016-03-03 07:07:13Z gadams $
    • Field Detail

      • top

        protected Value top
        The top value.
      • right

        protected Value right
        The right value.
      • bottom

        protected Value bottom
        The bottom value.
      • left

        protected Value left
        The left value.
    • Constructor Detail

    • Method Detail

      • getCssText

        public java.lang.String getCssText()
        A string representation of the current value.
      • getTop

        public Value getTop()
                     throws org.w3c.dom.DOMException
        Implements Value.getTop().
        Specified by:
        getTop in interface Value
        Overrides:
        getTop in class AbstractValue
        Throws:
        org.w3c.dom.DOMException - INVALID_ACCESS_ERR: Raised if the value doesn't contain a Rect value.
      • getRight

        public Value getRight()
                       throws org.w3c.dom.DOMException
        Implements Value.getRight().
        Specified by:
        getRight in interface Value
        Overrides:
        getRight in class AbstractValue
        Throws:
        org.w3c.dom.DOMException - INVALID_ACCESS_ERR: Raised if the value doesn't contain a Rect value.
      • getBottom

        public Value getBottom()
                        throws org.w3c.dom.DOMException
        Implements Value.getBottom().
        Specified by:
        getBottom in interface Value
        Overrides:
        getBottom in class AbstractValue
        Throws:
        org.w3c.dom.DOMException - INVALID_ACCESS_ERR: Raised if the value doesn't contain a Rect value.
      • getLeft

        public Value getLeft()
                      throws org.w3c.dom.DOMException
        Implements Value.getLeft().
        Specified by:
        getLeft in interface Value
        Overrides:
        getLeft in class AbstractValue
        Throws:
        org.w3c.dom.DOMException - INVALID_ACCESS_ERR: Raised if the value doesn't contain a Rect value.
      • toString

        public java.lang.String toString()
        Returns a printable representation of this value.
        Overrides:
        toString in class java.lang.Object