org.algernon.kb.okbc.protege.plugins
Class AlgernonTab
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
edu.stanford.smi.protege.widget.AbstractWidget
edu.stanford.smi.protege.widget.AbstractTabWidget
org.algernon.kb.okbc.protege.plugins.AlgernonTab
- All Implemented Interfaces:
- Accessible, Disposable, ImageObserver, MenuContainer, Plugin, Selectable, Serializable, TabWidget, Widget
- public class AlgernonTab
- extends AbstractTabWidget
This class is a Protege tab plugin that allows
the user to construct and enter Algernon expressions.
- See Also:
- Serialized Form
Fields inherited from class edu.stanford.smi.protege.widget.AbstractWidget |
|
Fields inherited from class javax.swing.JPanel |
|
Fields inherited from class java.awt.Container |
|
Methods inherited from class edu.stanford.smi.protege.widget.AbstractTabWidget |
addMainWindowToolBarButton, canClose, canSave, close, configure, createLeftRightSplitPane, createTopBottomSplitPane, getClsTree, getIcon, getMainWindowMenuBar, getSelection, getShortDescription, isSuitable, removeMainWindowToolBarButton, save, setClsTree, setIcon, setShortDescription, synchronizeClsTree |
Methods inherited from class edu.stanford.smi.protege.widget.AbstractWidget |
addSelectionListener, beginTransaction, clearSelection, dispose, endTransaction, equals, getDescriptor, getKnowledgeBase, getLabel, getProject, getPropertyList, getStringProperty, isDesignTime, isRuntime, notifySelectionListeners, removeSelectionListener, setLabel, setPropertyList, setup, show, showInstance |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, 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, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, 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 interface edu.stanford.smi.protege.plugin.Plugin |
getName |
ASK
public static int ASK
TELL
public static int TELL
PREV
public static int PREV
NEXT
public static int NEXT
DEFAULT_RULE_CLASS_NAME
public static String DEFAULT_RULE_CLASS_NAME
PROGRAM_NAME
public String PROGRAM_NAME
MAIN_TITLE
private String MAIN_TITLE
INPUT_PANEL_TITLE
private String INPUT_PANEL_TITLE
OUTPUT_PANEL_TITLE
private String OUTPUT_PANEL_TITLE
MESSAGE_PANEL_TITLE
private String MESSAGE_PANEL_TITLE
PATH_BUILDER_TITLE
private String PATH_BUILDER_TITLE
ASK_TITLE
public String ASK_TITLE
CLEAR_TITLE
public String CLEAR_TITLE
CLEAR_QUERY_HISTORY_TITLE
public String CLEAR_QUERY_HISTORY_TITLE
DELETE_ALL_RULES_TITLE
public String DELETE_ALL_RULES_TITLE
DELETE_RULES_TITLE
public String DELETE_RULES_TITLE
EDIT_PATHS_TITLE
public String EDIT_PATHS_TITLE
EDIT_RULES_TITLE
public String EDIT_RULES_TITLE
LOAD_TITLE
public String LOAD_TITLE
NEXT_TITLE
public String NEXT_TITLE
PREV_TITLE
public String PREV_TITLE
RELOAD_ALL_RULES_TITLE
public String RELOAD_ALL_RULES_TITLE
RELOAD_RULES_TITLE
public String RELOAD_RULES_TITLE
SERVER_TITLE
public String SERVER_TITLE
TELL_TITLE
public String TELL_TITLE
TRACE_RULES_TITLE
public String TRACE_RULES_TITLE
ASK_MNEMONIC
public Integer ASK_MNEMONIC
CLEAR_QUERY_HISTORY_MNEMONIC
public Integer CLEAR_QUERY_HISTORY_MNEMONIC
DELETE_ALL_RULES_MNEMONIC
public Integer DELETE_ALL_RULES_MNEMONIC
DELETE_RULES_MNEMONIC
public Integer DELETE_RULES_MNEMONIC
EDIT_PATHS_MNEMONIC
public Integer EDIT_PATHS_MNEMONIC
EDIT_RULES_MNEMONIC
public Integer EDIT_RULES_MNEMONIC
LOAD_MNEMONIC
public Integer LOAD_MNEMONIC
NEXT_MNEMONIC
public Integer NEXT_MNEMONIC
PREV_MNEMONIC
public Integer PREV_MNEMONIC
RELOAD_ALL_RULES_MNEMONIC
public Integer RELOAD_ALL_RULES_MNEMONIC
RELOAD_RULES_MNEMONIC
public Integer RELOAD_RULES_MNEMONIC
SERVER_MNEMONIC
public Integer SERVER_MNEMONIC
TELL_MNEMONIC
public Integer TELL_MNEMONIC
TRACE_RULES_MNEMONIC
public Integer TRACE_RULES_MNEMONIC
ASK_ACCELERATOR
public KeyStroke ASK_ACCELERATOR
CLEAR_QUERY_HISTORY_ACCELERATOR
public KeyStroke CLEAR_QUERY_HISTORY_ACCELERATOR
DELETE_ALL_RULES_ACCELERATOR
public KeyStroke DELETE_ALL_RULES_ACCELERATOR
DELETE_RULES_ACCELERATOR
public KeyStroke DELETE_RULES_ACCELERATOR
EDIT_PATHS_ACCELERATOR
public KeyStroke EDIT_PATHS_ACCELERATOR
EDIT_RULES_ACCELERATOR
public KeyStroke EDIT_RULES_ACCELERATOR
LOAD_ACCELERATOR
public KeyStroke LOAD_ACCELERATOR
NEXT_ACCELERATOR
public KeyStroke NEXT_ACCELERATOR
PREV_ACCELERATOR
public KeyStroke PREV_ACCELERATOR
RELOAD_ALL_RULES_ACCELERATOR
public KeyStroke RELOAD_ALL_RULES_ACCELERATOR
RELOAD_RULES_ACCELERATOR
public KeyStroke RELOAD_RULES_ACCELERATOR
SERVER_ACCELERATOR
public KeyStroke SERVER_ACCELERATOR
TELL_ACCELERATOR
public KeyStroke TELL_ACCELERATOR
TRACE_RULES_ACCELERATOR
public KeyStroke TRACE_RULES_ACCELERATOR
ASK_TOOLTIP
public String ASK_TOOLTIP
CLEAR_QUERY_HISTORY_TOOLTIP
public String CLEAR_QUERY_HISTORY_TOOLTIP
DELETE_ALL_RULES_TOOLTIP
public String DELETE_ALL_RULES_TOOLTIP
DELETE_RULES_TOOLTIP
public String DELETE_RULES_TOOLTIP
EDIT_PATHS_TOOLTIP
public String EDIT_PATHS_TOOLTIP
EDIT_RULES_TOOLTIP
public String EDIT_RULES_TOOLTIP
LOAD_TOOLTIP
public String LOAD_TOOLTIP
NEXT_TOOLTIP
public String NEXT_TOOLTIP
PREV_TOOLTIP
public String PREV_TOOLTIP
RELOAD_ALL_RULES_TOOLTIP
public String RELOAD_ALL_RULES_TOOLTIP
RELOAD_RULES_TOOLTIP
public String RELOAD_RULES_TOOLTIP
SERVER_TOOLTIP
public String SERVER_TOOLTIP
TELL_TOOLTIP
public String TELL_TOOLTIP
TRACE_RULES_TOOLTIP
public String TRACE_RULES_TOOLTIP
MAIN_LABEL_FONT_SIZE
private static float MAIN_LABEL_FONT_SIZE
VERSION_LABEL_FONT_SIZE
private static float VERSION_LABEL_FONT_SIZE
MENU_TITLE_FONT_SIZE
private static float MENU_TITLE_FONT_SIZE
INPUT_AREA_TAB_SIZE
private static int INPUT_AREA_TAB_SIZE
MESSAGE_AREA_TAB_SIZE
private static int MESSAGE_AREA_TAB_SIZE
CLEAR_LABEL_FONT_SIZE
private static int CLEAR_LABEL_FONT_SIZE
OUTPUT_TABLE_WIDTH
private static int OUTPUT_TABLE_WIDTH
OUTPUT_TABLE_HEIGHT
private static int OUTPUT_TABLE_HEIGHT
MENU_WIDTH
private static int MENU_WIDTH
MENU_HEIGHT
private static int MENU_HEIGHT
LABEL_COLOR
private static Color LABEL_COLOR
MENU_TITLE_COLOR
private static Color MENU_TITLE_COLOR
INPUT_COLUMNS
private static int INPUT_COLUMNS
INPUT_ROWS
private static int INPUT_ROWS
MESSAGE_COLUMNS
private static int MESSAGE_COLUMNS
MESSAGE_ROWS
private static int MESSAGE_ROWS
EXAMPLE_TEXT
private static String EXAMPLE_TEXT
f_algernonRuleClassName
private String f_algernonRuleClassName
f_algernonRuleClassNames
private List f_algernonRuleClassNames
f_mainPanel
private JPanel f_mainPanel
f_inputPanel
private JPanel f_inputPanel
f_outputPanel
private JPanel f_outputPanel
f_messagePanel
private JPanel f_messagePanel
f_pathBuilderPanel
private JPanel f_pathBuilderPanel
f_inputPanelScroller
private JScrollPane f_inputPanelScroller
f_outputPanelScroller
private JScrollPane f_outputPanelScroller
f_messagePanelScroller
private JScrollPane f_messagePanelScroller
f_mainLabel
private JLabel f_mainLabel
f_versionLabel
private JLabel f_versionLabel
f_outputNumberLabel
private JLabel f_outputNumberLabel
f_askButton
private JButton f_askButton
f_tellButton
private JButton f_tellButton
f_nextButton
private JButton f_nextButton
f_prevButton
private JButton f_prevButton
f_inputClearButton
private JButton f_inputClearButton
f_messageClearButton
private JButton f_messageClearButton
f_inputArea
private JTextArea f_inputArea
f_messageArea
private JTextArea f_messageArea
f_outputTable
private JTable f_outputTable
f_algernonMenu
private JMenu f_algernonMenu
f_algy
protected Algernon f_algy
f_lisp
protected Jatha f_lisp
f_enabled
private boolean f_enabled
f_errors
private ErrorSet f_errors
f_savedDirectory
private String f_savedDirectory
f_inputCounter
private int f_inputCounter
f_currentResultDisplay
private int f_currentResultDisplay
f_inputStack
private Stack f_inputStack
f_resultStack
private Stack f_resultStack
f_initialized
private boolean f_initialized
f_ProtegeProject
private Project f_ProtegeProject
f_kb
private AlgernonKB f_kb
f_menuBarInitialized
private boolean f_menuBarInitialized
AlgernonTab
public AlgernonTab()
setup
public void setup(WidgetDescriptor widgetDescriptor,
Project project)
initialize
public void initialize()
getAlgernon
public Algernon getAlgernon()
- Returns the Algernon object associated with this tab.
createLabels
private void createLabels()
createPanels
private void createPanels()
createTextAreas
private void createTextAreas()
createButtons
private void createButtons()
createInputArea
private void createInputArea()
createOutputArea
private void createOutputArea()
createMessageArea
private void createMessageArea()
createPathBuilder
private void createPathBuilder()
addNotify
public void addNotify()
createMenu
private void createMenu()
doAskOrTell
public void doAskOrTell(int mode,
ActionEvent event)
doClearQueryHistory
public void doClearQueryHistory()
doLoad
public void doLoad()
doManageServer
public void doManageServer()
- Enables and disables the Algernon server.
doShowResult
public void doShowResult(int direction)
printResultToTable
void printResultToTable(LispValue results,
LispValue varsToPrint)
- This defines a method that takes a result from
Algernon and prints the results in a table.
getDisplayName
String getDisplayName(Object o)
main
public static void main(String[] args)
doReloadRules
public void doReloadRules()
- Pops up a dialog that lets the user select rules
to be reloaded, then deletes them and reloads them
from the KB.
doReloadAllRules
public void doReloadAllRules()
- Causes all rules to be deleted and then reloaded
from the KB.
doLoadRulesFromKB
public void doLoadRulesFromKB()
- Loads all rules that are instances of a specified class
in the KB. Let's the user select which class to load from.
doDeleteRules
public void doDeleteRules()
- Pops up a dialog that lets the user selected rules to
be deleted.
doDeleteAllRules
public void doDeleteAllRules()
- Causes all rules to be deleted.
doTraceRules
public void doTraceRules()
- Pops up a dialog to let the user trace or untrace Rules.
doEditRules
public void doEditRules()
- Pops up the rule editor window.
doEditPaths
public void doEditPaths()
- Pops up the path editor window.