|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.mms.AbstractGUIConfigurable
gov.nih.nlm.mms.filters.AbstractFilter
gov.nih.nlm.mms.filters.SemanticTypesToRemoveFilter
public class SemanticTypesToRemoveFilter
This Filter removes all CUIs with a given semantic type
| Field Summary | |
|---|---|
protected boolean |
any_sty
|
protected JPanel |
full_panel
|
protected boolean |
ignore_events
|
protected JRadioButton |
keep_stys
|
protected JPanel |
panel
|
protected boolean |
remove_selected_stys
|
protected JRadioButton |
remove_stys
|
protected SemanticTypesToRemoveJTable |
semantic_type_table
|
protected List<HierarchicalSemanticType> |
semantic_types_to_remove
|
| Fields inherited from class gov.nih.nlm.mms.filters.AbstractFilter |
|---|
init_cui, subset_content, warnings |
| Fields inherited from class gov.nih.nlm.mms.AbstractGUIConfigurable |
|---|
data_changed, default_configuration, listeners, user_configuration |
| Constructor Summary | |
|---|---|
SemanticTypesToRemoveFilter()
Instantiates a SemanticTypesToRemoveFilter. |
|
| Method Summary | |
|---|---|
void |
addSemanticTypeToRemove(HierarchicalSemanticType semantic_type)
Adds a HierarchicalSemanticType to the data structure that holds
the list of semantic_types to be excluded. |
boolean |
anySty()
Indicates whether any or all of a concepts semantic types must be on the removal list for the concept to be removed. |
boolean |
getAutomaticSelection()
Indicates whether the automatic_selection option has been chosen on the MetamorphoSys Options dialog box. |
Color |
getColor()
Returns the Color that should be used to display
the name. |
String |
getConfigurationDetails()
Returns the configuration details for mmsys.log. |
JPanel |
getHelpPanel()
Returns the help JPanel. |
String |
getName()
Returns the name. |
JPanel |
getPanel()
Returns the GUI panel that will display the filter's screen as one of the tabs on the main GUI window. |
Properties |
getProperties()
Returns the filter state as a Properties object. |
Set |
getSemanticTypeChildrenAsSet(String stn)
Helper method to call ApplicationConfiguration.getSemanticTypeChildrenAsSet. |
List |
getSemanticTypesToRemove()
Returns eturns the List containing all
HierarchicalSemanticTypes to be excluded. |
HierarchicalSemanticType |
getSTYForString(String sem_type)
Returns the HierarchicalSemanticType with the given
String representation. |
String |
getTabDescription()
Returns the description. |
boolean |
hasAdvancedOptions()
Indicates whether or not an options menu item should be supplied for advanced configuration options. |
boolean |
isEfficientEnabled()
Indicates whether or not this filter can use the efficient mode during the "Initialize Cuis" phase of the subsetting process. |
boolean |
isSemanticTypeToRemove(HierarchicalSemanticType semantic_type)
Indicates whether or not the specified HierarchicalSemanticType
is of the type to be removed. |
boolean |
keep(Concept concept)
Indicates if Concept should be selected to be kept for the
subset. |
boolean |
removeSelectedSemanticTypes()
This method indicates whether the selections represent semantic types to be excluded or semantic types to be kept. |
void |
removeSemanticTypeToRemove(HierarchicalSemanticType semantic_type)
Removes a HierarchicalSemanticType from the data structure that
holds the list of semantic_types to be excluded. |
void |
resetToDefaults()
Resets state to default values. |
void |
setAnySty(boolean b)
Sets whether any or all of a concepts semantic types must be on the removal list for the concept to be removed. |
void |
setPanelSelections()
Applies filter state to panel selections. |
void |
setProperties(Properties props)
Sets the filter state via a Properties object. |
void |
setRemoveSelectedSemanticTypes(boolean b)
This method sets whether or not the selections represent semantic types to be excluded or semantic types to be kept. |
void |
setSemanticTypesToRemove(List str)
Sets the List of HierarchicalSemanticTypes to exclude. |
void |
showOptions()
Show Options GUI. |
void |
valueChanged(ListSelectionEvent e)
Sets the list of semantic_types to removed when selection changes. |
| Methods inherited from class gov.nih.nlm.mms.filters.AbstractFilter |
|---|
applyFilter, beginInitializeCuiList, beginSubsetContent, endInitializeCuiList, endSubsetContent, fireDataChanged, fireNotUndoableDataChanged, getValidateMessage, getWarnings, setCuiList |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gov.nih.nlm.mms.filters.Filter |
|---|
applyFilter, getWarnings |
| Methods inherited from interface gov.nih.nlm.mms.GUIConfigurable |
|---|
addDataChangeListener, getGUIConfigurableForValidationFailure, getValidationErrors, getValidationWarnings, hasDataChanged, removeDataChangeListener, resetDataChanged, setDataChanged, validate |
| Methods inherited from interface gov.nih.nlm.mms.Configurable |
|---|
setConfiguration, setConfiguration |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface gov.nih.nlm.mms.SubsetListener |
|---|
beginInitializeCuiList, beginSubsetContent, endInitializeCuiList, endSubsetContent, setCuiList |
| Field Detail |
|---|
protected boolean ignore_events
protected List<HierarchicalSemanticType> semantic_types_to_remove
protected SemanticTypesToRemoveJTable semantic_type_table
protected boolean remove_selected_stys
protected boolean any_sty
protected JPanel panel
protected JPanel full_panel
protected JRadioButton remove_stys
protected JRadioButton keep_stys
| Constructor Detail |
|---|
public SemanticTypesToRemoveFilter()
SemanticTypesToRemoveFilter.
| Method Detail |
|---|
public JPanel getPanel()
AbstractGUIConfigurable.setConfiguration(ApplicationConfiguration) and
setProperties(Properties). There is no data
change as a result of calling this method.
getPanel in interface GUIConfigurablegetPanel in class AbstractGUIConfigurableJPanel that displays graphical interface
for the filterpublic void setPanelSelections()
setPanelSelections in interface GUIConfigurablesetPanelSelections in class AbstractGUIConfigurablepublic String getTabDescription()
getTabDescription in interface GUIConfigurablegetTabDescription in class AbstractGUIConfigurablepublic void resetToDefaults()
resetToDefaults in interface ConfigurableresetToDefaults in class AbstractGUIConfigurablepublic void showOptions()
showOptions in interface GUIConfigurableshowOptions in class AbstractGUIConfigurablepublic boolean hasAdvancedOptions()
hasAdvancedOptions in interface GUIConfigurablehasAdvancedOptions in class AbstractGUIConfigurabletruepublic JPanel getHelpPanel()
JPanel.
getHelpPanel in interface GUIConfigurablegetHelpPanel in class AbstractGUIConfigurableJPanelpublic Properties getProperties()
Properties object.
getProperties in interface ConfigurablegetProperties in class AbstractGUIConfigurableProperties objectpublic void setProperties(Properties props)
Properties object.
setProperties in interface ConfigurablesetProperties in class AbstractGUIConfigurableprops - the Properties filter statepublic boolean keep(Concept concept)
Concept should be selected to be kept for the
subset.
keep in interface ConceptSelectorconcept - Concept to be evaluated for removal
boolean true if concept should be kept
false otherwisepublic String getName()
getName in interface GUIConfigurablegetName in class AbstractGUIConfigurablepublic String getConfigurationDetails()
mmsys.log.
getConfigurationDetails in interface ConfigurablegetConfigurationDetails in class AbstractGUIConfigurablemmsys.logpublic void addSemanticTypeToRemove(HierarchicalSemanticType semantic_type)
HierarchicalSemanticType to the data structure that holds
the list of semantic_types to be excluded.
semantic_type - the HierarchicalSemanticTypepublic void removeSemanticTypeToRemove(HierarchicalSemanticType semantic_type)
HierarchicalSemanticType from the data structure that
holds the list of semantic_types to be excluded.
semantic_type - the HierarchicalSemanticTypepublic boolean isSemanticTypeToRemove(HierarchicalSemanticType semantic_type)
HierarchicalSemanticType
is of the type to be removed.
semantic_type - the HierarchicalSemanticType
true if so, false otherwisepublic List getSemanticTypesToRemove()
List containing all
HierarchicalSemanticTypes to be excluded.
Listpublic void setSemanticTypesToRemove(List str)
List of HierarchicalSemanticTypes to exclude.
str - List of HierarchicalSemanticTypes to excludepublic Set getSemanticTypeChildrenAsSet(String stn)
stn -
public HierarchicalSemanticType getSTYForString(String sem_type)
HierarchicalSemanticType with the given
String representation.
sem_type - the String
HierarchicalSemanticTypepublic boolean getAutomaticSelection()
true or
falsepublic boolean anySty()
boolean true if concept will be removed
if any of its terms have a semantic type to be removed
false if concept will be removed only if all of its terms
have semantic types on the removal listpublic void setAnySty(boolean b)
b - boolean true if concept should be removed
if any of its terms have a semantic type to be removed
false if concept should be removed only if all of its terms
have semantic types on the removal listpublic boolean removeSelectedSemanticTypes()
true selected semantic types will be excluded
false selected semantic types will be keptpublic void setRemoveSelectedSemanticTypes(boolean b)
b - booleanpublic void valueChanged(ListSelectionEvent e)
e - ListSelectionEventpublic Color getColor()
Color that should be used to display
the name.
getColor in interface GUIConfigurablegetColor in class AbstractGUIConfigurableColorpublic boolean isEfficientEnabled()
isEfficientEnabled in interface Filtertrue
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||