|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jfig.utils.BoundingBoxCalculator
calculate the bounding box of FIG objects.
BoundingBoxCalculator: a simple utility class to calculate the bounding box (union) of an Enumeration of FigObject objects.
Constructor Summary | |
BoundingBoxCalculator()
|
Method Summary | |
static FigBbox |
getBoundingBox(java.util.Enumeration E)
given an Enumeration of FIG objects, that is, classes that implement the jfig.objects.FigObject interface, this method calculates the bounding box. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BoundingBoxCalculator()
Method Detail |
public static FigBbox getBoundingBox(java.util.Enumeration E)
As an useful default for empty drawings, a one-inch square is returned for an empty Enumeration. This is not so much a workaround against NullPointerExceptions, but helps in keeping a user-friendly zoom-factor in the jfig editor.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |