|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OntologyView
describes the behaviour of an ontology view supported by the
DefaultOntologyViewer
Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.
| Method Summary | |
|---|---|
boolean |
canViewSource(Project35FormContext project35FormContext,
OntologySource ontologySource)
determines if the view is capable of supporting terms provided by an ontology source |
void |
changeFont(Font font)
|
JComponent |
getComponent()
gets the component that renders the view. |
String |
getName()
gets the name of the view |
OntologyTerm[] |
getSelectedOntologyTerms(Project35FormContext project35FormContext)
gets the ontology terms selected in the view |
void |
reset()
resets the display of terms in the view |
void |
setOntologySource(Project35FormContext project35FormContext,
OntologySource ontologySource)
sets the ontology source used by the view |
void |
setOntologyViewListener(OntologyViewListener ontologyViewListener)
sets the object that listens for when end-users have finished selecting the terms they want to use to mark-up a field. |
| Method Detail |
|---|
String getName()
boolean canViewSource(Project35FormContext project35FormContext,
OntologySource ontologySource)
project35FormContext - a collection of environment variables that
refer to different parts of the Project35 ApplicationontologySource - provides terms to the view. The View performs
introspection on the source by checking what marker interfaces the
source supports. It uses these to determine whether it can support
a particular kind of view.
void setOntologySource(Project35FormContext project35FormContext,
OntologySource ontologySource)
project35FormContext - a collection of environment variables that
refer to different parts of the Project35 ApplicationontologySource - provides terms to the view.OntologyTerm[] getSelectedOntologyTerms(Project35FormContext project35FormContext)
project35FormContext - a collection of environment variables that
refer to different parts of the Project35 Applicationvoid reset()
void setOntologyViewListener(OntologyViewListener ontologyViewListener)
ontologyViewListener - the object that performs some action based on knowledge
that a set of terms were selected in the view.JComponent getComponent()
void changeFont(Font font)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||