Class FeeltraceTargetControlPanel

  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by
                      extended by
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer,, javax.accessibility.Accessible, AnnotationSelectionListener

public class FeeltraceTargetControlPanel
extends TargetControlPanel

A Feeltrace target control panel can be used with a Feeltrace annotation layer (see FeeltraceAnnotationLayer). The main component of the panel is a FeeltraceCircle, in which annotations can be made and which can display existing annotations. A checkbox named "Replay" is added under the circle. If it is checked (default), existing annotations will be displayed in the circle. At the bottom of the panel is a FeeltraceTimeLine, which is a bar with an overview of the annotations over the entire timeline. The timeline will be updated as annotations are made without searching the corpus, which may lead to an inaccurate view. When the user clicks the refresh button at the right of the timeline, the corpus will be queried so the timeline provides an accurate view.

See Also:
Serialized Form

Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JComponent
Field Summary
Fields inherited from class javax.swing.JComponent
Fields inherited from class java.awt.Component
Fields inherited from interface java.awt.image.ImageObserver
Constructor Summary
FeeltraceTargetControlPanel(AnnotationFrame frame, AnnotationLayer layer, org.w3c.dom.Node layerInfo, NAgent agent)
          Constructs a new Feeltrace target control panel for the specified layer and agent.
Method Summary
 boolean clickAnnotation()
          Determines whether the user should click the mouse button to start and end annotating, or whether the user should keep the mouse button pressed while annotating.
 FeeltraceAnnotationLayer getFeeltraceLayer()
          Returns the Feeltrace annotation layer.
 boolean setTarget(NOMWriteElement annotation)
          Sets the target of the current annotation.
 boolean showLabels()
          Determines whether the Feeltrace circle should show labels for some predefined emotions.
Methods inherited from class
addAnnotationListener, annotationSelected, getAgent, getLayer, removeAnnotationListener
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, setEnabled, 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

Constructor Detail


public FeeltraceTargetControlPanel(AnnotationFrame frame,
                                   AnnotationLayer layer,
                                   org.w3c.dom.Node layerInfo,
                                   NAgent agent)

Constructs a new Feeltrace target control panel for the specified layer and agent. The agent parameter may be null if the layer belongs to an interaction coding rather than an agent coding. The layerInfo parameter is the layerinfo element from the configuration file. It may have the following two optional attributes:

frame - the annotation frame that contains this control panel
layer - an annotation layer
layerInfo - the layerinfo element from the configuration file
agent - an agent (if the layer belongs to an agent coding) or null (if the layer belongs to an interaction coding)
Method Detail


public boolean showLabels()

Determines whether the Feeltrace circle should show labels for some predefined emotions.

true if the Feeltrace circle should show labels, false otherwise


public boolean clickAnnotation()

Determines whether the user should click the mouse button to start and end annotating, or whether the user should keep the mouse button pressed while annotating.

true if the user should click to start and end annotating, false if the user should keep the mouse button pressed while annotating


public FeeltraceAnnotationLayer getFeeltraceLayer()

Returns the Feeltrace annotation layer.

the Feeltrace annotation layer


public boolean setTarget(NOMWriteElement annotation)

Sets the target of the current annotation. This is handled by the Feeltrace circle, but this method saves the emotion of the current annotation (used to update the timeline without searching the corpus).

Specified by:
setTarget in class TargetControlPanel
annotation - the current annotation
true if the target was set successfully, false otherwise