Package de.soldin.jumpcore
Class UndoableSetGeometry
- java.lang.Object
-
- javax.swing.undo.AbstractUndoableEdit
-
- de.soldin.jumpcore.UndoableSetGeometry
-
- All Implemented Interfaces:
Serializable,Iterable,Collection,UndoableEdit
public class UndoableSetGeometry extends AbstractUndoableEdit implements Collection
TheUndoableSetGeometryis a implementation of aCollection, as well as aAbstractUndoableEdit. The purpose is to have an undoable swing component for modifying geometries.With these capabilities joined it can act as a container for multiple
UndoableSetGeometryobjects, which can be executed in a batch and as a single action.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
-
-
Constructor Summary
Constructors Constructor Description UndoableSetGeometry(Layer layer, String name)UndoableSetGeometry(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(UndoableSetGeometry t)booleanadd(Object o)booleanaddAll(Collection c)voidclear()booleancontains(Object o)booleancontainsAll(Collection c)voidexecute()org.locationtech.jts.geom.GeometrygetGeom(Feature in_feature)StringgetName()StringgetPresentationName()StringgetRedoPresentationName()StringgetUndoPresentationName()booleanisEmpty()Iteratoriterator()voidredo()booleanremove(Object o)booleanremoveAll(Collection c)booleanretainAll(Collection c)voidsetGeom(Feature feature, org.locationtech.jts.geom.Geometry geom)intsize()Object[]toArray()Object[]toArray(Object[] a)voidundo()voidunexecute()-
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, die, isSignificant, replaceEdit, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
Method Detail
-
redo
public void redo()
- Specified by:
redoin interfaceUndoableEdit- Overrides:
redoin classAbstractUndoableEdit
-
undo
public void undo()
- Specified by:
undoin interfaceUndoableEdit- Overrides:
undoin classAbstractUndoableEdit
-
getPresentationName
public String getPresentationName()
- Specified by:
getPresentationNamein interfaceUndoableEdit- Overrides:
getPresentationNamein classAbstractUndoableEdit
-
getUndoPresentationName
public String getUndoPresentationName()
- Specified by:
getUndoPresentationNamein interfaceUndoableEdit- Overrides:
getUndoPresentationNamein classAbstractUndoableEdit
-
getRedoPresentationName
public String getRedoPresentationName()
- Specified by:
getRedoPresentationNamein interfaceUndoableEdit- Overrides:
getRedoPresentationNamein classAbstractUndoableEdit
-
execute
public void execute()
-
unexecute
public void unexecute()
-
getName
public String getName()
-
setGeom
public void setGeom(Feature feature, org.locationtech.jts.geom.Geometry geom)
-
getGeom
public org.locationtech.jts.geom.Geometry getGeom(Feature in_feature)
-
add
public boolean add(UndoableSetGeometry t)
-
size
public int size()
- Specified by:
sizein interfaceCollection
-
clear
public void clear()
- Specified by:
clearin interfaceCollection
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection
-
add
public boolean add(Object o)
- Specified by:
addin interfaceCollection
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection
-
addAll
public boolean addAll(Collection c)
- Specified by:
addAllin interfaceCollection
-
containsAll
public boolean containsAll(Collection c)
- Specified by:
containsAllin interfaceCollection
-
removeAll
public boolean removeAll(Collection c)
- Specified by:
removeAllin interfaceCollection
-
retainAll
public boolean retainAll(Collection c)
- Specified by:
retainAllin interfaceCollection
-
iterator
public Iterator iterator()
- Specified by:
iteratorin interfaceCollection- Specified by:
iteratorin interfaceIterable
-
toArray
public Object[] toArray(Object[] a)
- Specified by:
toArrayin interfaceCollection
-
-