|
||||||||||
| 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
project35.soa.ontology.views.PictureView
public class PictureView
renders ontology terms as a collection of thumbnail images. It is one of the
views supported by DefaultOntologyViewer. It only supports
ontology sources which implement the
project35.soa.ontology.sources.ImageDescriptionSupport interface.
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| 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.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 | |
|---|---|
PictureView()
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
|
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 |
OntologyServiceMetaData |
getOntologyServiceMetaData(Project35FormContext project35FormContext)
|
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. |
| 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 |
| Constructor Detail |
|---|
public PictureView()
| Method Detail |
|---|
public void changeFont(Font font)
changeFont in interface OntologyViewpublic String getName()
OntologyView
getName in interface OntologyViewgetName in class Componentpublic OntologyServiceMetaData getOntologyServiceMetaData(Project35FormContext project35FormContext)
public boolean canViewSource(Project35FormContext project35FormContext,
OntologySource ontologySource)
OntologyView
canViewSource in interface OntologyViewproject35FormContext - 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.
public void setOntologySource(Project35FormContext project35FormContext,
OntologySource ontologySource)
OntologyView
setOntologySource in interface OntologyViewproject35FormContext - a collection of environment variables that
refer to different parts of the Project35 ApplicationontologySource - provides terms to the view.public OntologyTerm[] getSelectedOntologyTerms(Project35FormContext project35FormContext)
OntologyView
getSelectedOntologyTerms in interface OntologyViewproject35FormContext - a collection of environment variables that
refer to different parts of the Project35 Applicationpublic void setOntologyViewListener(OntologyViewListener ontologyViewListener)
OntologyView
setOntologyViewListener in interface OntologyViewontologyViewListener - the object that performs some action based on knowledge
that a set of terms were selected in the view.public void reset()
OntologyView
reset in interface OntologyViewpublic JComponent getComponent()
OntologyView
getComponent in interface OntologyViewpublic void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||