309310311312313314315316317318319320
public Bounds getBounds() { Bounds bounds = new Bounds(); Iterator<HatchBoundaryLoop> i = this.boundaries.iterator(); while (i.hasNext()) { HatchBoundaryLoop loop = (HatchBoundaryLoop) i.next(); Bounds b = loop.getBounds(); if (b.isValid()) { bounds.addToBounds(b); } }
216217218219220221222223224225226
if (!this.polylineBoundary) { this.endBoundaryElement(); } // a new loop starts this.loop = new HatchBoundaryLoop(); this.hatch.addBoundaryLoop(loop); // set the flags this.polylineBoundary = false; this.parseBoundary = true;