|
||||||||||
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
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 |
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
HierarchicalSemanticType s 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 HierarchicalSemanticType s 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 |
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 GUIConfigurable
JPanel
that displays graphical interface
for the filterpublic void setPanelSelections()
setPanelSelections
in interface GUIConfigurable
public String getTabDescription()
getTabDescription
in interface GUIConfigurable
public void resetToDefaults()
resetToDefaults
in interface Configurable
public void showOptions()
showOptions
in interface GUIConfigurable
showOptions
in class AbstractFilter
public boolean hasAdvancedOptions()
hasAdvancedOptions
in interface GUIConfigurable
hasAdvancedOptions
in class AbstractFilter
true
public JPanel getHelpPanel()
JPanel
.
getHelpPanel
in interface GUIConfigurable
getHelpPanel
in class AbstractFilter
JPanel
public Properties getProperties()
Properties
object.
getProperties
in interface Configurable
Properties
objectpublic void setProperties(Properties props)
Properties
object.
setProperties
in interface Configurable
props
- the Properties
filter statepublic boolean keep(Concept concept)
Concept
should be selected to be kept for the
subset.
keep
in interface ConceptSelector
concept
- Concept
to be evaluated for removal
boolean
true
if concept should be kept
false
otherwisepublic String getName()
getName
in interface GUIConfigurable
public String getConfigurationDetails()
mmsys.log
.
getConfigurationDetails
in interface Configurable
mmsys.log
public void addSemanticTypeToRemove(HierarchicalSemanticType semantic_type)
HierarchicalSemanticType
to the data structure that holds
the list of semantic_types to be excluded.
semantic_type
- the HierarchicalSemanticType
public void removeSemanticTypeToRemove(HierarchicalSemanticType semantic_type)
HierarchicalSemanticType
from the data structure that
holds the list of semantic_types to be excluded.
semantic_type
- the HierarchicalSemanticType
public 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
HierarchicalSemanticType
s to be excluded.
List
public void setSemanticTypesToRemove(List str)
List
of HierarchicalSemanticType
s to exclude.
str
- List
of HierarchicalSemanticType
s to excludepublic HierarchicalSemanticType getSTYForString(String sem_type)
HierarchicalSemanticType
with the given
String
representation.
sem_type
- the String
HierarchicalSemanticType
public boolean getAutomaticSelection()
true
or
false
public 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
- boolean
public void valueChanged(ListSelectionEvent e)
e
- ListSelectionEvent
public Color getColor()
Color
that should be used to display
the name.
getColor
in interface GUIConfigurable
getColor
in class AbstractFilter
Color
public boolean isEfficientEnabled()
isEfficientEnabled
in interface Filter
true
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |