org.apache.fontbox.util
public class BoundingBox extends Object
Version: $Revision: 1.1 $
Method Summary | |
---|---|
boolean | contains(float x, float y)
Checks if a point is inside this rectangle.
|
boolean | contains(Point point)
Checks if a point is inside this rectangle.
|
float | getHeight()
This will get the height of this rectangle as calculated by
upperRightY - lowerLeftY.
|
float | getLowerLeftX()
Getter for property lowerLeftX.
|
float | getLowerLeftY()
Getter for property lowerLeftY.
|
float | getUpperRightX()
Getter for property upperRightX.
|
float | getUpperRightY()
Getter for property upperRightY.
|
float | getWidth()
This will get the width of this rectangle as calculated by
upperRightX - lowerLeftX.
|
void | setLowerLeftX(float lowerLeftXValue)
Setter for property lowerLeftX.
|
void | setLowerLeftY(float lowerLeftYValue)
Setter for property lowerLeftY.
|
void | setUpperRightX(float upperRightXValue)
Setter for property upperRightX.
|
void | setUpperRightY(float upperRightYValue)
Setter for property upperRightY.
|
String | toString()
This will return a string representation of this rectangle.
|
Parameters: x The x coordinate. y The y coordinate.
Returns: true If the point is on the edge or inside the rectangle bounds.
Parameters: point The point to check
Returns: true If the point is on the edge or inside the rectangle bounds.
Returns: The height of this rectangle.
Returns: Value of property lowerLeftX.
Returns: Value of property lowerLeftY.
Returns: Value of property upperRightX.
Returns: Value of property upperRightY.
Returns: The width of this rectangle.
Parameters: lowerLeftXValue New value of property lowerLeftX.
Parameters: lowerLeftYValue New value of property lowerLeftY.
Parameters: upperRightXValue New value of property upperRightX.
Parameters: upperRightYValue New value of property upperRightY.
Returns: This object as a string.