Class ProvenanceHolder

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<ProvenanceEntry>, java.util.Collection<ProvenanceEntry>, java.util.List<ProvenanceEntry>, java.util.RandomAccess

    public class ProvenanceHolder
    extends java.util.Vector<ProvenanceEntry>
    Class that stores matrices (owned by ModelImage) with accessor functions to the matrix map/adding and changing matrices.
    Author:
    linkb
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.swing.event.EventListenerList listenerList
      A list of the ChangeListeners which are interested in the ChangeEvent.
      • Fields inherited from class java.util.Vector

        capacityIncrement, elementCount, elementData
      • Fields inherited from class java.util.AbstractList

        modCount
    • Constructor Summary

      Constructors 
      Constructor Description
      ProvenanceHolder()
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addElement​(ProvenanceEntry entry)
      Catches the Vector's addElement for listener notifaction
      void addProvenanceChangeListener​(ProvenanceChangeListener l)
      Adds a listener (JDialogDataProvenance) to receive notifications
      java.lang.Object clone()
      Copies the object.
      private void fireProvenanceStateChanged​(ProvenanceEntry entry)
      Notify the listeners (dialogs) that a provenance entry has been stored
      • Methods 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, trimToSize
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, stream, toArray
    • Field Detail

      • listenerList

        private javax.swing.event.EventListenerList listenerList
        A list of the ChangeListeners which are interested in the ChangeEvent.
    • Constructor Detail

      • ProvenanceHolder

        public ProvenanceHolder()
        Default constructor.
        Parameters:
        nDims - dimensions of image
    • Method Detail

      • clone

        public java.lang.Object clone()
        Copies the object.
        Overrides:
        clone in class java.util.Vector<ProvenanceEntry>
        Returns:
        Object A copy of the file info.
      • addElement

        public void addElement​(ProvenanceEntry entry)
        Catches the Vector's addElement for listener notifaction
        Overrides:
        addElement in class java.util.Vector<ProvenanceEntry>
      • fireProvenanceStateChanged

        private void fireProvenanceStateChanged​(ProvenanceEntry entry)
        Notify the listeners (dialogs) that a provenance entry has been stored
        Parameters:
        entry - the provenance entry
      • addProvenanceChangeListener

        public void addProvenanceChangeListener​(ProvenanceChangeListener l)
        Adds a listener (JDialogDataProvenance) to receive notifications
        Parameters:
        l -