public class UndoableSetGeometry
extends javax.swing.undo.AbstractUndoableEdit
implements java.util.Collection
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.
Constructor and Description |
---|
UndoableSetGeometry(Layer layer,
java.lang.String name) |
UndoableSetGeometry(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.Object o) |
boolean |
add(UndoableSetGeometry t) |
boolean |
addAll(java.util.Collection c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection c) |
void |
execute() |
com.vividsolutions.jts.geom.Geometry |
getGeom(Feature in_feature) |
java.lang.String |
getName() |
java.lang.String |
getPresentationName() |
java.lang.String |
getRedoPresentationName() |
java.lang.String |
getUndoPresentationName() |
boolean |
isEmpty() |
java.util.Iterator |
iterator() |
void |
redo() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection c) |
boolean |
retainAll(java.util.Collection c) |
void |
setGeom(Feature feature,
com.vividsolutions.jts.geom.Geometry geom) |
int |
size() |
java.lang.Object[] |
toArray() |
java.lang.Object[] |
toArray(java.lang.Object[] a) |
void |
undo() |
void |
unexecute() |
addEdit, canRedo, canUndo, die, isSignificant, replaceEdit, toString
public UndoableSetGeometry(Layer layer, java.lang.String name)
public UndoableSetGeometry(java.lang.String name)
public void redo()
redo
in interface javax.swing.undo.UndoableEdit
redo
in class javax.swing.undo.AbstractUndoableEdit
public void undo()
undo
in interface javax.swing.undo.UndoableEdit
undo
in class javax.swing.undo.AbstractUndoableEdit
public java.lang.String getPresentationName()
getPresentationName
in interface javax.swing.undo.UndoableEdit
getPresentationName
in class javax.swing.undo.AbstractUndoableEdit
public java.lang.String getUndoPresentationName()
getUndoPresentationName
in interface javax.swing.undo.UndoableEdit
getUndoPresentationName
in class javax.swing.undo.AbstractUndoableEdit
public java.lang.String getRedoPresentationName()
getRedoPresentationName
in interface javax.swing.undo.UndoableEdit
getRedoPresentationName
in class javax.swing.undo.AbstractUndoableEdit
public void execute()
public void unexecute()
public java.lang.String getName()
public void setGeom(Feature feature, com.vividsolutions.jts.geom.Geometry geom)
public com.vividsolutions.jts.geom.Geometry getGeom(Feature in_feature)
public boolean add(UndoableSetGeometry t)
public int size()
size
in interface java.util.Collection
public void clear()
clear
in interface java.util.Collection
public boolean isEmpty()
isEmpty
in interface java.util.Collection
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
public boolean add(java.lang.Object o)
add
in interface java.util.Collection
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection
public boolean addAll(java.util.Collection c)
addAll
in interface java.util.Collection
public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.Collection
public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.Collection
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.Collection
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
public java.lang.Object[] toArray(java.lang.Object[] a)
toArray
in interface java.util.Collection