Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/jfree/StickyAxisAnnotation.java @ 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 | af13ceeba52a |
children | 55c8519e49f1 |
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; }