|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.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 |
|---|
| Fields inherited from class gov.nih.nlm.mms.filters.AbstractFilter |
|---|
default_configuration, init_cui, subset_content, user_configuration, warnings |
| 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. |
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 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 |
| Constructor Detail |
|---|
public SemanticTypesToRemoveFilter()
SemanticTypesToRemoveFilter.
| Method Detail |
|---|
public JPanel getPanel()
AbstractFilter.setConfiguration(ApplicationConfiguration) and
setProperties(Properties). There is no data
change as a result of calling this method.
getPanel in interface GUIConfigurableJPanel that displays graphical interface
for the filterpublic void setPanelSelections()
setPanelSelections in interface GUIConfigurablepublic String getTabDescription()
getTabDescription in interface GUIConfigurablepublic void resetToDefaults()
resetToDefaults in interface Configurablepublic void showOptions()
showOptions in interface GUIConfigurableshowOptions in class AbstractFilterpublic boolean hasAdvancedOptions()
hasAdvancedOptions in interface GUIConfigurablehasAdvancedOptions in class AbstractFiltertruepublic JPanel getHelpPanel()
JPanel.
getHelpPanel in interface GUIConfigurablegetHelpPanel in class AbstractFilterJPanelpublic Properties getProperties()
Properties object.
getProperties in interface ConfigurableProperties objectpublic void setProperties(Properties props)
Properties object.
setProperties in interface Configurableprops - 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 GUIConfigurablepublic String getConfigurationDetails()
mmsys.log.
getConfigurationDetails in interface Configurablemmsys.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 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 AbstractFilterColorpublic boolean isEfficientEnabled()
isEfficientEnabled in interface Filtertrue
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||