Class RectImpl

java.lang.Object
org.htmlunit.cssparser.dom.RectImpl
All Implemented Interfaces:
Serializable

public class RectImpl extends Object implements Serializable
Implementation of Rect.
See Also:
  • Field Details

  • Constructor Details

    • RectImpl

      public RectImpl(LexicalUnit lu) throws DOMException
      Constructor that reads the values from the given chain of LexicalUnits.
      Parameters:
      lu - the values
      Throws:
      DOMException - in case of error
  • Method Details

    • getTop

      public CSSValueImpl getTop()
      Returns:
      the top part.
    • setTop

      public void setTop(CSSValueImpl top)
      Sets the top part to a new value.
      Parameters:
      top - the new CSSPrimitiveValue
    • getRight

      public CSSValueImpl getRight()
      Returns:
      the right part.
    • setRight

      public void setRight(CSSValueImpl right)
      Sets the right part to a new value.
      Parameters:
      right - the new CSSPrimitiveValue
    • getBottom

      public CSSValueImpl getBottom()
      Returns:
      the bottom part.
    • setBottom

      public void setBottom(CSSValueImpl bottom)
      Sets the bottom part to a new value.
      Parameters:
      bottom - the new CSSPrimitiveValue
    • getLeft

      public CSSValueImpl getLeft()
      Returns:
      the left part.
    • setLeft

      public void setLeft(CSSValueImpl left)
      Sets the left part to a new value.
      Parameters:
      left - the new CSSPrimitiveValue
    • toString

      public String toString()
      Overrides:
      toString in class Object