Coordinates of a rectangle.
More...
List of all members.
Public Member Functions |
| | Rect () |
| | Constructor.
|
| | Rect (double aX1, double aY1, double aX2, double aY2) |
| | Constructor.
|
| void | set (double aX1, double aY1, double aX2, double aY2) |
| | Set the coordinates of the rectangle.
|
| double | height () |
| | Get the height of the rectangle.
|
| double | width () |
| | Get the width of the rectangle.
|
| void | normalize () |
| | Normalizes the rectangle.
|
| void | scale (double aFactor) |
| | scale the rectangle.
|
| double | getWidth () |
| | Get the width of the rectangle.
|
| double | getHeight () |
| | Get the height of the rectangle.
|
| String | toString () |
Public Attributes |
| double | mX1 |
| double | mY1 |
| double | mX2 |
| double | mY2 |
Detailed Description
Coordinates of a rectangle.
If coordinates are given in pixels (this is true for TIFF documents), the right and top coordinates are exclusive.
Constructor & Destructor Documentation
| de.softpro.doc.Rect.Rect |
( |
) |
|
Constructor.
All coordinates are set to 0.
| de.softpro.doc.Rect.Rect |
( |
double |
aX1, |
|
|
double |
aY1, |
|
|
double |
aX2, |
|
|
double |
aY2 |
|
) |
| |
Constructor.
- Parameters:
-
| [in] | aX1 | The first X coordinate. |
| [in] | aY1 | The first Y coordinate. |
| [in] | aX2 | The second X coordinate. |
| [in] | aY2 | The second Y coordinate. |
Member Function Documentation
| double de.softpro.doc.Rect.getHeight |
( |
) |
|
Get the height of the rectangle.
- Returns:
- The height of the rectangle.
| double de.softpro.doc.Rect.getWidth |
( |
) |
|
Get the width of the rectangle.
- Returns:
- The width of the rectangle.
| double de.softpro.doc.Rect.height |
( |
) |
|
Get the height of the rectangle.
- Returns:
- The height of the rectangle.
| void de.softpro.doc.Rect.normalize |
( |
) |
|
Normalizes the rectangle.
Normalizes the rectangle to the one with lower-left and upper-right corners assuming that the origin is in the lower-left corner of the page.
| void de.softpro.doc.Rect.scale |
( |
double |
aFactor ) |
|
scale the rectangle.
- Parameters:
-
| [in] | aFactor | The factor by which the rectangle is to be scaled. |
| void de.softpro.doc.Rect.set |
( |
double |
aX1, |
|
|
double |
aY1, |
|
|
double |
aX2, |
|
|
double |
aY2 |
|
) |
| |
Set the coordinates of the rectangle.
- Parameters:
-
| [in] | aX1 | The first X coordinate. |
| [in] | aY1 | The first Y coordinate. |
| [in] | aX2 | The second X coordinate. |
| [in] | aY2 | The second Y coordinate. |
| String de.softpro.doc.Rect.toString |
( |
) |
|
| double de.softpro.doc.Rect.width |
( |
) |
|
Get the width of the rectangle.
- Returns:
- The width of the rectangle.
Member Data Documentation
The documentation for this class was generated from the following file: