svn-gvsig-desktop / trunk / applications / appgvSIG / src / com / iver / cit / gvsig / gui / layout / commands / AddFFrameCommand.java @ 3549
History | View | Annotate | Download (1.07 KB)
1 |
|
---|---|
2 |
package com.iver.cit.gvsig.gui.layout.commands; |
3 |
|
4 |
import java.io.IOException; |
5 |
|
6 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
7 |
import com.iver.cit.gvsig.fmap.drivers.DriverIOException; |
8 |
import com.iver.cit.gvsig.fmap.edition.commands.Command; |
9 |
import com.iver.cit.gvsig.gui.layout.Layout; |
10 |
import com.iver.cit.gvsig.gui.layout.fframes.IFFrame; |
11 |
|
12 |
|
13 |
/**
|
14 |
* A?ade una geometr?a nueva al EditableFeatureSource
|
15 |
*/
|
16 |
public class AddFFrameCommand implements Command { |
17 |
private IFFrame frame;
|
18 |
private int index; |
19 |
private EditableFeatureSource efs;
|
20 |
//private DefaultEditableFeatureSource efs;
|
21 |
public AddFFrameCommand(EditableFeatureSource efs,IFFrame f,int i){ |
22 |
this.efs=efs;
|
23 |
index=i; |
24 |
frame=f; |
25 |
} |
26 |
/**
|
27 |
* @throws IOException
|
28 |
* @throws DriverIOException
|
29 |
* @throws IOException
|
30 |
* @throws DriverIOException
|
31 |
* @see com.iver.cit.gvsig.fmap.edition.Command#undo()
|
32 |
*/
|
33 |
public void undo(){ |
34 |
efs.undoAddFFrame(index); |
35 |
} |
36 |
/**
|
37 |
* @throws DriverIOException
|
38 |
* @throws IOException
|
39 |
* @see com.iver.cit.gvsig.fmap.edition.Command#redo()
|
40 |
*/
|
41 |
public void redo(){ |
42 |
efs.doAddFFrame(frame,index); |
43 |
|
44 |
} |
45 |
} |