Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
NodeDoubleClickedEvent.java
1 
16 package net.squiz.matrix.matrixtree;
17 
18 import java.util.EventObject;
19 import javax.swing.tree.TreePath;
20 import java.awt.Point;
21 
29 public class NodeDoubleClickedEvent extends EventObject {
30 
31  private TreePath clickedPath;
32  private Point point;
33 
41  Object source,
42  TreePath clickedPath,
43  Point point) {
44  super(source);
45  this.clickedPath = clickedPath;
46  this.point = point;
47  }
48 
54  public TreePath getClickedPath() {
55  return clickedPath;
56  }
57 
63  public Point getPoint() {
64  return point;
65  }
66 
72  public int getX() {
73  return point.x;
74  }
75 
81  public int getY() {
82  return point.y;
83  }
84 }