Package org.loboevolution.html.js.geom
Class DOMRectImpl
java.lang.Object
org.loboevolution.html.js.geom.DOMRectImpl
- All Implemented Interfaces:
DOMRect
,DOMRectReadOnly
DOMRectImpl class.
-
Constructor Summary
ConstructorDescriptionDOMRectImpl
(int width, int height, int top, int bottom, int left) Constructor for DOMRectImpl. -
Method Summary
-
Constructor Details
-
Method Details
-
fromRect
fromRect.
- Specified by:
fromRect
in interfaceDOMRectReadOnly
- Returns:
- a DOMRectReadOnly.
-
fromRect
fromRect.
- Specified by:
fromRect
in interfaceDOMRectReadOnly
- Returns:
- a DOMRectReadOnly.
-
getX
public int getX()getX.
- Specified by:
getX
in interfaceDOMRectReadOnly
- Returns:
- a
Integer
object.
-
getY
public int getY()getY.
- Specified by:
getY
in interfaceDOMRectReadOnly
- Returns:
- a
Integer
object.
-
getWidth
public int getWidth()getWidth.
- Specified by:
getWidth
in interfaceDOMRectReadOnly
- Returns:
- a
Integer
object.
-
getBottom
public int getBottom()getBottom.
- Specified by:
getBottom
in interfaceDOMRectReadOnly
- Returns:
- a
Integer
object.
-
getHeight
public int getHeight()getHeight.
- Specified by:
getHeight
in interfaceDOMRectReadOnly
- Returns:
- a
Integer
object.
-
getLeft
public int getLeft()getLeft.
- Specified by:
getLeft
in interfaceDOMRectReadOnly
- Returns:
- a
Integer
object.
-
getRight
public int getRight()getRight.
- Specified by:
getRight
in interfaceDOMRectReadOnly
- Returns:
- a
Integer
object.
-
getTop
public int getTop()getTop.
- Specified by:
getTop
in interfaceDOMRectReadOnly
- Returns:
- a
Integer
object.
-
toString
-