public class XprObjBase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
color
Object color.
|
private double |
colStart
Initial object row coordinate.
|
private double |
leftMargin
Initial object left margin.
|
private int |
objType
The type of the current XPR object.
|
private double |
rowStart
Initial object row coordinate.
|
private double |
topMargin
Initial object top margin.
|
static int |
TYPE_BARCODE
Constant for object type is barcode.
|
static int |
TYPE_BOOKMARK
Constant for object type is bookmark.
|
static int |
TYPE_FILLED_RECTANGLE
Constant for object type is filled rectangle.
|
static int |
TYPE_IMAGE
Constant for object type is image.
|
static int |
TYPE_LINE
Constant for object type is line.
|
static int |
TYPE_RECTANGLE
Constant for object type is rectangle.
|
static int |
TYPE_TEXT
Constant for object type is text.
|
static int |
TYPE_UNDEFINED
Constant for not yet defined object.
|
Constructor and Description |
---|
XprObjBase(int type,
double row,
double column)
Create a new base XPR object.
|
XprObjBase(int type,
int color,
double row,
double column)
Create a new base XPR object.
|
Modifier and Type | Method and Description |
---|---|
int |
getColor()
Returns the object color value.
|
double |
getColumn()
Returns the object start column value.
|
double |
getLeftMargin()
Returns the object left margin column coordinate.
|
double |
getRow()
Returns the object start row value.
|
double |
getTopMargin()
Returns the object top margin row coordinate.
|
int |
getType()
Returns the object type value.
|
void |
setMargins(double marginLeft,
double marginTop)
Sets the object left margin column and top margin row coordinates.
|
public static final int TYPE_UNDEFINED
public static final int TYPE_LINE
public static final int TYPE_RECTANGLE
public static final int TYPE_FILLED_RECTANGLE
public static final int TYPE_IMAGE
public static final int TYPE_TEXT
public static final int TYPE_BOOKMARK
public static final int TYPE_BARCODE
private double rowStart
private double colStart
private double leftMargin
private double topMargin
private int objType
private int color
public XprObjBase(int type, int color, double row, double column)
type
- The object type value.color
- Object color.row
- The row value for object.column
- The column value for object.public XprObjBase(int type, double row, double column)
type
- The object type value.row
- The row value for object.column
- The column value for object.public double getRow()
public double getColumn()
public double getLeftMargin()
public double getTopMargin()
public void setMargins(double marginLeft, double marginTop)
marginLeft
- The new value for left margin.marginTop
- The new value for top margin.public int getType()
public int getColor()