|
||||||||||
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
org.eml.MMAX2.gui.windows.MMAX2AttributePanel
public class MMAX2AttributePanel
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Field Summary | |
---|---|
Markable |
currentMarkable
|
boolean |
hasUncommittedChanges
Indicates if the currently loaded annotation contains unsaved changes. |
java.util.ArrayList |
keepables
|
java.util.ArrayList |
lastValidAttributes
|
static java.lang.String |
MMAXDataPath
Indicates the absolute path to the directory in which the .anno file resides. |
javax.swing.JPanel |
modifiablePanel
This field holds a clone of the currently displayed Markable with its values unchanged by any attribute window manipulations that occured since it was selected by the user. |
MMAX2AnnotationScheme |
scheme
|
javax.swing.JCheckBox |
suppressCheck
|
javax.swing.JCheckBox |
warnOnExtraAttributes
|
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, 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 | |
---|---|
MMAX2AttributePanel(MMAX2AnnotationScheme _scheme)
|
Method Summary | |
---|---|
void |
addAttributes(MMAX2Attribute[] attributes)
|
void |
addAttributesAfter(MMAX2Attribute[] attributes,
MMAX2Attribute leader)
|
void |
create()
This method creates an attribute window from the given schemefile. |
void |
displayInitComplete()
This method is called by the main application to inform the AttributeWindow that the display has been built. |
void |
displayMarkableAttributes(Markable markable)
This method displays the attributes of the supplied markable, by retrieving from the underlying AnnotationScheme the correct MMAX2Attribute objects. |
java.util.ArrayList |
getAllAttributes()
This method returns an ArrayList of all attributes defined in the schemefile This method is called in the context of Kappa calculation. |
java.util.ArrayList |
getAllCurrentAttributes()
Returns an ArrayList of all MMAX2Attribute objects currently displayed on this panel, incl. |
java.lang.String[] |
getAllNominalMMAX2AttributeNames()
|
java.util.HashMap |
getAttributeValuePairs()
This method returns a hashmap representing a 'snapshot' of the currently displayed attributes and their values. |
MMAX2AttributePanelContainer |
getContainer()
|
MMAX2Attribute |
getLastAttribute()
|
java.lang.String |
getOneClickAnnotationAttributeName()
|
javax.swing.JScrollPane |
getScrollPane()
|
void |
rebuild()
|
void |
removeAllAttributes()
|
MMAX2Attribute[] |
removeTrailingDependentAttributes(MMAX2Attribute lastAttribute)
Removes and returns MMAX2Attributes dependent on lastAttribute, or empty list. |
void |
setApplyEnabled(boolean status)
|
void |
setAttributePanelContainer(MMAX2AttributePanelContainer _container)
|
void |
setEnabled(boolean status)
|
void |
setHasUncommittedChanges(boolean newStatus)
This method is called from the main application if the dirty status of the annotation changes. |
void |
setMarkableAttributes(Markable markable,
boolean rerender)
This method applies the attributes and values which are currently displayed in the AttributeWindow to Markable markable. |
void |
setOneClickAnnotationAttributeName(java.lang.String _name)
|
void |
setScrollPane(javax.swing.JScrollPane _pane)
|
void |
setUndoEnabled(boolean status)
|
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, 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, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, 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, 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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public MMAX2AnnotationScheme scheme
public javax.swing.JCheckBox suppressCheck
public javax.swing.JCheckBox warnOnExtraAttributes
public Markable currentMarkable
public java.util.ArrayList lastValidAttributes
public java.util.ArrayList keepables
public boolean hasUncommittedChanges
public static java.lang.String MMAXDataPath
public javax.swing.JPanel modifiablePanel
Constructor Detail |
---|
public MMAX2AttributePanel(MMAX2AnnotationScheme _scheme)
Method Detail |
---|
public final void setScrollPane(javax.swing.JScrollPane _pane)
public final javax.swing.JScrollPane getScrollPane()
public final void setAttributePanelContainer(MMAX2AttributePanelContainer _container)
public final void setOneClickAnnotationAttributeName(java.lang.String _name)
public final java.lang.String getOneClickAnnotationAttributeName()
public final void setHasUncommittedChanges(boolean newStatus)
public final java.util.ArrayList getAllAttributes()
public void displayInitComplete()
public final void create()
public final void setEnabled(boolean status)
setEnabled
in class javax.swing.JComponent
public final java.lang.String[] getAllNominalMMAX2AttributeNames()
public final void displayMarkableAttributes(Markable markable)
public final java.util.HashMap getAttributeValuePairs()
public final java.util.ArrayList getAllCurrentAttributes()
public final void setMarkableAttributes(Markable markable, boolean rerender)
public final void removeAllAttributes()
public final void addAttributes(MMAX2Attribute[] attributes)
public final void addAttributesAfter(MMAX2Attribute[] attributes, MMAX2Attribute leader)
public final MMAX2Attribute getLastAttribute()
public final MMAX2Attribute[] removeTrailingDependentAttributes(MMAX2Attribute lastAttribute)
public final void rebuild()
public final void setApplyEnabled(boolean status)
public final void setUndoEnabled(boolean status)
public final MMAX2AttributePanelContainer getContainer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |