edu.jhu.tmaj.beans.masks
Class AbstractMask
java.lang.Object
edu.jhu.tmaj.beans.masks.AbstractMask
- All Implemented Interfaces:
- Mask, java.io.Serializable, java.lang.Comparable<Mask>
- Direct Known Subclasses:
- ColorMask, FilterMask, LassoMask, MetaMask
public abstract class AbstractMask
- extends java.lang.Object
- implements Mask, java.io.Serializable, java.lang.Comparable<Mask>
An Abstract Mask where we know the mask name and the mask type.
When users define a mask, they must specify the mask name and mask type (color, lasso, or meta).
All masks thus inherit from this class, as all masks share these 2 properties.
- See Also:
- Serialized Form
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 |
getMask |
AbstractMask
public AbstractMask(java.lang.String maskName,
MaskType maskType)
getName
public final java.lang.String getName()
- Gets the user-defined name of this mask
- Specified by:
getName
in interface Mask
setName
public final void setName(java.lang.String name)
- Specified by:
setName
in interface Mask
getType
public final MaskType getType()
- Specified by:
getType
in interface Mask
toString
public final java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getID
public final java.lang.Integer getID()
- Specified by:
getID
in interface Mask
setID
public final void setID(java.lang.Integer id)
- Specified by:
setID
in interface Mask
updateMask
public void updateMask(Mask mask)
- Specified by:
updateMask
in interface Mask
updateMaskSpecifics
protected abstract void updateMaskSpecifics(Mask mask)
compareTo
public int compareTo(Mask mask)
- Specified by:
compareTo
in interface java.lang.Comparable<Mask>