com.ontotext.gate.vr
Class Gaze
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
gate.creole.AbstractVisualResource
com.ontotext.gate.vr.Gaze
- All Implemented Interfaces:
- GazetteerListener, GateListener, ObjectModificationListener, Resource, FeatureBearer, NameBearer, VisualResource, ImageObserver, MenuContainer, Serializable, EventListener, Accessible
public class Gaze
- extends AbstractVisualResource
- implements GazetteerListener, ObjectModificationListener
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.
- See Also:
- Serialized Form
Constructor Summary |
Gaze()
|
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
SIZE_X
public static final int SIZE_X
- size x when running from the tools menu
- See Also:
- Constant Field Values
SIZE_Y
public static final int SIZE_Y
- size y when running from the tools menu
- See Also:
- Constant Field Values
POSITION_X
public static final int POSITION_X
- positin x when running from the tools menu
- See Also:
- Constant Field Values
POSITION_Y
public static final int POSITION_Y
- positin y when running from the tools menu
- See Also:
- Constant Field Values
linearPopup
protected JPopupMenu linearPopup
- Linear Definition Popup menu
linearPopupEdit
protected JMenuItem linearPopupEdit
- Linear Definition Edit Popup Item
linearPopupInsert
protected JMenuItem linearPopupInsert
- Linear Definition Insert Popup Item
linearPopupRemove
protected JMenuItem linearPopupRemove
- Linear Definition Remove Popup Item
mainMenu
protected JMenuBar mainMenu
fileMenu
protected JMenu fileMenu
viewMenu
protected JMenu viewMenu
baseSplit
protected JSplitPane baseSplit
mappingSplit
protected JSplitPane mappingSplit
linearSplit
protected JSplitPane linearSplit
linearPanel
protected JPanel linearPanel
listPanel
protected JPanel listPanel
mappingPanel
protected JPanel mappingPanel
ontologyPanel
protected JPanel ontologyPanel
linearLabel
protected JLabel linearLabel
gridBagLayout1
protected GridBagLayout gridBagLayout1
linearScroll
protected JScrollPane linearScroll
linearBar
protected JToolBar linearBar
btnLinearLoad
protected JButton btnLinearLoad
linearList
protected JList linearList
btnLinearSave
protected JButton btnLinearSave
btnLinearSaveAs
protected JButton btnLinearSaveAs
listLabel
protected JLabel listLabel
gridBagLayout2
protected GridBagLayout gridBagLayout2
listBar
protected JToolBar listBar
btnListLoad
protected JButton btnListLoad
listScroll
protected JScrollPane listScroll
btnListSave
protected JButton btnListSave
btnListSaveAs
protected JButton btnListSaveAs
gridBagLayout3
protected GridBagLayout gridBagLayout3
mappingLabel
protected JLabel mappingLabel
mappingBar
protected JToolBar mappingBar
btnMappingLoad
protected JButton btnMappingLoad
mappingScroll
protected JScrollPane mappingScroll
mappingList
protected JList mappingList
btnMappingSave
protected JButton btnMappingSave
btnMappingSaveAs
protected JButton btnMappingSaveAs
ontologyLabel
protected JLabel ontologyLabel
ontologyBar
protected JToolBar ontologyBar
btnOntologyLoad
protected JButton btnOntologyLoad
ontologyScroll
protected JScrollPane ontologyScroll
gridBagLayout4
protected GridBagLayout gridBagLayout4
menuHelp
protected JMenu menuHelp
menuAbout
protected JMenuItem menuAbout
thisLayout
protected GridBagLayout thisLayout
menuLinear
protected JMenu menuLinear
menuLinearLoad
protected JMenuItem menuLinearLoad
menuLinearSave
protected JMenuItem menuLinearSave
menuLinearSaveAs
protected JMenuItem menuLinearSaveAs
menuList
protected JMenu menuList
menuListLoad
protected JMenuItem menuListLoad
menuListSave
protected JMenuItem menuListSave
menuListSaveAs
protected JMenuItem menuListSaveAs
menuMapping
protected JMenu menuMapping
menuMappingLoad
protected JMenuItem menuMappingLoad
menuMappingSave
protected JMenuItem menuMappingSave
menuMappingSaveAs
protected JMenuItem menuMappingSaveAs
menuOntology
protected JMenu menuOntology
menuOntologyLoad
protected JMenuItem menuOntologyLoad
menuRefresh
protected JMenuItem menuRefresh
oTree
protected JTree oTree
listArea
protected JTextArea listArea
btnMappingNew
protected JButton btnMappingNew
btnLinearNew
protected JButton btnLinearNew
btnListNew
protected JButton btnListNew
menuLinearNew
protected JMenuItem menuLinearNew
menuListNew
protected JMenuItem menuListNew
menuMappingNew
protected JMenuItem menuMappingNew
btnListSaveAll
protected JButton btnListSaveAll
menuListSaveAll
protected JMenuItem menuListSaveAll
Gaze
public Gaze()
setTarget
public 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.
- Specified by:
setTarget
in interface VisualResource
- Overrides:
setTarget
in class AbstractVisualResource
- Parameters:
targeta
- the object (be it a Resource
,
DataStore
or whatever) this viewer has to display
init
public Resource init()
throws ResourceInstantiationException
- Description copied from class:
AbstractVisualResource
- Initialise this resource, and return it.
- Specified by:
init
in interface Resource
- Overrides:
init
in class AbstractVisualResource
- Throws:
ResourceInstantiationException
processGazetteerEvent
public void processGazetteerEvent(GazetteerEvent e)
- Description copied from interface:
GazetteerListener
- Called when a Gazetteer event has occured
- Specified by:
processGazetteerEvent
in interface GazetteerListener
- Parameters:
e
- Gazetteer Event
processGateEvent
public void processGateEvent(GateEvent e)
- Description copied from interface:
GateListener
- Called when a Gate event has occured
- Specified by:
processGateEvent
in interface GateListener
objectCreated
public void objectCreated(ObjectModificationEvent e)
- Specified by:
objectCreated
in interface ObjectModificationListener
objectDeleted
public void objectDeleted(ObjectModificationEvent e)
- Specified by:
objectDeleted
in interface ObjectModificationListener
objectModified
public void objectModified(ObjectModificationEvent e)
- Specified by:
objectModified
in interface ObjectModificationListener