java.lang.Object
io.sf.carte.doc.geom.Rect
- All Implemented Interfaces:
DOMRect
Implementation of
DOMRect
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
The bottom of the rectangle.double
The height of the rectangle.double
getLeft()
The left of the rectangle.double
getRight()
The right of the rectangle.double
getTop()
The top of the rectangle.double
getWidth()
The width of the rectangle.double
getX()
The horizontal distance between the viewport’s left edge and the rectangle’s origin.double
getY()
The vertical distance between the viewport’s top edge and the rectangle’s origin.void
setHeight
(double height) Set the height of the rectangle.void
setWidth
(double width) Set the width of the rectangle.void
setX
(double value) Set the horizontal distance between the viewport’s left edge and the rectangle’s origin.void
setY
(double value) Set the vertical distance between the viewport’s top edge and the rectangle’s origin.
-
Constructor Details
-
Rect
public Rect() -
Rect
public Rect(double x, double y, double width, double height)
-
-
Method Details
-
getX
public double getX()Description copied from interface:DOMRect
The horizontal distance between the viewport’s left edge and the rectangle’s origin. -
setX
public void setX(double value) Description copied from interface:DOMRect
Set the horizontal distance between the viewport’s left edge and the rectangle’s origin. -
getY
public double getY()Description copied from interface:DOMRect
The vertical distance between the viewport’s top edge and the rectangle’s origin. -
setY
public void setY(double value) Description copied from interface:DOMRect
Set the vertical distance between the viewport’s top edge and the rectangle’s origin. -
getWidth
public double getWidth()Description copied from interface:DOMRect
The width of the rectangle. Can be negative. -
setWidth
public void setWidth(double width) Description copied from interface:DOMRect
Set the width of the rectangle. -
getHeight
public double getHeight()Description copied from interface:DOMRect
The height of the rectangle. Can be negative. -
setHeight
public void setHeight(double height) Description copied from interface:DOMRect
Set the height of the rectangle. -
getTop
public double getTop()Description copied from interface:DOMRect
The top of the rectangle. -
getRight
public double getRight()Description copied from interface:DOMRect
The right of the rectangle. -
getBottom
public double getBottom()Description copied from interface:DOMRect
The bottom of the rectangle. -
getLeft
public double getLeft()Description copied from interface:DOMRect
The left of the rectangle.
-