public class XprObjRectangle extends XprObjGraphics
Modifier and Type | Field and Description |
---|---|
private boolean |
isRounded
Flag indicating rounded rectangle
|
static double |
RADIUS_SCALE
Rounded rectangles radius constant.
|
private float |
rectLineWidth
The rectangle line width.
|
TYPE_BARCODE, TYPE_BOOKMARK, TYPE_FILLED_RECTANGLE, TYPE_IMAGE, TYPE_LINE, TYPE_RECTANGLE, TYPE_TEXT, TYPE_UNDEFINED
Constructor and Description |
---|
XprObjRectangle(int rectColor,
double rowStart,
double colStart,
double rowEnd,
double colEnd,
int width,
boolean rounded)
Create a new rectangle XPR object.
|
XprObjRectangle(int objType,
int rectColor,
double rowStart,
double colStart,
double rowEnd,
double colEnd,
int width,
boolean rounded)
Create a new rectangle XPR object for fugure that has inheritance from this rectangle.
|
Modifier and Type | Method and Description |
---|---|
float |
getRectLineWidth()
Returns the rectangle line width in points.
|
boolean |
isRounded()
Returns the rounded flag for rectangle.
|
getColumnEnd, getRowEnd
getColor, getColumn, getLeftMargin, getRow, getTopMargin, getType, setMargins
public static final double RADIUS_SCALE
private float rectLineWidth
private boolean isRounded
public XprObjRectangle(int rectColor, double rowStart, double colStart, double rowEnd, double colEnd, int width, boolean rounded)
rectColor
- Rectangle color.rowStart
- The starting row value for rectangle.colStart
- The starting column value for rectangle.rowEnd
- The ending row value for rectangle.colEnd
- The ending column value for rectangle.width
- The line width.rounded
- The rectangle is rounded when TRUE
.public XprObjRectangle(int objType, int rectColor, double rowStart, double colStart, double rowEnd, double colEnd, int width, boolean rounded)
objType
- Another rectangle object type.rectColor
- Rectangle color.rowStart
- The starting row value for rectangle.colStart
- The starting column value for rectangle.rowEnd
- The ending row value for rectangle.colEnd
- The ending column value for rectangle.width
- The line width.rounded
- The rectangle is rounded when TRUE
.public float getRectLineWidth()
public boolean isRounded()
TRUE
if rectangle is rounded, FALSE
otherwise.