originalTopLeft = new PointImpl(0f, 0f);
originalBottomRight = new PointImpl(0f, 0f);
return;
}
Node node = it.next();
Vector topLeftVector = new Vector(node.getTopLeftPosition());
Vector bottomRightVector = new Vector(node.getBottomRightPosition());
while (it.hasNext()) {
node = it.next();
if (node.getTopLeftPosition().getX() < topLeftVector.x) {
topLeftVector.x = node.getTopLeftPosition().getX();
}
if (node.getTopLeftPosition().getY() < topLeftVector.y) {
topLeftVector.y = node.getTopLeftPosition().getY();
}
if (node.getBottomRightPosition().getX() > bottomRightVector.x) {
bottomRightVector.x = node.getBottomRightPosition().getX();
}
if (node.getBottomRightPosition().getY() > bottomRightVector.y) {
bottomRightVector.y = node.getBottomRightPosition().getY();
}
}
originalTopLeft = new PointImpl(topLeftVector);
originalBottomRight = new PointImpl(bottomRightVector);