Updates the bounds of the current EPS document.
(double x, double y)
| 69 | * Updates the bounds of the current EPS document. |
| 70 | */ |
| 71 | public synchronized void updateBounds(double x, double y) { |
| 72 | if(x>maxX) { |
| 73 | maxX = (float) x; |
| 74 | } |
| 75 | if(x<minX) { |
| 76 | minX = (float) x; |
| 77 | } |
| 78 | if(y>maxY) { |
| 79 | maxY = (float) y; |
| 80 | } |
| 81 | if(y<minY) { |
| 82 | minY = (float) y; |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | /** |
| 87 | * Appends a line to the EpsDocument. A new line character is added |