public class RectSegment extends Segment
| Constructor and Description |
|---|
RectSegment(double x,
double y,
double width,
double height)
Append a rectangle to the current path as a complete subpath, with lower-left corner (x, y) and dimensions width and height in user space.
|
RectSegment(Point point,
double width,
double height)
Append a rectangle to the current path as a complete subpath, with lower-left corner point and dimensions width and height in user space.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
double |
getHeight()
The height of the rectangle.
|
Point |
getPoint()
The lower left corner of the rectangle.
|
double |
getWidth()
The width of the rectangle.
|
void |
setHeight(double value)
The height of the rectangle.
|
void |
setPoint(Point value)
The lower left corner of the rectangle.
|
void |
setWidth(double value)
The width of the rectangle.
|
java.lang.String |
toString() |
public RectSegment(Point point, double width, double height)
point - the lower left corner of the rectangle.width - the width of the rectangle.height - the height of the rectangle.public RectSegment(double x,
double y,
double width,
double height)
x - the left edge of the rectangle.y - the right edge of the rectangle.width - the width of the rectangle.height - the height of the rectangle.public void setPoint(Point value)
public Point getPoint()
public void setWidth(double value)
public double getWidth()
public void setHeight(double value)
public double getHeight()