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

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

final class AddMaskDialog
extends java.lang.Object

A dialog that prompts the user for a mask name and a mask type (color, lasso, or meta).


Nested Class Summary
(package private) static class AddMaskDialog.BasicMaskInfo
          Represents 2 major components of a mask: its name and its type.
 
Method Summary
static AddMaskDialog.BasicMaskInfo showAddDialog(java.awt.Component parentComponent, DefinedMasksGui definedMasksGui)
          Displays a dialog that lets users add a NEW mask.
static AddMaskDialog.BasicMaskInfo showEditDialog(java.awt.Component parentComponent, DefinedMasksGui definedMasksGui, Mask existingMask)
          Displays a dialog that lets the user change only the mask-name (not the mask-type) of an EXISTING mask.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

showAddDialog

public static AddMaskDialog.BasicMaskInfo showAddDialog(java.awt.Component parentComponent,
                                                        DefinedMasksGui definedMasksGui)
Displays a dialog that lets users add a NEW mask. They will be prompted for both a mask name and a mask type. Users must supply the definedMaskGui to ensure they don't enter a mask-name that has already been defined.


showEditDialog

public static AddMaskDialog.BasicMaskInfo showEditDialog(java.awt.Component parentComponent,
                                                         DefinedMasksGui definedMasksGui,
                                                         Mask existingMask)
Displays a dialog that lets the user change only the mask-name (not the mask-type) of an EXISTING mask. We didn't want to have to deal with user's changing the mask-types as we thought this would be unnecessary.