java.lang.Object
io.sf.carte.doc.geom.Rect
- All Implemented Interfaces:
DOMRect
Implementation of
DOMRect.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleThe bottom of the rectangle.doubleThe height of the rectangle.doublegetLeft()The left of the rectangle.doublegetRight()The right of the rectangle.doublegetTop()The top of the rectangle.doublegetWidth()The width of the rectangle.doublegetX()The horizontal distance between the viewport’s left edge and the rectangle’s origin.doublegetY()The vertical distance between the viewport’s top edge and the rectangle’s origin.voidsetHeight(double height) Set the height of the rectangle.voidsetWidth(double width) Set the width of the rectangle.voidsetX(double value) Set the horizontal distance between the viewport’s left edge and the rectangle’s origin.voidsetY(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:DOMRectThe horizontal distance between the viewport’s left edge and the rectangle’s origin. -
setX
public void setX(double value) Description copied from interface:DOMRectSet the horizontal distance between the viewport’s left edge and the rectangle’s origin. -
getY
public double getY()Description copied from interface:DOMRectThe vertical distance between the viewport’s top edge and the rectangle’s origin. -
setY
public void setY(double value) Description copied from interface:DOMRectSet the vertical distance between the viewport’s top edge and the rectangle’s origin. -
getWidth
public double getWidth()Description copied from interface:DOMRectThe width of the rectangle. Can be negative. -
setWidth
public void setWidth(double width) Description copied from interface:DOMRectSet the width of the rectangle. -
getHeight
public double getHeight()Description copied from interface:DOMRectThe height of the rectangle. Can be negative. -
setHeight
public void setHeight(double height) Description copied from interface:DOMRectSet the height of the rectangle. -
getTop
public double getTop()Description copied from interface:DOMRectThe top of the rectangle. -
getRight
public double getRight()Description copied from interface:DOMRectThe right of the rectangle. -
getBottom
public double getBottom()Description copied from interface:DOMRectThe bottom of the rectangle. -
getLeft
public double getLeft()Description copied from interface:DOMRectThe left of the rectangle.
-