edu.jhu.tmaj.beans.masks.lasso
Class LassoMask

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

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

Represents a mask that the user draws with the free-hand (circle) tool on an image to select a region of interest.

See Also:
Serialized Form

Constructor Summary
LassoMask(java.lang.String maskName, boolean isAllIncludedInDefault)
           
 
Method Summary
 void addLasso(ExternalFile externalFile, Lasso lasso)
           
 void addLassoedFile(LassoedFile lassoedFile)
           
 boolean[] computeMask(ij.ImagePlus imagePlus, ExternalFile file)
           
 java.util.Set<ExternalFile> getAllFiles()
           
 Lasso getLasso(ExternalFile file)
           
 LassoedFile getLassoedFile(ExternalFile externalFile)
           
 Lasso getLassoForFileName(ExternalFile file)
           
 java.lang.Integer getLassoMaskID()
           
 boolean[] getMask(ij.ImagePlus imagePlus, ExternalFile file)
           
 boolean isAllIncludedInDefault()
           
 void setIsAllIncludedInDefault(boolean isAllIncludedInDefault)
           
 void setLassoMaskID(java.lang.Integer lassoMaskID)
           
 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

LassoMask

public LassoMask(java.lang.String maskName,
                 boolean isAllIncludedInDefault)
Method Detail

updateMaskSpecifics

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

setIsAllIncludedInDefault

public void setIsAllIncludedInDefault(boolean isAllIncludedInDefault)

isAllIncludedInDefault

public boolean isAllIncludedInDefault()

addLassoedFile

public void addLassoedFile(LassoedFile lassoedFile)

addLasso

public void addLasso(ExternalFile externalFile,
                     Lasso lasso)

getLasso

public Lasso getLasso(ExternalFile file)

getLassoForFileName

public Lasso getLassoForFileName(ExternalFile file)

getAllFiles

public java.util.Set<ExternalFile> getAllFiles()

getLassoedFile

public LassoedFile getLassoedFile(ExternalFile externalFile)

getMask

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

computeMask

public boolean[] computeMask(ij.ImagePlus imagePlus,
                             ExternalFile file)

getLassoMaskID

public java.lang.Integer getLassoMaskID()

setLassoMaskID

public void setLassoMaskID(java.lang.Integer lassoMaskID)