01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: /**
18: * @author Michael Danilov
19: * @version $Revision$
20: */package java.awt.dnd;
21:
22: import java.awt.Component;
23: import java.awt.event.*;
24:
25: public abstract class MouseDragGestureRecognizer extends
26: DragGestureRecognizer implements MouseListener,
27: MouseMotionListener {
28:
29: private static final long serialVersionUID = 6220099344182281120L;
30:
31: protected MouseDragGestureRecognizer(DragSource ds, Component c,
32: int act, DragGestureListener dgl) {
33: super (ds, c, act, dgl);
34: }
35:
36: protected MouseDragGestureRecognizer(DragSource ds, Component c,
37: int act) {
38: super (ds, c, act);
39: }
40:
41: protected MouseDragGestureRecognizer(DragSource ds, Component c) {
42: super (ds, c);
43: }
44:
45: protected MouseDragGestureRecognizer(DragSource ds) {
46: super (ds);
47: }
48:
49: @Override
50: protected void registerListeners() {
51: if (component != null) {
52: component.addMouseListener(this );
53: component.addMouseMotionListener(this );
54: }
55: }
56:
57: @Override
58: protected void unregisterListeners() {
59: if (component != null) {
60: component.removeMouseListener(this );
61: component.removeMouseMotionListener(this );
62: }
63: }
64:
65: public void mouseReleased(MouseEvent e) {
66: }
67:
68: public void mousePressed(MouseEvent e) {
69: }
70:
71: public void mouseMoved(MouseEvent e) {
72: }
73:
74: public void mouseExited(MouseEvent e) {
75: }
76:
77: public void mouseEntered(MouseEvent e) {
78: }
79:
80: public void mouseDragged(MouseEvent e) {
81: }
82:
83: public void mouseClicked(MouseEvent e) {
84: }
85:
86: }
|