Class UndoableSetGeometry
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
de.soldin.jumpcore.UndoableSetGeometry
- All Implemented Interfaces:
Serializable, Iterable, Collection, UndoableEdit
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:
-
Field Summary
Fields inherited from class AbstractUndoableEdit
RedoName, UndoName -
Constructor Summary
ConstructorsConstructorDescriptionUndoableSetGeometry(Layer layer, String name) UndoableSetGeometry(String name) -
Method Summary
Methods inherited from class AbstractUndoableEdit
addEdit, canRedo, canUndo, die, isSignificant, replaceEdit, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
UndoableSetGeometry
-
UndoableSetGeometry
-
-
Method Details
-
redo
public void redo()- Specified by:
redoin interfaceUndoableEdit- Overrides:
redoin classAbstractUndoableEdit
-
undo
public void undo()- Specified by:
undoin interfaceUndoableEdit- Overrides:
undoin classAbstractUndoableEdit
-
getPresentationName
- Specified by:
getPresentationNamein interfaceUndoableEdit- Overrides:
getPresentationNamein classAbstractUndoableEdit
-
getUndoPresentationName
- Specified by:
getUndoPresentationNamein interfaceUndoableEdit- Overrides:
getUndoPresentationNamein classAbstractUndoableEdit
-
getRedoPresentationName
- Specified by:
getRedoPresentationNamein interfaceUndoableEdit- Overrides:
getRedoPresentationNamein classAbstractUndoableEdit
-
execute
public void execute() -
unexecute
public void unexecute() -
getName
-
setGeom
-
getGeom
-
add
-
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
- Specified by:
toArrayin interfaceCollection
-
add
- Specified by:
addin interfaceCollection
-
contains
- Specified by:
containsin interfaceCollection
-
remove
- Specified by:
removein interfaceCollection
-
addAll
- Specified by:
addAllin interfaceCollection
-
containsAll
- Specified by:
containsAllin interfaceCollection
-
removeAll
- Specified by:
removeAllin interfaceCollection
-
retainAll
- Specified by:
retainAllin interfaceCollection
-
iterator
- Specified by:
iteratorin interfaceCollection- Specified by:
iteratorin interfaceIterable
-
toArray
- Specified by:
toArrayin interfaceCollection
-