|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.fontbox.util.BoundingBox
This is an implementation of a bounding box. This was originally written for the AMF parser.
| Constructor Summary | |
BoundingBox()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BoundingBox()
| Method Detail |
public float getLowerLeftX()
public void setLowerLeftX(float lowerLeftXValue)
lowerLeftXValue - New value of property lowerLeftX.public float getLowerLeftY()
public void setLowerLeftY(float lowerLeftYValue)
lowerLeftYValue - New value of property lowerLeftY.public float getUpperRightX()
public void setUpperRightX(float upperRightXValue)
upperRightXValue - New value of property upperRightX.public float getUpperRightY()
public void setUpperRightY(float upperRightYValue)
upperRightYValue - New value of property upperRightY.public float getWidth()
public float getHeight()
public boolean contains(float x,
float y)
x - The x coordinate.y - The y coordinate.
public boolean contains(Point point)
point - The point to check
public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||