-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMouse_Mode.java
73 lines (55 loc) · 1.6 KB
/
Mouse_Mode.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.util.List;
public abstract class Mouse_Mode implements MouseListener, MouseMotionListener{
/**
* Point to the Canvas Object!
*/
public static Edit_panel canvas;
public int press_x =0;
public int press_y =0;
public int released_x = 0;
public int released_y = 0;
public int drag_x = 0;
public int drag_y = 0;
public int move_segment_start_x = 0;
public int move_segment_start_y = 0;
public boolean press_on_obj = false;
public boolean released_on_obj= false;
public drawing_class press_obj;
public drawing_class released_obj;
public Point move_vector = new Point(0,0);
public List<drawing_class> Current_object_status;
public static void set_canvas(Edit_panel canvas_)
{
canvas = canvas_;
}
public drawing_class Get_Pressed_Obj(){return null;}
@Override
public void mousePressed(MouseEvent arg0) {
// TODO Auto-generated method stub
}
@Override
public void mouseDragged(MouseEvent arg0) {
// TODO Auto-generated method stub
}
@Override
public void mouseReleased(MouseEvent arg0) {
// TODO Auto-generated method stub
}
@Override
public void mouseClicked(MouseEvent arg0) {}
@Override
public void mouseEntered(MouseEvent arg0) {
// TODO Auto-generated method stub
}
@Override
public void mouseExited(MouseEvent arg0) {
// TODO Auto-generated method stub
}
@Override
public void mouseMoved(MouseEvent arg0) {
// TODO Auto-generated method stub
}
}