svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.impl / src / main / java / org / gvsig / fmap / dal / feature / impl / undo / FeatureCommandsStack.java @ 45739
History | View | Annotate | Download (2.25 KB)
1 | 40559 | jjdelcerro | /**
|
---|---|---|---|
2 | * gvSIG. Desktop Geographic Information System.
|
||
3 | *
|
||
4 | * Copyright (C) 2007-2013 gvSIG Association.
|
||
5 | *
|
||
6 | * This program is free software; you can redistribute it and/or
|
||
7 | * modify it under the terms of the GNU General Public License
|
||
8 | * as published by the Free Software Foundation; either version 3
|
||
9 | * of the License, or (at your option) any later version.
|
||
10 | *
|
||
11 | * This program is distributed in the hope that it will be useful,
|
||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
14 | * GNU General Public License for more details.
|
||
15 | *
|
||
16 | * You should have received a copy of the GNU General Public License
|
||
17 | * along with this program; if not, write to the Free Software
|
||
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||
19 | * MA 02110-1301, USA.
|
||
20 | *
|
||
21 | * For any additional information, do not hesitate to contact us
|
||
22 | * at info AT gvsig.com, or visit our website www.gvsig.com.
|
||
23 | */
|
||
24 | 40435 | jjdelcerro | package org.gvsig.fmap.dal.feature.impl.undo; |
25 | |||
26 | import org.gvsig.fmap.dal.exception.DataException; |
||
27 | import org.gvsig.fmap.dal.feature.*; |
||
28 | import org.gvsig.fmap.dal.feature.impl.DefaultFeatureReferenceSelection; |
||
29 | import org.gvsig.fmap.dal.feature.impl.DefaultFeatureStore; |
||
30 | import org.gvsig.tools.undo.command.UndoRedoCommandStack; |
||
31 | |||
32 | public interface FeatureCommandsStack extends UndoRedoCommandStack { |
||
33 | |||
34 | 45739 | jjdelcerro | public void insert(EditableFeature feature) throws DataException; |
35 | 40435 | jjdelcerro | |
36 | 45739 | jjdelcerro | public void update(EditableFeature feature, Feature oldFeature) throws DataException; |
37 | 40435 | jjdelcerro | |
38 | public void delete(Feature feature) throws DataException; |
||
39 | |||
40 | public void update(FeatureType featureType, FeatureType oldFeatureType); |
||
41 | |||
42 | public void select(DefaultFeatureReferenceSelection selection, |
||
43 | FeatureReference reference); |
||
44 | |||
45 | public void deselect(DefaultFeatureReferenceSelection selection, |
||
46 | FeatureReference reference); |
||
47 | |||
48 | public void selectAll(DefaultFeatureReferenceSelection selection) |
||
49 | throws DataException;
|
||
50 | |||
51 | public void deselectAll(DefaultFeatureReferenceSelection selection) |
||
52 | throws DataException;
|
||
53 | |||
54 | public void selectionReverse(DefaultFeatureReferenceSelection selection); |
||
55 | |||
56 | public void selectionSet(DefaultFeatureStore store, |
||
57 | FeatureSelection oldSelection, FeatureSelection newSelection); |
||
58 | |||
59 | } |