01: /*
02: * uDig - User Friendly Desktop Internet GIS client http://udig.refractions.net (C) 2004,
03: * Refractions Research Inc. This library is free software; you can redistribute it and/or modify it
04: * under the terms of the GNU Lesser General Public License as published by the Free Software
05: * Foundation; version 2.1 of the License. This library is distributed in the hope that it will be
06: * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
07: * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
08: */
09: package net.refractions.udig.project.ui.render.displayAdapter;
10:
11: import net.refractions.udig.project.render.displayAdapter.IMapDisplay;
12:
13: /**
14: * Event Mouse wheel events. API use?example?
15: *
16: * @author Jones
17: * @since 0.3
18: * @see MapMouseEvent
19: */
20: public class MapMouseWheelEvent extends MapMouseEvent {
21:
22: /** The number of wheel clicks. Positive indicates forward/up scroll direction. */
23: public final int clickCount;
24:
25: /**
26: * Construct <code>MapMouseWheelEvent</code>.
27: *
28: * @param source The object that raised the event
29: * @param state the state of the event ORed together
30: * @param x the x position of the event
31: * @param y the y position of the event
32: * @param clickCount The number of wheel clicks. Positive indicates forward/up scroll direction.
33: */
34: public MapMouseWheelEvent(IMapDisplay source, int x, int y,
35: int modifiers, int buttons, int button, int clickCount) {
36: super (source, x, y, modifiers, buttons, NONE);
37: this .clickCount = clickCount;
38: }
39:
40: /**
41: * Returns the number of wheel clicks. Positive indicates forward/up scroll direction. API is
42: * this method required?
43: *
44: * @return the number of wheel clicks.
45: */
46: public int getClickCount() {
47: return clickCount;
48: }
49: }
|