public class IlpRect extends IlvRect implements IlpPosition
Rectangle2D.Double, Rectangle2D.Float
height, width, x, y
OUT_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, yFloor
createIntersection, createUnion, getBounds2D, getX, getY, isEmpty, outcode, setRect, setRect
add, add, contains, contains, equals, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, union
contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
public 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 RectangularShape
public 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.Double
public double getHeight()
getHeight
in class Rectangle2D.Double
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.