|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
gate.creole.AbstractVisualResource
com.ontotext.gate.vr.Gaze
Gaze is a Gazetteer VR capable of viewing and editing gazetteer lists, linear definitions (lists.def files), and mapping definitions (mappings between ontology classes and gazetteer lists). I.e. capable of visualizing and editing both linear and ontology-aware gazetteers.
Nested Class Summary | |
(package private) class |
Gaze.GazListDL
Gazetteer List Document Listener is used to monitor the gaz list changes and alter the isModified flag of the current list. |
(package private) class |
Gaze.LinearCR
Creates a list cell renderer for the Linear Definition list. |
(package private) class |
Gaze.LinearLoadListener
Reacts on all Load Linear Definition actions performed either through the menu, wither through the load buton. |
(package private) class |
Gaze.LinearNewListener
Reacts on all New Linear Definition actions performed either through the menu, wither through the new buton. |
(package private) class |
Gaze.LinearNodeInput
A dialog for input of a LinearNode. |
(package private) class |
Gaze.LinearPopupEditListener
Listener for the Edit action of the LinearDefinition popup |
(package private) class |
Gaze.LinearPopupInsertListener
Listener for the Insert action of the LinearDefinition popup |
(package private) class |
Gaze.LinearPopupListener
Listener for right click on the Linear Definition list |
(package private) class |
Gaze.LinearPopupRemoveListener
Listener for the Remove action of the LinearDefinition popup |
(package private) class |
Gaze.LinearSaveAsListener
Reacts on all Save As Linear Definition actions. |
(package private) class |
Gaze.LinearSaveListener
Reacts on all Linear Definition Save As events |
(package private) class |
Gaze.ListLoadListener
Reacts on all Gaz List Load Events |
(package private) class |
Gaze.ListNewListener
Reacts on all Create New Gaz List Events |
(package private) class |
Gaze.ListSaveAllListener
Gaz List Save All Action Listener |
(package private) class |
Gaze.ListSaveAsListener
Gazetteer list Save As action listener |
(package private) class |
Gaze.ListSaveListener
Gaz List Save Action Listener |
(package private) class |
Gaze.MappingLoadListener
Reacts on all Load Mapping actions performed either through the menu, wither through the load buton. |
(package private) class |
Gaze.MappingNewListener
Reacts on all Create New Mapping actions performed either through the menu, either through the new buton. |
(package private) class |
Gaze.MappingSaveAsListener
Reacts on all Save As Mapping Definition actions. |
(package private) class |
Gaze.MappingSaveListener
Reacts on all Mapping Definition Save As events |
(package private) class |
Gaze.OntologyLoadListener
Reacts on all Load Ontology actions performed either through the menu, wither through the load buton. |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected JSplitPane |
baseSplit
|
protected JButton |
btnLinearLoad
|
protected JButton |
btnLinearNew
|
protected JButton |
btnLinearSave
|
protected JButton |
btnLinearSaveAs
|
protected JButton |
btnListLoad
|
protected JButton |
btnListNew
|
protected JButton |
btnListSave
|
protected JButton |
btnListSaveAll
|
protected JButton |
btnListSaveAs
|
protected JButton |
btnMappingLoad
|
protected JButton |
btnMappingNew
|
protected JButton |
btnMappingSave
|
protected JButton |
btnMappingSaveAs
|
protected JButton |
btnOntologyLoad
|
protected JMenu |
fileMenu
|
private GazetteerList |
gazList
the gazetteer list currently selected |
protected GridBagLayout |
gridBagLayout1
|
protected GridBagLayout |
gridBagLayout2
|
protected GridBagLayout |
gridBagLayout3
|
protected GridBagLayout |
gridBagLayout4
|
private boolean |
isOntoGaz
is the target resource ontology-aware gazetteer |
private static int |
LDA_EDIT
Edit Linear Node |
private static int |
LDA_INSERT
Insert Linear Node |
private static int |
LDA_REMOVE
Remove Linear Node |
private LinearDefinition |
linear
the linear definition being displayed |
protected JToolBar |
linearBar
|
protected JLabel |
linearLabel
|
protected JList |
linearList
|
private LinearNode |
linearNode
the linear node currently selected |
protected JPanel |
linearPanel
|
protected JPopupMenu |
linearPopup
Linear Definition Popup menu |
protected JMenuItem |
linearPopupEdit
Linear Definition Edit Popup Item |
protected JMenuItem |
linearPopupInsert
Linear Definition Insert Popup Item |
protected JMenuItem |
linearPopupRemove
Linear Definition Remove Popup Item |
protected JScrollPane |
linearScroll
|
protected JSplitPane |
linearSplit
|
protected JTextArea |
listArea
|
protected JToolBar |
listBar
|
protected JLabel |
listLabel
|
protected JPanel |
listPanel
|
protected JScrollPane |
listScroll
|
private Set |
listSet
Set of all lists, both in the linear definition and explicitly loaded ones. |
protected JMenuBar |
mainMenu
|
private MappingDefinition |
mapping
the mapping definition being displayed |
protected JToolBar |
mappingBar
|
protected JLabel |
mappingLabel
|
protected JList |
mappingList
|
private MappingNode |
mappingNode
the mapping node currently selected |
protected JPanel |
mappingPanel
|
protected JScrollPane |
mappingScroll
|
protected JSplitPane |
mappingSplit
|
protected JMenuItem |
menuAbout
|
protected JMenu |
menuHelp
|
protected JMenu |
menuLinear
|
protected JMenuItem |
menuLinearLoad
|
protected JMenuItem |
menuLinearNew
|
protected JMenuItem |
menuLinearSave
|
protected JMenuItem |
menuLinearSaveAs
|
protected JMenu |
menuList
|
protected JMenuItem |
menuListLoad
|
protected JMenuItem |
menuListNew
|
protected JMenuItem |
menuListSave
|
protected JMenuItem |
menuListSaveAll
|
protected JMenuItem |
menuListSaveAs
|
protected JMenu |
menuMapping
|
protected JMenuItem |
menuMappingLoad
|
protected JMenuItem |
menuMappingNew
|
protected JMenuItem |
menuMappingSave
|
protected JMenuItem |
menuMappingSaveAs
|
protected JMenu |
menuOntology
|
protected JMenuItem |
menuOntologyLoad
|
protected JMenuItem |
menuRefresh
|
private Taxonomy |
ontology
the ontology that is currently displayed |
protected JToolBar |
ontologyBar
|
protected JLabel |
ontologyLabel
|
protected JPanel |
ontologyPanel
|
protected JScrollPane |
ontologyScroll
|
private Map |
ontologyTrees
map of ontologies vs trees |
protected JTree |
oTree
|
static int |
POSITION_X
positin x when running from the tools menu |
static int |
POSITION_Y
positin y when running from the tools menu |
static int |
SIZE_X
size x when running from the tools menu |
static int |
SIZE_Y
size y when running from the tools menu |
private Gazetteer |
target
the target to be displayed |
protected GridBagLayout |
thisLayout
|
protected JMenu |
viewMenu
|
Fields inherited from class gate.creole.AbstractVisualResource |
features, handle |
Fields inherited from class javax.swing.JPanel |
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
Gaze()
|
Method Summary | |
private void |
createGazListBtnListeners()
Sets the listeners for the load,save and save as buttons in the gazetteer list pane |
private void |
createLinearDefBtnListeners()
Sets the listeners for the load,save and save as buttons in the linear definition pane |
private void |
createLinearListeneres()
Creates and associates listeners for the linear gui components |
private void |
createMappingDefBtnListeners()
Sets the listeners for the load,save and save as buttons in the mapping pane |
private void |
createNonLinearListeners()
Creates and asssociates listeners for the non linear (mapping,ontology) gui components |
private void |
displayLinear(Gazetteer g)
Displays linear definition |
(package private) void |
displayList(String listName)
Displays the specified list in the most right pane of Gaze |
private void |
displayMapping(Gazetteer g)
Displays mapping |
(package private) List |
getClasses()
Gets all classes. |
(package private) List |
getLists()
Gets the lists |
Resource |
init()
Initialise this resource, and return it. |
private void |
jbInit()
Init of the gui components |
void |
objectCreated(ObjectModificationEvent e)
|
void |
objectDeleted(ObjectModificationEvent e)
|
void |
objectModified(ObjectModificationEvent e)
|
private void |
performLinearAction(int action,
int index,
LinearNode node)
Performs an action over the Linear Definition. |
void |
processGateEvent(GateEvent e)
Called when a Gate event has occured |
void |
processGazetteerEvent(GazetteerEvent e)
Called when a Gazetteer event has occured |
private void |
reinitializeGazetteer()
Reinitializes the edited gazetteer |
void |
setTarget(Object targeta)
Called by the GUI when this viewer/editor has to initialise itself for a specific object. this is an AbstractVisualResource overriden method. |
(package private) void |
updateMappingUI()
updates the mapping list's ui |
Methods inherited from class gate.creole.AbstractVisualResource |
cleanup, getFeatures, getParameterValue, setFeatures, setHandle, setParameterValue, setParameterValues |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gate.util.NameBearer |
getName, setName |
Field Detail |
public static final int SIZE_X
public static final int SIZE_Y
public static final int POSITION_X
public static final int POSITION_Y
private static final int LDA_EDIT
private static final int LDA_INSERT
private static final int LDA_REMOVE
private Gazetteer target
private boolean isOntoGaz
private LinearDefinition linear
private LinearNode linearNode
private GazetteerList gazList
private Set listSet
private MappingDefinition mapping
private MappingNode mappingNode
private Taxonomy ontology
private Map ontologyTrees
protected JPopupMenu linearPopup
protected JMenuItem linearPopupEdit
protected JMenuItem linearPopupInsert
protected JMenuItem linearPopupRemove
protected JMenuBar mainMenu
protected JMenu fileMenu
protected JMenu viewMenu
protected JSplitPane baseSplit
protected JSplitPane mappingSplit
protected JSplitPane linearSplit
protected JPanel linearPanel
protected JPanel listPanel
protected JPanel mappingPanel
protected JPanel ontologyPanel
protected JLabel linearLabel
protected GridBagLayout gridBagLayout1
protected JScrollPane linearScroll
protected JToolBar linearBar
protected JButton btnLinearLoad
protected JList linearList
protected JButton btnLinearSave
protected JButton btnLinearSaveAs
protected JLabel listLabel
protected GridBagLayout gridBagLayout2
protected JToolBar listBar
protected JButton btnListLoad
protected JScrollPane listScroll
protected JButton btnListSave
protected JButton btnListSaveAs
protected GridBagLayout gridBagLayout3
protected JLabel mappingLabel
protected JToolBar mappingBar
protected JButton btnMappingLoad
protected JScrollPane mappingScroll
protected JList mappingList
protected JButton btnMappingSave
protected JButton btnMappingSaveAs
protected JLabel ontologyLabel
protected JToolBar ontologyBar
protected JButton btnOntologyLoad
protected JScrollPane ontologyScroll
protected GridBagLayout gridBagLayout4
protected JMenu menuHelp
protected JMenuItem menuAbout
protected GridBagLayout thisLayout
protected JMenu menuLinear
protected JMenuItem menuLinearLoad
protected JMenuItem menuLinearSave
protected JMenuItem menuLinearSaveAs
protected JMenu menuList
protected JMenuItem menuListLoad
protected JMenuItem menuListSave
protected JMenuItem menuListSaveAs
protected JMenu menuMapping
protected JMenuItem menuMappingLoad
protected JMenuItem menuMappingSave
protected JMenuItem menuMappingSaveAs
protected JMenu menuOntology
protected JMenuItem menuOntologyLoad
protected JMenuItem menuRefresh
protected JTree oTree
protected JTextArea listArea
protected JButton btnMappingNew
protected JButton btnLinearNew
protected JButton btnListNew
protected JMenuItem menuLinearNew
protected JMenuItem menuListNew
protected JMenuItem menuMappingNew
protected JButton btnListSaveAll
protected JMenuItem menuListSaveAll
Constructor Detail |
public Gaze()
Method Detail |
public void setTarget(Object targeta)
AbstractVisualResource
overriden method.
setTarget
in interface VisualResource
setTarget
in class AbstractVisualResource
targeta
- the object (be it a Resource
,
DataStore
or whatever) this viewer has to displaypublic Resource init() throws ResourceInstantiationException
AbstractVisualResource
init
in interface Resource
init
in class AbstractVisualResource
ResourceInstantiationException
void updateMappingUI()
void displayList(String listName)
listName
- the name of the listList getLists()
List getClasses()
private void displayLinear(Gazetteer g)
g
- the gazetteer to take the definition fromprivate void displayMapping(Gazetteer g)
g
- the gazetteer to take the mapping fromprivate void createLinearListeneres()
private void createNonLinearListeners()
private void createLinearDefBtnListeners()
private void createGazListBtnListeners()
private void createMappingDefBtnListeners()
private void performLinearAction(int action, int index, LinearNode node)
action
- the action to be performedindex
- index of the place where this action took place(e.g. where to insert)node
- the Linear Node to be used in the actionprivate void reinitializeGazetteer()
private void jbInit() throws Exception
Exception
public void processGazetteerEvent(GazetteerEvent e)
GazetteerListener
processGazetteerEvent
in interface GazetteerListener
e
- Gazetteer Eventpublic void processGateEvent(GateEvent e)
GateListener
processGateEvent
in interface GateListener
public void objectCreated(ObjectModificationEvent e)
objectCreated
in interface ObjectModificationListener
public void objectDeleted(ObjectModificationEvent e)
objectDeleted
in interface ObjectModificationListener
public void objectModified(ObjectModificationEvent e)
objectModified
in interface ObjectModificationListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |