Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/jfree/StickyAxisAnnotation.java @ 2766:7dc4681a2bed
Allow easy change of sticky axis for annotations.
flys-artifacts/trunk@4505 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 24 May 2012 13:43:35 +0000 |
parents | 105097966111 |
children | 5016609663e2 |
comparison
equal
deleted
inserted
replaced
2765:79f6d0802b06 | 2766:7dc4681a2bed |
---|---|
93 } | 93 } |
94 | 94 |
95 public int getAxisSymbol() { | 95 public int getAxisSymbol() { |
96 return this.axisSymbol; | 96 return this.axisSymbol; |
97 } | 97 } |
98 | |
99 /** Set sticky axis to the X axis if it is currently Y, and vice versa. */ | |
100 public void flipStickyAxis() { | |
101 if (this.getStickyAxis() == SimpleAxis.X_AXIS) { | |
102 this.setStickyAxis(SimpleAxis.Y_AXIS); | |
103 } | |
104 else { | |
105 this.setStickyAxis(SimpleAxis.X_AXIS); | |
106 } | |
107 } | |
98 } | 108 } |
99 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 109 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |