Package com.datalogics.PDFL
Class RectSegment
java.lang.Object
com.datalogics.PDFL.Segment
com.datalogics.PDFL.RectSegment
A rectangle path operator. RectSegment represents a single path, or line, within a rectangle, with coordinates xy, xy for the beginning and end of the line.
-
Constructor Summary
ConstructorsConstructorDescriptionRectSegment(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. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()doubleThe height of the rectangle.getPoint()The lower left corner of the rectangle.doublegetWidth()The width of the rectangle.voidsetHeight(double value) The height of the rectangle.voidThe lower left corner of the rectangle.voidsetWidth(double value) The width of the rectangle.toString()
-
Constructor Details
-
RectSegment
Append a rectangle to the current path as a complete subpath, with lower-left corner point and dimensions width and height in user space.- Parameters:
point- the lower left corner of the rectangle.width- the width of the rectangle.height- the height of the rectangle.
-
RectSegment
public 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.- Parameters:
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.
-
-
Method Details
-
delete
public void delete() -
toString
-
setPoint
The lower left corner of the rectangle. -
getPoint
The lower left corner of the rectangle. -
setWidth
public void setWidth(double value) The width of the rectangle. -
getWidth
public double getWidth()The width of the rectangle. -
setHeight
public void setHeight(double value) The height of the rectangle. -
getHeight
public double getHeight()The height of the rectangle.
-