de.soldin.gt2jump
Class UndoableSetGeometry
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
de.soldin.gt2jump.UndoableSetGeometry
- All Implemented Interfaces:
- Collection, Serializable, UndoableEdit
- public class UndoableSetGeometry
- extends AbstractUndoableEdit
- implements Collection
The UndoableSetGeometry is a implementation of a
Collection, as well as a AbstractUndoableEdit. The purpose is to have
an undoable swing component for modifying geometries.
With these capabilities joined it can act as a container for multiple
UndoableSetGeometry objects, which can be executed in
a batch and as a single action.
- See Also:
- Serialized Form
UndoableSetGeometry
public UndoableSetGeometry(com.vividsolutions.jump.workbench.model.Layer layer,
String name)
UndoableSetGeometry
public UndoableSetGeometry(String name)
redo
public void redo()
- Specified by:
redo in interface UndoableEdit
undo
public void undo()
- Specified by:
undo in interface UndoableEdit
getPresentationName
public String getPresentationName()
- Specified by:
getPresentationName in interface UndoableEdit
getUndoPresentationName
public String getUndoPresentationName()
- Specified by:
getUndoPresentationName in interface UndoableEdit
getRedoPresentationName
public String getRedoPresentationName()
- Specified by:
getRedoPresentationName in interface UndoableEdit
execute
public void execute()
unexecute
public void unexecute()
getName
public String getName()
setGeom
public void setGeom(com.vividsolutions.jump.feature.Feature feature,
com.vividsolutions.jts.geom.Geometry geom)
getGeom
public com.vividsolutions.jts.geom.Geometry getGeom(com.vividsolutions.jump.feature.Feature in_feature)
add
public boolean add(UndoableSetGeometry t)
size
public int size()
- Specified by:
size in interface Collection
clear
public void clear()
- Specified by:
clear in interface Collection
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Collection
toArray
public Object[] toArray()
- Specified by:
toArray in interface Collection
add
public boolean add(Object o)
- Specified by:
add in interface Collection
contains
public boolean contains(Object o)
- Specified by:
contains in interface Collection
remove
public boolean remove(Object o)
- Specified by:
remove in interface Collection
addAll
public boolean addAll(Collection c)
- Specified by:
addAll in interface Collection
containsAll
public boolean containsAll(Collection c)
- Specified by:
containsAll in interface Collection
removeAll
public boolean removeAll(Collection c)
- Specified by:
removeAll in interface Collection
retainAll
public boolean retainAll(Collection c)
- Specified by:
retainAll in interface Collection
iterator
public Iterator iterator()
- Specified by:
iterator in interface Collection
toArray
public Object[] toArray(Object[] a)
- Specified by:
toArray in interface Collection