|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--gate.creole.AbstractVisualResource | +--gate.gui.ProtegeWrapper
This class wrap the Protege application to show it as VR in GATE
Field Summary | |
private static boolean |
DEBUG
Debug flag |
protected Handle |
myHandle
|
private ProtegeProjectName |
projectFileName
File name as string will be VR target for now |
private JRootPane |
protegeRootPane
Should have JRootPane to show Protege in it |
Fields inherited from class gate.creole.AbstractVisualResource |
features |
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 | |
ProtegeWrapper()
|
Method Summary | |
Resource |
init()
Initialise this resource, and return it. |
private void |
initGuiComponents()
|
private void |
initListeners()
|
private void |
initLocalData()
|
static void |
main(String[] args)
Test code |
void |
refreshOntoeditor(Ontology o)
Refresh OntoEditor if any on LargeView tab pane |
private void |
removeToolbar(JRootPane rootPane)
Find and remove the Protege toolbar |
void |
setHandle(Handle handle)
Used by the main GUI to tell this VR what handle created it. |
void |
setTarget(Object target)
Called by the GUI when this viewer/editor has to initialise itself for a specific object. |
Methods inherited from class gate.creole.AbstractVisualResource |
cleanup, getFeatures, getParameterValue, setFeatures, 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 |
private static final boolean DEBUG
private ProtegeProjectName projectFileName
private JRootPane protegeRootPane
protected Handle myHandle
Constructor Detail |
public ProtegeWrapper()
Method Detail |
public Resource init()
AbstractVisualResource
init
in interface Resource
init
in class AbstractVisualResource
private void initLocalData()
private void initGuiComponents()
private void removeToolbar(JRootPane rootPane)
private void initListeners()
public void setHandle(Handle handle)
AbstractVisualResource
setHandle
in interface VisualResource
setHandle
in class AbstractVisualResource
public void refreshOntoeditor(Ontology o)
public void setTarget(Object target)
AbstractVisualResource
setTarget
in interface VisualResource
setTarget
in class AbstractVisualResource
target
- the object (be it a Resource
,
DataStore
or whatever) this viewer has to displaypublic static void main(String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |