edu.jhu.tmaj.beans.masks.meta
Class MetaMask

java.lang.Object
  extended by edu.jhu.tmaj.beans.masks.AbstractMask
      extended by edu.jhu.tmaj.beans.masks.meta.MetaMask
All Implemented Interfaces:
Mask, java.io.Serializable, java.lang.Comparable<Mask>

public final class MetaMask
extends AbstractMask
implements Mask, java.io.Serializable

Represents a mask of masks. This mask is created by starting with either everything or nothing and then by adding or subtracting other masks. A meta mask may contain other meta-masks.

See Also:
Serialized Form

Nested Class Summary
(package private) static class MetaMask.ActionMaskInfoComparable
           
 
Constructor Summary
MetaMask(java.lang.String title)
           
 
Method Summary
 void addActionMaskInfo(ActionMaskInfo actionMaskInfo)
           
 void clearActionMaskInfo()
           
 java.util.List<ActionMaskInfo> getActionMaskInfoList()
          Returns the ActionMaskInfos Objects in order.
 java.util.Set<ActionMaskInfo> getActionMaskInfoSet()
          Gets a list of all the masks in order that are to be added and subtracted in this meta-mask.
 boolean[] getMask(ij.ImagePlus imagePlus, ExternalFile file)
           
 java.util.Set<Mask> getReferencedMasks()
           
protected  void updateMaskSpecifics(Mask mask)
           
 
Methods inherited from class edu.jhu.tmaj.beans.masks.AbstractMask
compareTo, getID, getName, getType, setID, setName, toString, updateMask
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.jhu.tmaj.beans.masks.Mask
getID, getName, getType, setID, setName, updateMask
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

MetaMask

public MetaMask(java.lang.String title)
Method Detail

updateMaskSpecifics

protected void updateMaskSpecifics(Mask mask)
Specified by:
updateMaskSpecifics in class AbstractMask

addActionMaskInfo

public void addActionMaskInfo(ActionMaskInfo actionMaskInfo)

clearActionMaskInfo

public void clearActionMaskInfo()

getMask

public boolean[] getMask(ij.ImagePlus imagePlus,
                         ExternalFile file)
Specified by:
getMask in interface Mask

getActionMaskInfoList

public java.util.List<ActionMaskInfo> getActionMaskInfoList()
Returns the ActionMaskInfos Objects in order.


getActionMaskInfoSet

public java.util.Set<ActionMaskInfo> getActionMaskInfoSet()
Gets a list of all the masks in order that are to be added and subtracted in this meta-mask.


getReferencedMasks

public java.util.Set<Mask> getReferencedMasks()