# HG changeset patch # User Felix Wolfsteller # Date 1337867677 0 # Node ID 1ddfb54e5db651eb97c36d28ec72a779b65bcbde # Parent 1cb072d0978d6e0f2eaf6d8e26ea33b84e044997 Added accidentally omitted file. flys-artifacts/trunk@4507 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 1cb072d0978d -r 1ddfb54e5db6 flys-artifacts/src/main/java/de/intevation/flys/jfree/FLYSAnnotation.java --- 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 :