edu.jhu.tmaj.client.frida.gui
Class DefinedMasksGui

java.lang.Object
  extended by edu.jhu.tmaj.client.frida.gui.DefinedMasksGui

public final class DefinedMasksGui
extends java.lang.Object

All the masks that the user defines. Not all of these masks will be analyzed in the end. Only the masks the user selects in the AnalysisMaskGui will be analyzed.


Constructor Summary
DefinedMasksGui(java.util.List<ExternalFileCoordinate> imageFilesList, MessageLabel messageLabel, IASessionBean iaSessionBean, ImageAppGuis imageAppGuis)
           
 
Method Summary
 void addMask(Mask mask)
           
 void addMaskChangeListener(MaskChangeListener maskChangeListener)
          Adds a maskChangeListener to this class; this class will notify the listener whenever a mask is added, has its name changed, or deleted.
 void disposeAllWindows()
           
 java.awt.Component getComponent()
           
 Mask getMask(java.lang.String maskName)
          Gets the Mask object for the supplied mask name.
 java.util.List<Mask> getMasks()
          Gets a list of all defined masks.
 Mask getSelectedMask()
           
 boolean maskNameAlreadyExists(java.lang.String maskname)
          Returns true if there is already a defined mask with the supplied name.
 void reset()
          Clears all masks from the list, and disposes of all their guis.
 void setCoordinate(Coordinate coordinate)
           
 void setEnabled(boolean isEnabled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefinedMasksGui

public DefinedMasksGui(java.util.List<ExternalFileCoordinate> imageFilesList,
                       MessageLabel messageLabel,
                       IASessionBean iaSessionBean,
                       ImageAppGuis imageAppGuis)
Method Detail

setEnabled

public void setEnabled(boolean isEnabled)

addMaskChangeListener

public void addMaskChangeListener(MaskChangeListener maskChangeListener)
Adds a maskChangeListener to this class; this class will notify the listener whenever a mask is added, has its name changed, or deleted.


getComponent

public java.awt.Component getComponent()

getSelectedMask

public Mask getSelectedMask()

getMasks

public java.util.List<Mask> getMasks()
Gets a list of all defined masks.


getMask

public Mask getMask(java.lang.String maskName)
Gets the Mask object for the supplied mask name. If there is no mask with that name, null is returned.


maskNameAlreadyExists

public boolean maskNameAlreadyExists(java.lang.String maskname)
Returns true if there is already a defined mask with the supplied name.


addMask

public void addMask(Mask mask)

reset

public void reset()
Clears all masks from the list, and disposes of all their guis.


disposeAllWindows

public void disposeAllWindows()

setCoordinate

public void setCoordinate(Coordinate coordinate)