Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/jfree/StickyAxisAnnotation.java @ 2163:105097966111
Theoretically allow annotations on second y ais. Practically allow Q MainValues on Q Axis in Duration Curves.
flys-artifacts/trunk@3750 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 23 Jan 2012 14:18:53 +0000 |
parents | c68f4f227c09 |
children | 7dc4681a2bed |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/jfree/StickyAxisAnnotation.java Mon Jan 23 11:06:06 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/jfree/StickyAxisAnnotation.java Mon Jan 23 14:18:53 2012 +0000 @@ -21,6 +21,9 @@ Y_AXIS /** Usually "vertical". */ } + /** The "symbolic" integer representing which axis to stick to. */ + protected int axisSymbol; + /** Which axis to stick to. */ protected SimpleAxis stickyAxis = SimpleAxis.X_AXIS; @@ -49,9 +52,16 @@ */ public StickyAxisAnnotation(String text, float pos, SimpleAxis stickAxis ) { + this(text, pos, stickAxis, 0); + } + + public StickyAxisAnnotation(String text, float pos, SimpleAxis stickAxis, + int axisSymbol + ) { setStickyAxis(stickAxis); this.text = text; this.pos = pos; + this.axisSymbol = axisSymbol; } @@ -81,5 +91,9 @@ public String getText() { return this.text; } + + public int getAxisSymbol() { + return this.axisSymbol; + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :