public class IlpRect extends IlvRect implements IlpPosition
Rectangle2D.Double, Rectangle2D.Floatheight, width, x, yOUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP| Constructor and Description |
|---|
IlpRect()
Creates a new rectangle.
|
IlpRect(double x,
double y,
double width,
double height)
Creates a new rectangle.
|
IlpRect(IlvRect rect)
Creates a new rectangle by copying an existing one.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Copies the rectangle.
|
double |
getHeight()
Returns the rectangle height.
|
double |
getWidth()
Returns the rectangle width.
|
void |
setHeight(double height)
Sets the rectangle height.
|
void |
setWidth(double width)
Sets the rectangle width.
|
void |
setX(double x)
Sets the rectangle X coordinate.
|
void |
setY(double y)
Sets the rectangle Y coordinate.
|
add, add, contains, equalsOrNear, expand, expand, floor, heightFloor, inside, intersection, intersects, move, reshape, resize, toString, translate, widthFloor, xFloor, yFloorcreateIntersection, createUnion, getBounds2D, getX, getY, isEmpty, outcode, setRect, setRectadd, add, contains, contains, equals, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, unioncontains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonalpublic IlpRect()
public IlpRect(double x,
double y,
double width,
double height)
public IlpRect(IlvRect rect)
rect - The copied rectangle.public Object clone()
clone in class RectangularShapepublic void setX(double x)
public void setY(double y)
public void setWidth(double width)
width - New widthpublic void setHeight(double height)
height - New heightpublic double getWidth()
getWidth in class Rectangle2D.Doublepublic double getHeight()
getHeight in class Rectangle2D.Double© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.