/** * Return the union of the full bounds of each layer in the list of layers * viewed by this camera, or empty bounds if the list of layers viewed by * this camera is empty. * * @return the union of the full bounds of each layer in the list of layers * viewed by this camera, or empty bounds if the list of layers viewed * by this camera is empty */ public PBounds getUnionOfLayerFullBounds() { final PBounds result = new PBounds(); final int size = layers.size(); for (int i = 0; i < size; i++) { final PLayer each = (PLayer) layers.get(i); result.add(each.getFullBoundsReference()); } return result; }