com.steadystate.css.dom
Class RectImpl

java.lang.Object
  extended by com.steadystate.css.dom.RectImpl
All Implemented Interfaces:
Serializable, org.w3c.dom.css.Rect

public class RectImpl
extends Object
implements org.w3c.dom.css.Rect, Serializable

Implementation of Rect.

Author:
David Schweinsberg
See Also:
Serialized Form

Constructor Summary
RectImpl()
          Constructor.
RectImpl(org.w3c.css.sac.LexicalUnit lu)
          Constructor that reads the values from the given chain of LexicalUnits.
 
Method Summary
 org.w3c.dom.css.CSSPrimitiveValue getBottom()
          Returns the bottom part.
 org.w3c.dom.css.CSSPrimitiveValue getLeft()
          Returns the left part.
 org.w3c.dom.css.CSSPrimitiveValue getRight()
          Returns the right part.
 org.w3c.dom.css.CSSPrimitiveValue getTop()
          Returns the top part.
 void setBottom(org.w3c.dom.css.CSSPrimitiveValue bottom)
          Sets the bottom part to a new value.
 void setLeft(org.w3c.dom.css.CSSPrimitiveValue left)
          Sets the left part to a new value.
 void setRight(org.w3c.dom.css.CSSPrimitiveValue right)
          Sets the right part to a new value.
 void setTop(org.w3c.dom.css.CSSPrimitiveValue top)
          Sets the top part to a new value.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RectImpl

public RectImpl(org.w3c.css.sac.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

RectImpl

public RectImpl()
Constructor. The values for the coordinates are null.

Method Detail

getTop

public org.w3c.dom.css.CSSPrimitiveValue getTop()
Returns the top part.

Specified by:
getTop in interface org.w3c.dom.css.Rect

setTop

public void setTop(org.w3c.dom.css.CSSPrimitiveValue top)
Sets the top part to a new value.

Parameters:
top - the new CSSPrimitiveValue

getRight

public org.w3c.dom.css.CSSPrimitiveValue getRight()
Returns the right part.

Specified by:
getRight in interface org.w3c.dom.css.Rect

setRight

public void setRight(org.w3c.dom.css.CSSPrimitiveValue right)
Sets the right part to a new value.

Parameters:
right - the new CSSPrimitiveValue

getBottom

public org.w3c.dom.css.CSSPrimitiveValue getBottom()
Returns the bottom part.

Specified by:
getBottom in interface org.w3c.dom.css.Rect

setBottom

public void setBottom(org.w3c.dom.css.CSSPrimitiveValue bottom)
Sets the bottom part to a new value.

Parameters:
bottom - the new CSSPrimitiveValue

getLeft

public org.w3c.dom.css.CSSPrimitiveValue getLeft()
Returns the left part.

Specified by:
getLeft in interface org.w3c.dom.css.Rect

setLeft

public void setLeft(org.w3c.dom.css.CSSPrimitiveValue left)
Sets the left part to a new value.

Parameters:
left - the new CSSPrimitiveValue

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2013. All rights reserved.