Constructor and Description |
---|
TextElement(T value,
double x,
double y,
double width,
double height)
Initializes new instance of
TextElement<T> class. |
Modifier and Type | Method and Description |
---|---|
double |
getHeight()
The height of the rectangle which contains the element (in pixels).
|
T |
getValue()
The element value.
|
double |
getWidth()
The width of the rectangle which contains the element (in pixels).
|
double |
getX()
The X coordinate of the highest left point on the page layout where the rectangle that contains element begins.
|
double |
getY()
The Y coordinate of the highest left point on the page layout where the rectangle that contains element begins.
|
String |
toString()
Returns a string that represents the current object.
|
public TextElement(T value, double x, double y, double width, double height)
Initializes new instance of TextElement<T>
class.
value
- The text element value.x
- The X coordinate of the highest left point on the page layout where the rectangle that contains element begins.y
- The Y coordinate of the highest left point on the page layout where the rectangle that contains element begins.width
- The width of the rectangle which contains the element (in pixels).height
- The height of the rectangle which contains the element (in pixels).IllegalArgumentException
- Thrown when value
is null.IllegalArgumentException
- Thrown when width
is less or equal to zero.IllegalArgumentException
- Thrown when height
is less or equal to zero.public final double getHeight()
public final T getValue()
public final double getWidth()
public final double getX()
public final double getY()