Package gov.nih.mipav.model.provenance
Class ProvenanceHolder
java.lang.Object
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<ProvenanceEntry>,Collection<ProvenanceEntry>,List<ProvenanceEntry>,RandomAccess,SequencedCollection<ProvenanceEntry>
Class that stores matrices (owned by ModelImage) with accessor functions to the matrix map/adding and changing
matrices.
- Author:
- linkb
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate EventListenerListA list of the ChangeListeners which are interested in the ChangeEvent.Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementDataFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddElement(ProvenanceEntry entry) Catches the Vector's addElement for listener notifactionvoidAdds a listener (JDialogDataProvenance) to receive notificationsclone()Copies the object.private voidNotify the listeners (dialogs) that a provenance entry has been storedMethods inherited from class java.util.Vector
add, add, addAll, addAll, capacity, clear, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSizeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, reversed
-
Field Details
-
listenerList
A list of the ChangeListeners which are interested in the ChangeEvent.
-
-
Constructor Details
-
ProvenanceHolder
public ProvenanceHolder()Default constructor.- Parameters:
nDims- dimensions of image
-
-
Method Details
-
clone
Copies the object.- Overrides:
clonein classVector<ProvenanceEntry>- Returns:
- Object A copy of the file info.
-
addElement
Catches the Vector's addElement for listener notifaction- Overrides:
addElementin classVector<ProvenanceEntry>
-
fireProvenanceStateChanged
Notify the listeners (dialogs) that a provenance entry has been stored- Parameters:
entry- the provenance entry
-
addProvenanceChangeListener
Adds a listener (JDialogDataProvenance) to receive notifications- Parameters:
l-
-