|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface defining the methods of an Ontology Editor.
Method Summary | |
void |
addSubClass(com.ontotext.gate.vr.ClassNode root,
String className,
String classComment)
Adds Sub Class given a ClassNode and the resulting info from the Add Sub Class dialog. |
void |
addSubClass(int x,
int y)
Invokes an add sub class dialog in position x,y |
int |
AskWannaSave(Ontology o,
int x,
int y)
Wanna Save Dialog invocation. |
void |
closeOntologies(Vector list)
Closes list of ontologies |
void |
closeOntology(Ontology o,
int x,
int y)
Closes an ontology. |
void |
createOntology(String name,
String sourceURI,
String theURL,
String comment)
Creates a new ontology |
void |
deleteOntology(Ontology o,
int x,
int y)
Deletes an ontology. |
void |
editClassURI(OClass c,
int x,
int y)
Edit the URI of an ontology class |
void |
editURI(Ontology o,
int x,
int y)
Edits the URI of an ontology. |
void |
fileClose(int x,
int y,
Vector ontologies)
Invokes a mutiple selection close dialog with a list of ontologies to be closed. |
void |
fileExit()
Acts on choosing Exit from the File menu. |
void |
fileNew(int x,
int y)
Inovkes a new ontology dialog. |
void |
fileOpen(int x,
int y)
Acts on choosing Open from the File menu. |
void |
fileSave(int x,
int y,
Vector ontologies)
Invoke a mutiple selection save dialog with a list of ontologies to be saved. |
Set |
getAllURIs()
Gets all URIs that are present at the moment as ontology URIs. |
Set |
getAllURIs(Ontology o)
Retrieve a set of all the class URIs in an ontology |
Vector |
getModifiedOntologies()
Gets all modified ontologies. |
Ontology |
getOntology()
Gets the loaded ontology |
Vector |
getOntologyList()
Gets the list of ontologies currently in the editor |
void |
ontologySelected(Ontology o)
Selects an ontology. |
void |
removeClass(com.ontotext.gate.vr.ClassNode node)
Removes the node/class |
void |
renameClass(OClass c,
com.ontotext.gate.vr.ClassNode n,
int x,
int y)
Renames a class |
void |
renameOntology(Ontology o,
int x,
int y)
Renames an ontology |
void |
saveAsOntology(Ontology o,
int x,
int y)
Invokes a Save As dialog for this ontology and saves it to the specified location. |
void |
saveOntologies(Vector list)
Saves a list of ontologies. |
void |
saveOntology(Ontology o)
Saves this ontology |
void |
setOntology(Ontology o)
Sets the ontology to be loaded in the editor |
void |
setOntologyList(Vector list)
Sets the list of ontologies to be loaded in the editor |
void |
visualize()
Visualizes the editor |
Methods inherited from interface gate.VisualResource |
setHandle, setTarget |
Methods inherited from interface gate.Resource |
cleanup, getParameterValue, init, setParameterValue, setParameterValues |
Methods inherited from interface gate.util.FeatureBearer |
getFeatures, setFeatures |
Methods inherited from interface gate.util.NameBearer |
getName, setName |
Method Detail |
public void createOntology(String name, String sourceURI, String theURL, String comment) throws ResourceInstantiationException
name
- the name of the ontologysourceURI
- the URI of the ontologytheURL
- the URL of the ontologycomment
- ontology comment
ResourceInstantiationException
public void setOntology(Ontology o)
o
- the ontology to be loadedpublic Ontology getOntology()
public void setOntologyList(Vector list)
list
- the list of ontologiespublic Vector getOntologyList()
public void visualize()
public void addSubClass(int x, int y)
x
- the x coordinate of the dialogy
- the y coordinate of the dialogpublic void addSubClass(com.ontotext.gate.vr.ClassNode root, String className, String classComment)
root
- the node which is root to the sub class being addedclassName
- the name from the dialogclassComment
- the comment from the dialogpublic void removeClass(com.ontotext.gate.vr.ClassNode node)
node
- the node to be removedpublic void renameClass(OClass c, com.ontotext.gate.vr.ClassNode n, int x, int y)
c
- the class to be renamedn
- the class node associated with the classx
- coordsy
- coordspublic void ontologySelected(Ontology o)
o
- the selected ontologypublic void saveOntologies(Vector list)
list
- a list of ontologies to be savedpublic void closeOntologies(Vector list) throws ResourceInstantiationException
list
- a list of ontologies to be saved
ResourceInstantiationException
public Vector getModifiedOntologies()
public void saveOntology(Ontology o) throws ResourceInstantiationException
o
- the ontology to be saved
ResourceInstantiationException
public void saveAsOntology(Ontology o, int x, int y) throws ResourceInstantiationException
o
- the ontology to be savedx
- the x coordinate of the save as dialogy
- the y coordinate of the save as dialog
ResourceInstantiationException
public void renameOntology(Ontology o, int x, int y)
o
- the ontology to be renamedx
- the x coordinate of the rename dialogy
- the y coordinate of the rename dialogpublic void deleteOntology(Ontology o, int x, int y) throws ResourceInstantiationException
o
- the ontology to be deletedx
- x coordinate of the option pane to be invokedy
- y coordinate of the option pane to be invoked
ResourceInstantiationException
public void editURI(Ontology o, int x, int y)
o
- the ontology to be editedx
- coords of the dialogy
- coords of the dialogpublic void editClassURI(OClass c, int x, int y)
c
- class to be editedx
- coords of the dialogy
- coords of the dialogpublic Set getAllURIs()
public Set getAllURIs(Ontology o)
o
- the ontology
public void closeOntology(Ontology o, int x, int y) throws ResourceInstantiationException
o
- the ontology to be closedx
- x coordinate of the option pane to be invokedy
- y coordinate of the option pane to be invoked
ResourceInstantiationException
public int AskWannaSave(Ontology o, int x, int y)
o
- the ontology to be saved or notx
- x coordinate of the option pane to be invokedy
- y coordinate of the option pane to be invoked
public void fileExit()
public void fileOpen(int x, int y) throws ResourceInstantiationException
x
- the x coordinate of the invocationy
- the y coordinate of the invocation
ResourceInstantiationException
- if something goes wrong with the loading.public void fileSave(int x, int y, Vector ontologies)
x
- coords of the dialogy
- coords of the dialogontologies
- the list of ontologies to be optionally savedpublic void fileClose(int x, int y, Vector ontologies)
x
- coords of the dialogy
- coords of the dialogontologies
- the list of ontologies to be optionally closedpublic void fileNew(int x, int y)
x
- coords of the dialogy
- coords of the dialog
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |