comparison 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
comparison
equal deleted inserted replaced
6451:1c7e3426207a 6452:9cbe58704604
93 public void setStickyAxis(SimpleAxis stickyAxis) { 93 public void setStickyAxis(SimpleAxis stickyAxis) {
94 this.stickyAxis = stickyAxis; 94 this.stickyAxis = stickyAxis;
95 } 95 }
96 96
97 97
98 /** The position (relative to axis). */
98 public float getPos() { 99 public float getPos() {
99 return this.pos; 100 return this.pos;
101 }
102
103 /** The position (relative to axis). */
104 public void setPos(double pos) {
105 this.pos = (float) pos;
100 } 106 }
101 107
102 public SimpleAxis getStickyAxis() { 108 public SimpleAxis getStickyAxis() {
103 return this.stickyAxis; 109 return this.stickyAxis;
104 } 110 }
105 111
112 /** True if at x axis. */
106 public boolean atX() { 113 public boolean atX() {
107 return this.getStickyAxis() == SimpleAxis.X_AXIS; 114 return this.getStickyAxis() == SimpleAxis.X_AXIS;
108 } 115 }
109 116
110 /** Get text to be displayed at axis. */ 117 /** Get text to be displayed at axis. */

http://dive4elements.wald.intevation.org