Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/jfree/FLYSAnnotation.java @ 2768:1ddfb54e5db6
Added accidentally omitted file.
flys-artifacts/trunk@4507 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 24 May 2012 13:54:37 +0000 |
parents | a79d5cd26083 |
children | 0f7abd95c6e2 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/jfree/FLYSAnnotation.java Thu May 24 13:53:39 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/jfree/FLYSAnnotation.java Thu May 24 13:54:37 2012 +0000 @@ -94,5 +94,17 @@ public Document getTheme() { return theme; } + + /** + * Set sticky axis of all axisTextAnnotations + * to the X axis if it is currently Y, and vice versa. + * @return this + */ + public FLYSAnnotation flipStickyAxis() { + for (StickyAxisAnnotation saa: axisTextAnnotations) { + saa.flipStickyAxis(); + } + return this; + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :