Revision 5885
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/Handler.java | ||
---|---|---|
74 | 74 |
* @return Punto. |
75 | 75 |
*/ |
76 | 76 |
public Point2D getPoint(); |
77 |
|
|
77 |
|
|
78 |
public boolean equalsPoint(Object obj); |
|
78 | 79 |
} |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/AbstractHandler.java | ||
---|---|---|
68 | 68 |
public boolean isSelected(){ |
69 | 69 |
return select; |
70 | 70 |
} |
71 |
public boolean equalsPoint(Object obj) { |
|
72 |
Point2D p1=this.getPoint(); |
|
73 |
Point2D p2=((Handler)obj).getPoint(); |
|
74 |
if (p1.getX()==p2.getX() && p1.getY()==p2.getY()) { |
|
75 |
return true; |
|
76 |
} |
|
77 |
return false; |
|
78 |
} |
|
71 | 79 |
} |
Also available in: Unified diff