changeset 6452:9cbe58704604

StickyAxisAnnotation: Add setter for pos and docs.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 26 Jun 2013 21:13:43 +0200
parents 1c7e3426207a
children f11165468f0a
files artifacts/src/main/java/org/dive4elements/river/jfree/StickyAxisAnnotation.java
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/jfree/StickyAxisAnnotation.java	Wed Jun 26 21:51:47 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/jfree/StickyAxisAnnotation.java	Wed Jun 26 21:13:43 2013 +0200
@@ -95,14 +95,21 @@
     }
 
 
+    /** The position (relative to axis). */
     public float getPos() {
         return this.pos;
     }
 
+    /** The position (relative to axis). */
+    public void setPos(double pos) {
+        this.pos = (float) pos;
+    }
+
     public SimpleAxis getStickyAxis() {
         return this.stickyAxis;
     }
 
+    /** True if at x axis. */
     public boolean atX() {
         return this.getStickyAxis() == SimpleAxis.X_AXIS;
     }

http://dive4elements.wald.intevation.org