# HG changeset patch # User Felix Wolfsteller # Date 1372274023 -7200 # Node ID 9cbe58704604b26c8c8e3e3cb5296aab9b0c4358 # Parent 1c7e3426207ab905779efc9646de4055d97edefe StickyAxisAnnotation: Add setter for pos and docs. diff -r 1c7e3426207a -r 9cbe58704604 artifacts/src/main/java/org/dive4elements/river/jfree/StickyAxisAnnotation.java --- 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; }