public class TraleSLDFeatureStructureEditor extends TraleSLDFeatureStructureViewPanel implements java.awt.event.ActionListener
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
static int |
FREE_MODE |
static int |
TF_MODE |
static int |
TTF_MODE |
innerPanel, utilprogressBar, viewaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
TraleSLDFeatureStructureEditor(KahinaInstance<?,?,?,?> kahina,
AuxiliaryTraleInstance trale) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
TraleSLDFeatureStructureEditorMenu |
createAppropriateContextMenu() |
TraleSLDFeatureStructureEditorMenu |
createAtomContextMenu() |
TraleSLDFeatureStructureEditorMenu |
createFeatureContextMenu() |
TraleSLDFeatureStructureEditorMenu |
createListContextMenu() |
TraleSLDFeatureStructureEditorMenu |
createTagContextMenu() |
TraleSLDFeatureStructureEditorMenu |
createTypeContextMenu() |
void |
failureMessage(java.lang.String desc) |
java.lang.String |
getBufferedStructure() |
java.util.List<java.lang.String> |
getContextFeatures() |
java.lang.String |
getContextParentStructureType() |
java.util.List<java.lang.String> |
getContextSiblingTypes() |
java.lang.String |
getContextStructureType() |
java.util.List<java.lang.String> |
getContextSubtypes() |
java.util.List<java.lang.String> |
getContextSupertypes() |
int |
getEditingMode() |
java.lang.String |
getGrisuString() |
void |
infoMessage(java.lang.String desc) |
void |
loadGrisu(java.lang.String grisuString)
Display a feature structure directly, shortcutting FS compression.
|
void |
processContextStructure(Block block) |
void |
processEvent(KahinaEvent event) |
void |
setBufferedStructure(java.lang.String bufferedStructure) |
void |
setEditingMode(int editingMode) |
void |
setSignature(TraleSLDSignature sig) |
void |
success(java.lang.String desc) |
void |
updateDisplay()
This method must be called from the Swing event dispatch thread.
|
void |
warningMessage(java.lang.String desc) |
hideProgressBar, setProgressBar, setView, showProgressBar, updateDisplayAndRepaintFromEventDispatchThreadgetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, 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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, 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, updateadd, 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, transferFocusDownCycle, validate, validateTreeaction, 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, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, 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, transferFocusBackward, transferFocusUpCyclepublic static final int FREE_MODE
public static final int TF_MODE
public static final int TTF_MODE
public TraleSLDFeatureStructureEditor(KahinaInstance<?,?,?,?> kahina, AuxiliaryTraleInstance trale)
public void setSignature(TraleSLDSignature sig)
public int getEditingMode()
public void setEditingMode(int editingMode)
public void loadGrisu(java.lang.String grisuString)
grisuString - a feature structure in GRISU formatpublic java.lang.String getGrisuString()
public java.lang.String getContextStructureType()
public java.lang.String getContextParentStructureType()
public java.lang.String getBufferedStructure()
public void setBufferedStructure(java.lang.String bufferedStructure)
public void updateDisplay()
KahinaViewPanelupdateDisplay in class TraleSLDFeatureStructureViewPanelpublic void processEvent(KahinaEvent event)
processEvent in interface KahinaListenerprocessEvent in class KahinaViewPanel<TraleSLDFeatureStructureView>public void processContextStructure(Block block)
public java.util.List<java.lang.String> getContextSubtypes()
public java.util.List<java.lang.String> getContextSupertypes()
public java.util.List<java.lang.String> getContextSiblingTypes()
public java.util.List<java.lang.String> getContextFeatures()
public TraleSLDFeatureStructureEditorMenu createAppropriateContextMenu()
public TraleSLDFeatureStructureEditorMenu createTypeContextMenu()
public TraleSLDFeatureStructureEditorMenu createAtomContextMenu()
public TraleSLDFeatureStructureEditorMenu createFeatureContextMenu()
public TraleSLDFeatureStructureEditorMenu createTagContextMenu()
public TraleSLDFeatureStructureEditorMenu createListContextMenu()
public void infoMessage(java.lang.String desc)
public void success(java.lang.String desc)
public void failureMessage(java.lang.String desc)
public void warningMessage(java.lang.String desc)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListener