package imagej.display.event;

import net.imglib2.img.Axis;
import imagej.display.Display;

public class AxisPositionEvent extends DisplayEvent {

	private Axis axis;
	private long value;
	private long max;
	private boolean relative;
	
	public AxisPositionEvent(Display display, Axis axis, long value, long max, boolean relative)
	{
		super(display);
		this.axis = axis;
		this.value = value;
		this.max = max;
		this.relative = relative;
	}

	public Axis getAxis() { return axis; }
	
	public long getValue() { return value; }

	public long getMax() { return max; }
	
	public boolean isRelative() { return relative; }
}

@@ -1,8 +1,1648 @@
+//%0A// AxisPositionEvent.java%0A//%0A%0A/*%0AImageJ software for multidimensional image processing and analysis.%0A%0ACopyright (c) 2010, ImageJDev.org.%0AAll rights reserved.%0A%0ARedistribution and use in source and binary forms, with or without%0Amodification, are permitted provided that the following conditions are met:%0A    * Redistributions of source code must retain the above copyright%0A      notice, this list of conditions and the following disclaimer.%0A    * Redistributions in binary form must reproduce the above copyright%0A      notice, this list of conditions and the following disclaimer in the%0A      documentation and/or other materials provided with the distribution.%0A    * Neither the names of the ImageJDev.org developers nor the%0A      names of its contributors may be used to endorse or promote products%0A      derived from this software without specific prior written permission.%0A%0ATHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS %22AS IS%22%0AAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE%0AIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE%0AARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE%0ALIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR%0ACONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF%0ASUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS%0AINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN%0ACONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)%0AARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE%0APOSSIBILITY OF SUCH DAMAGE.%0A*/%0A%0A
 package 
@@ -1668,37 +1668,8 @@
 t;%0A%0A
-import net.imglib2.img.Axis;%0A
 impo
@@ -1695,16 +1695,156 @@
 isplay;%0A
+import net.imglib2.img.Axis;%0A%0A/**%0A * An event indicating that a display's dimensional position has changed.%0A * %0A * @author Barry DeZonia%0A */
 %0Apublic 
@@ -1900,16 +1900,22 @@
 private 
+final 
 Axis axi
@@ -1922,24 +1922,30 @@
 s;%0A%09private 
+final 
 long value;%0A
@@ -1953,16 +1953,22 @@
 private 
+final 
 long max
@@ -1978,16 +1978,22 @@
 private 
+final 
 boolean 
@@ -2002,17 +2002,16 @@
 lative;%0A
-%09
 %0A%09public
@@ -2029,16 +2029,22 @@
 onEvent(
+final 
 Display 
@@ -2051,16 +2051,22 @@
 display,
+ final
  Axis ax
@@ -2068,16 +2068,24 @@
 is axis,
+%0A%09%09final
  long va
@@ -2088,16 +2088,22 @@
 g value,
+ final
  long ma
@@ -2104,16 +2104,22 @@
 ong max,
+ final
  boolean
@@ -2262,25 +2262,27 @@
  getAxis() %7B
- 
+%0A%09%09
 return axis;
@@ -2281,20 +2281,20 @@
 rn axis;
- 
+%0A%09
 %7D%0A
-%09
 %0A%09public
@@ -2307,25 +2307,27 @@
 getValue() %7B
- 
+%0A%09%09
 return value
@@ -2327,17 +2327,18 @@
 n value;
- 
+%0A%09
 %7D%0A%0A%09publ
@@ -2351,25 +2351,27 @@
 g getMax() %7B
- 
+%0A%09%09
 return max; 
@@ -2373,12 +2373,12 @@
 max;
- 
+%0A%09
 %7D%0A
-%09
 %0A%09pu
@@ -2404,17 +2404,19 @@
 tive() %7B
- 
+%0A%09%09
 return r
@@ -2427,9 +2427,11 @@
 ive;
- %7D
+%0A%09%7D%0A
 %0A%7D%0A

Fix style and add javadoc for AxisPositionEvent.