public class OntologyViewerOptions extends Object implements gate.event.DocumentListener
| Modifier and Type | Field and Description |
|---|---|
protected HashSet<String> |
classesToHide
List of ontology classes to be filtered out.
|
protected HashSet<String> |
classesToShow
List of ontology classes to be filtered out.
|
static String |
DEFAULT_ANNOTATION_SET
Instead of a null value, we specify the defaultAnnotationSetName with some
strange string
|
static String |
DEFAULT_ANNOTATION_TYPE
Instead of a null value, we specify the defaultAnnotationSetName with some
strange string
|
static String |
DEFAULT_CLASS_URI_FEATURE_NAME
Instead of a null value, we specify the defaultAnnotationSetName with some
strange string
|
static String |
DEFAULT_INSTANCE_URI_FEATURE_NAME
Instead of a null value, we specify the defaultAnnotationSetName with some
strange string
|
protected String |
selectedAnnotationSetName
Currently selected annotationSetName
|
protected String |
selectedAnnotationType
Currently selected annotation type
|
| Constructor and Description |
|---|
OntologyViewerOptions(OntologyTreePanel ontoTree)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToClassesToHide(HashSet<String> list) |
void |
addToClassesToShow(HashSet<String> list) |
void |
annotationSetAdded(gate.event.DocumentEvent de) |
void |
annotationSetRemoved(gate.event.DocumentEvent de)
This methods implements the actions when any selectedAnnotationSetName is
removed from
|
void |
cleanup()
Releases all resources
|
void |
contentEdited(gate.event.DocumentEvent de) |
void |
disableAnnotationSetSelection(String annotationSetName)
The method disables the graphical selection of selectedAnnotationSetName
and will allow user to provide the annotationSetName explicitly
|
void |
disableFiltering(boolean shouldDisable)
Disable Filtering.
|
void |
enabledAnnotationSetSelection()
This will reenable the graphical support for selecting
annotationSetsNamesCB
|
HashSet<String> |
getClassesToHide()
Gets a set of ontology classes disabled in the OCAT.
|
URL |
getClassesToHideFileURL()
Gets the URL of the filter file being used.
|
HashSet<String> |
getClassesToShow()
Gets a set of ontology classes disabled in the OCAT.
|
URL |
getClassesToShowFileURL()
Gets the URL of the filter file being used.
|
boolean |
getDeleteConfirmation()
Returns if Child Feature is set to ON/OFF
|
Component |
getGUI()
Returns the panel for ontoOption Panel
|
String |
getPropertyName() |
String |
getSelectedAnnotationSetName()
Returns the currently selected Annotation Set
|
String |
getSelectedAnnotationType()
Returns the currently selected Annotation Type
|
String |
getSelectedClassURIFeatureName() |
String |
getSelectedInstanceURIFeatureName() |
boolean |
isAddAllOptionCaseSensitive()
Returns if case sensitive option is set to ON/OFF
|
boolean |
isChildFeatureDisabled()
Returns if Child Feature is set to ON/OFF
|
boolean |
isClassesToHideFilterOn() |
boolean |
isClassesToShowFilterOn() |
void |
removeFromClassesToHide(HashSet<String> list) |
void |
removeFromClassesToShow(HashSet<String> list) |
void |
setClassesToHide(HashSet<String> ontologyClassesToFilterOut)
This method should be called to specify the ontology classes that should be
disabled from the ocat.
|
void |
setClassesToHideFileURL(URL filterFileURL)
Sets the filter file to be used.
|
void |
setClassesToHideOn(boolean onOff)
Use this method to switch on and off the filter.
|
void |
setClassesToShow(HashSet<String> ontologyClassesToShow)
This method should be called to specify the ontology classes that should be
disabled from the ocat.
|
void |
setClassesToShowFileURL(URL filterFileURL)
Sets the filter file to be used.
|
void |
setClassesToShowOn(boolean onOff)
Use this method to switch on and off the filter.
|
boolean |
shouldShow(String aResourceName) |
boolean |
showAnonymousClasses() |
public static final String DEFAULT_ANNOTATION_SET
public static final String DEFAULT_ANNOTATION_TYPE
public static final String DEFAULT_CLASS_URI_FEATURE_NAME
public static final String DEFAULT_INSTANCE_URI_FEATURE_NAME
protected String selectedAnnotationSetName
protected String selectedAnnotationType
public OntologyViewerOptions(OntologyTreePanel ontoTree)
ontologyTreePanel - public void cleanup()
public String getSelectedAnnotationSetName()
public void disableAnnotationSetSelection(String annotationSetName)
annotationSetName - public void enabledAnnotationSetSelection()
annotationSetName - public String getSelectedAnnotationType()
public Component getGUI()
public boolean isClassesToHideFilterOn()
public String getSelectedClassURIFeatureName()
public String getSelectedInstanceURIFeatureName()
public boolean isClassesToShowFilterOn()
public void setClassesToHideOn(boolean onOff)
onOff - public void setClassesToShowOn(boolean onOff)
onOff - public boolean isChildFeatureDisabled()
public boolean getDeleteConfirmation()
public boolean isAddAllOptionCaseSensitive()
public void annotationSetAdded(gate.event.DocumentEvent de)
annotationSetAdded in interface gate.event.DocumentListenerpublic void contentEdited(gate.event.DocumentEvent de)
contentEdited in interface gate.event.DocumentListenerpublic void annotationSetRemoved(gate.event.DocumentEvent de)
annotationSetRemoved in interface gate.event.DocumentListenerde - public URL getClassesToHideFileURL()
public void setClassesToHideFileURL(URL filterFileURL)
classesToHideFileURL - public URL getClassesToShowFileURL()
public void setClassesToShowFileURL(URL filterFileURL)
classesToHideFileURL - public HashSet<String> getClassesToHide()
public HashSet<String> getClassesToShow()
public String getPropertyName()
public void setClassesToHide(HashSet<String> ontologyClassesToFilterOut)
classesToHide - public void setClassesToShow(HashSet<String> ontologyClassesToShow)
classesToHide - public void disableFiltering(boolean shouldDisable)
shouldDisable - public boolean showAnonymousClasses()
public boolean shouldShow(String aResourceName)