|
||||||||||
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 project35.tabletDeployment.DefaultOntologyViewerPanel
public class DefaultOntologyViewerPanel
reworks project35.soa.ontology.views.DefaultOntologyViewer so that it can be put in a panel instead of a dialog
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 |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected OntologyView |
currentView
|
protected java.lang.String |
delimiter
|
protected ListView |
listView
|
protected OntologyContext |
ontologyContext
|
protected OntologySource |
ontologySource
|
protected java.util.ArrayList |
ontologyViews
|
protected PictureView |
pictureView
|
protected Project35FormContext |
project35FormContext
|
protected OntologyTerm[] |
selectedOntologyTerms
|
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 | |
---|---|
DefaultOntologyViewerPanel(Project35UIFactory project35UIFactory,
TabletProject35Dialog dialog)
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
|
void |
addOntologyView(OntologyView ontologyView)
|
boolean |
canViewSource(Project35FormContext project35FormContxt,
OntologySource source)
determines if this Viewer class is capable of rendering terms supplied by a given ontology source. |
protected javax.swing.JPanel |
createButtonPanel()
|
Parameter[] |
getInitialisationParameters()
|
java.lang.String |
getName()
|
OntologyServiceMetaData |
getOntologyServiceMetaData(Project35FormContext project35FormContext)
|
OntologyTermProvenance |
getOntologyTermProvenance(Project35FormContext project35FormContext,
OntologyTerm ontologyTerm)
|
OntologyTerm[] |
getRelatedTerms(Project35FormContext project35FormContext,
OntologyRelationshipType relationshipType,
OntologyTerm ontologyTerm)
|
OntologyTerm[] |
getSelectedOntologyTerms(Project35FormContext project35FormContext)
|
void |
initialiseService(java.net.URL resourceDirectory,
Parameter[] initialisationParameters)
|
boolean |
isWorking()
|
protected void |
reset()
|
void |
setLastSelectedTerm(OntologyTerm ontologyTerm)
sets the last term that was selected in the view |
void |
setOntologySource(Project35FormContext project35FormContext,
OntologySource ontologySource)
method called by Project35 to help establish the ontology source being rendered by the viewer class. |
void |
setOntologyTermSelectionListener(OntologyTermSelectionListener ontologyTermSelectionListener)
|
void |
setOntologyView(OntologyView ontologyView,
boolean allowOtherViews)
|
void |
setShowReset(boolean showReset)
|
void |
showProvenance(boolean flag)
|
java.lang.String |
test()
this is a diagnostic method to retrieve any errors that may have occurred when the viewer was initially created. |
void |
useListView(boolean allowOther)
|
void |
useTreeView(boolean allowOther)
|
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
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, 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface project35.soa.ontology.views.OntologyViewer |
---|
setVisible |
Field Detail |
---|
protected ListView listView
protected OntologyView currentView
protected PictureView pictureView
protected java.util.ArrayList ontologyViews
protected OntologySource ontologySource
protected Project35FormContext project35FormContext
protected OntologyContext ontologyContext
protected OntologyTerm[] selectedOntologyTerms
protected java.lang.String delimiter
Constructor Detail |
---|
public DefaultOntologyViewerPanel(Project35UIFactory project35UIFactory, TabletProject35Dialog dialog)
Method Detail |
---|
protected javax.swing.JPanel createButtonPanel()
public OntologyServiceMetaData getOntologyServiceMetaData(Project35FormContext project35FormContext)
getOntologyServiceMetaData
in interface OntologyViewer
public void showProvenance(boolean flag)
public void setShowReset(boolean showReset)
public void addOntologyView(OntologyView ontologyView)
public void useTreeView(boolean allowOther)
public void useListView(boolean allowOther)
public void setOntologyView(OntologyView ontologyView, boolean allowOtherViews)
public java.lang.String getName()
getName
in class java.awt.Component
public boolean isWorking()
isWorking
in interface OntologyViewer
public Parameter[] getInitialisationParameters()
getInitialisationParameters
in interface ServiceClass
public void initialiseService(java.net.URL resourceDirectory, Parameter[] initialisationParameters) throws java.lang.Exception
initialiseService
in interface ServiceClass
java.lang.Exception
public void setOntologySource(Project35FormContext project35FormContext, OntologySource ontologySource) throws java.lang.Exception
OntologyViewer
setOntologySource
in interface OntologyViewer
java.lang.Exception
public boolean canViewSource(Project35FormContext project35FormContxt, OntologySource source)
OntologyViewer
canViewSource
in interface OntologyViewer
public java.lang.String test()
OntologyViewer
test
in interface OntologyViewer
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
public OntologyTerm[] getRelatedTerms(Project35FormContext project35FormContext, OntologyRelationshipType relationshipType, OntologyTerm ontologyTerm)
getRelatedTerms
in interface OntologyViewer
public OntologyTermProvenance getOntologyTermProvenance(Project35FormContext project35FormContext, OntologyTerm ontologyTerm)
getOntologyTermProvenance
in interface OntologyViewer
public OntologyTerm[] getSelectedOntologyTerms(Project35FormContext project35FormContext)
getSelectedOntologyTerms
in interface OntologyViewer
public void setOntologyTermSelectionListener(OntologyTermSelectionListener ontologyTermSelectionListener)
setOntologyTermSelectionListener
in interface OntologyViewer
public void setLastSelectedTerm(OntologyTerm ontologyTerm)
OntologyViewListener
setLastSelectedTerm
in interface OntologyViewListener
ontologyTerm
- the last selected ontology termprotected void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |