Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java @ 2542:c48e3df12c4a
Cosmetics.
flys-client/trunk@4495 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 24 May 2012 05:25:38 +0000 |
parents | 936e3e6cd9b9 |
children | a805118fffa6 |
comparison
equal
deleted
inserted
replaced
2541:f0191dedee49 | 2542:c48e3df12c4a |
---|---|
365 updateChartPanel(); | 365 updateChartPanel(); |
366 } | 366 } |
367 | 367 |
368 | 368 |
369 /** | 369 /** |
370 * This method is used to zoom out. Zooming out is realizied with a stacked | 370 * This method is used to zoom out. Zooming out is realized with a stacked |
371 * logic. Initially, you cannot zoom out. For each time you start a zoom-in | 371 * logic. Initially, you cannot zoom out. For each time you start a zoom-in |
372 * action, the extent of the chart is stored and pushed onto a stack. A | 372 * action, the extent of the chart is stored and pushed onto a stack. A |
373 * zoom-out will now lead you to the last extent that is poped from stack. | 373 * zoom-out will now lead you to the last extent that is popped from stack. |
374 * | |
375 */ | 374 */ |
376 public void zoomOut() { | 375 public void zoomOut() { |
377 if (!zoomStack.empty()) { | 376 if (!zoomStack.empty()) { |
378 zoom = zoomStack.pop().getZoom(); | 377 zoom = zoomStack.pop().getZoom(); |
379 | 378 |
521 return chartInfo.getTransformer(pos); | 520 return chartInfo.getTransformer(pos); |
522 } | 521 } |
523 | 522 |
524 | 523 |
525 /** | 524 /** |
526 * Returns the Transform2D count | 525 * Returns the Transform2D count. |
527 * | 526 * |
528 * @return the Transformer2D count | 527 * @return the Transformer2D count |
529 */ | 528 */ |
530 public int getTransformerCount() { | 529 public int getTransformerCount() { |
531 if (chartInfo == null) { | 530 if (chartInfo == null) { |
618 | 617 |
619 return imgUrl; | 618 return imgUrl; |
620 } | 619 } |
621 | 620 |
622 | 621 |
622 /** Get link to export image in given dimension and format. */ | |
623 public String getExportUrl(int width, int height, String format) { | 623 public String getExportUrl(int width, int height, String format) { |
624 String url = getImgUrl(width, height); | 624 String url = getImgUrl(width, height); |
625 url += "&format=" + format; | 625 url += "&format=" + format; |
626 url += "&export=true"; | 626 url += "&export=true"; |
627 | 627 |