Package org.pepstock.charba.client.dom
Class DOMRectangle
- java.lang.Object
- 
- org.pepstock.charba.client.dom.DOMRectangle
 
- 
 @JsType(isNative=true, name="DOMRect", namespace="<global>") public final class DOMRectangle extends ObjectDescribes the size and position of a rectangle of aBaseElement.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetBottom()Returns the bottom coordinate value of the rectangle (has the same value as y + height, or y if height is negative).doublegetHeight()Returns the height of the rectangle.doublegetLeft()Returns the left coordinate value of the rectangle (has the same value as x, or x + width if width is negative).doublegetRight()Returns the right coordinate value of the rectangle (has the same value as x + width, or x if width is negative).doublegetTop()Returns the top coordinate value of the rectangle (has the same value as y, or y + height if height is negative).doublegetWidth()Returns the width of the rectangle.doublegetX()Returns the x coordinate of the origin (typically the top-left corner of the rectangle).doublegetY()Returns the y coordinate of the origin (typically the top-left corner of the rectangle).
 
- 
- 
- 
Method Detail- 
getBottom@JsProperty public double getBottom() Returns the bottom coordinate value of the rectangle (has the same value as y + height, or y if height is negative).- Returns:
- the bottom coordinate value of the rectangle
 
 - 
getHeight@JsProperty public double getHeight() Returns the height of the rectangle.- Returns:
- the height of the rectangle
 
 - 
getLeft@JsProperty public double getLeft() Returns the left coordinate value of the rectangle (has the same value as x, or x + width if width is negative).- Returns:
- the left coordinate value of the rectangle
 
 - 
getRight@JsProperty public double getRight() Returns the right coordinate value of the rectangle (has the same value as x + width, or x if width is negative).- Returns:
- the right coordinate value of the rectangle
 
 - 
getTop@JsProperty public double getTop() Returns the top coordinate value of the rectangle (has the same value as y, or y + height if height is negative).- Returns:
- the top coordinate value of the rectangle
 
 - 
getWidth@JsProperty public double getWidth() Returns the width of the rectangle.- Returns:
- the width of the rectangle
 
 - 
getX@JsProperty public double getX() Returns the x coordinate of the origin (typically the top-left corner of the rectangle).- Returns:
- the x coordinate of the origin (typically the top-left corner of the rectangle)
 
 - 
getY@JsProperty public double getY() Returns the y coordinate of the origin (typically the top-left corner of the rectangle).- Returns:
- the y coordinate of the origin (typically the top-left corner of the rectangle).
 
 
- 
 
-