svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libFMap_mapcontrol / src / org / gvsig / fmap / mapcontrol / tools / snapping / snappers / ISnapper.java @ 23645
History | View | Annotate | Download (603 Bytes)
1 |
package org.gvsig.fmap.mapcontrol.tools.snapping.snappers; |
---|---|
2 |
|
3 |
import java.awt.Graphics; |
4 |
import java.awt.geom.Point2D; |
5 |
|
6 |
/**
|
7 |
* @author fjp
|
8 |
*
|
9 |
*/
|
10 |
public interface ISnapper { |
11 |
|
12 |
|
13 |
// void setSnapPoint(Point2D snapPoint);
|
14 |
|
15 |
void draw(Graphics g, Point2D pPixels); |
16 |
|
17 |
String getToolTipText();
|
18 |
|
19 |
/**
|
20 |
* Implement this if you need a Snapper more important than the others.
|
21 |
* Default value is 0 (no prority).
|
22 |
* @return
|
23 |
*/
|
24 |
int getPriority();
|
25 |
|
26 |
boolean isEnabled();
|
27 |
public void setEnabled(boolean enabled); |
28 |
public void setPriority(int priority); |
29 |
Object getConfigurator();
|
30 |
|
31 |
} |