svn-gvsig-desktop / trunk / extensions / extCAD / src / com / iver / cit / gvsig / gui / cad / snapping / ISnapper.java @ 5261
History | View | Annotate | Download (583 Bytes)
1 |
package com.iver.cit.gvsig.gui.cad.snapping; |
---|---|
2 |
|
3 |
import java.awt.Graphics; |
4 |
import java.awt.geom.Point2D; |
5 |
|
6 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
7 |
|
8 |
/**
|
9 |
* @author fjp
|
10 |
*
|
11 |
*/
|
12 |
public interface ISnapper { |
13 |
|
14 |
Point2D getSnapPoint(Point2D queryPoint, IGeometry geomToSnap, double tolerance, Point2D lastPointEntered); |
15 |
|
16 |
void setSnapPoint(Point2D snapPoint); |
17 |
|
18 |
void draw(Graphics g, Point2D pPixels); |
19 |
|
20 |
String getToolTipText();
|
21 |
|
22 |
/**
|
23 |
* Implement this if you need a Snapper more important than the others.
|
24 |
* Default value is 0 (no prority).
|
25 |
* @return
|
26 |
*/
|
27 |
int getPriority();
|
28 |
|
29 |
} |