svn-gvsig-desktop / trunk / libraries / libCq CMS for java.old / src / org / cresques / ui / cmd / CmdSelect.java @ 91
History | View | Annotate | Download (393 Bytes)
1 |
package org.cresques.ui.cmd; |
---|---|
2 |
|
3 |
import java.awt.Component; |
4 |
import java.awt.geom.Point2D; |
5 |
|
6 |
import org.cresques.ui.CQApp; |
7 |
|
8 |
public class CmdSelect extends Cmd { |
9 |
public static final int type=Cmd.SELECT; |
10 |
|
11 |
public CmdSelect(Component canvas) { |
12 |
super(canvas);
|
13 |
eventsWanted = LEFT | RIGHT | PRESS; |
14 |
} |
15 |
|
16 |
public void cmd(Point2D pt, int btn, int mouseEvent) { |
17 |
((CQApp) canvas).selectHoja(pt); |
18 |
} |
19 |
} |