Class ImagePanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by ImagePanel
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class ImagePanel
extends javax.swing.JPanel

Used the panel where annotations to the jpg image file are stored.

See Also:
Serialized Form

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  AllData allData
          Used to store modifications so far without writing them to disk.
static int BODY_SEL_BOX
           
static int BODY_SEL_GAZE
           
static int BODY_SEL_HEAD
           
static int BODY_SEL_LEFT_FOOT
           
static int BODY_SEL_LEFT_HAND
           
static int BODY_SEL_LEFT_SHOULDER
           
static int BODY_SEL_RIGHT_FOOT
           
static int BODY_SEL_RIGHT_HAND
           
static int BODY_SEL_RIGHT_SHOULDER
           
protected  boolean hundreds
          flag for whether the number of images is in the hundreds or thousands, for use by load and save file operations.
protected  int id
          current id of the frame being edited.
protected  int max
          Flag to indicate the current maximum frame that has been edited.
protected  int previd
          current id of the frame being edited.
protected  int prevselected
          current id of the frame being edited.
 
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
ImagePanel(CAVIARGUI caviargui)
          Calls public method loadInitialImage to create the new ImagePanel object.
ImagePanel(java.lang.String seq, CAVIARGUI caviargui)
          Calls public method loadInitialImage to create the new ImagePanel object.
 
Method Summary
static double atan2(double y, double x)
           
 boolean bodyPartSelectedisDraw()
           
 boolean bodySingleBoxisEmpty()
           
 boolean checkGroupBoxes()
          Method to check to see whether the group boxes are still valid, called before saving and moving between frames so that an invalid, ie some singe boxes not contained within the group box, never happens
 void copyBodyNext()
           
 void copyBoxNext()
          Copies the currently selected box into the next data structure
 void copyToNext()
          Copys the data from the current frame into the next frame and loads the next frame.
 void copyToPrev()
          Loads the previous frame, copying all the data stored in the current frame to the previous one.
 void copyTruthsNext()
          Copies the currently selected box's attributes into the next data structure
 void deleteGroBox(int selected)
          Deletes the GroupBox object at index selected.
 void deleteIndBox(int selected)
          Deletes the SingleBox object at index selected .
 void drawBody(boolean dragMouse)
           
 Circle drawCircle()
           
 java.awt.geom.Line2D.Float drawLine()
           
 void drawRect()
          Redraws the rectangle, called when some changed has been made to the datastructure.
 Circle FitCircleInBox(Circle circle, java.awt.Rectangle box)
           
 int getbodyPartSelected()
           
 boolean getbodyPartSelectedState()
           
 java.awt.Rectangle getBoxforCurrentSelection()
           
 boolean getGBActive(int selected)
          Returns the active attribute of the GroupBox object at index selected.
 boolean getGBAppear(int selected)
          Returns the appear attribute of the GroupBox object at index selected.
 int getGBAxis(int selected)
          Returns the GroupBox object at index selected axis attribute.
 boolean getGBbrowserRole(int selected)
          Returns the browser role attribute of the GroupBox object at index selected.
 boolean getGBbrowsingSit(int selected)
          Returns the browsing sit attribute of the GroupBox object at index selected.
 boolean getGBDisappear(int selected)
          Returns the disappear attribute of the GroupBox object at index selected.
 boolean getGBFight(int selected)
          Returns the fight attribute of the GroupBox object at index selected.
 boolean getGBFightEnd(int selected)
          Returns the fight end attribute of the GroupBox object at index selected.
 boolean getGBFighting(int selected)
          Returns the fighting attribute of the GroupBox object at index selected.
 boolean getGBFightStart(int selected)
          Returns the fight start attribute of the GroupBox object at index selected.
 boolean getGBFightVictimLeft(int selected)
          Returns the victim left attribute of the GroupBox object at index selected.
 boolean getGBGrFighting(int selected)
          Returns the group fighting attribute of the GroupBox object at index selected.
 boolean getGBGrInactive(int selected)
          Returns the group inactive attribute of the GroupBox object at index selected.
 boolean getGBGrInteracting(int selected)
          Returns the group interacting attribute of the GroupBox object at index selected.
 boolean getGBGrMeeting(int selected)
          Returns the group meeting attribute of the GroupBox object at index selected.
 boolean getGBGrMoving(int selected)
          Returns the group moving attribute of the GroupBox object at index selected.
 boolean getGBGrSplitting(int selected)
          Returns the group splitting attribute of the GroupBox object at index selected.
 boolean[] getGBIBoxes(int selected)
          Gets the boolean array representing the individual boxes contained within the GroupBox object
 boolean getGBInActive(int selected)
          Returns the inactive attribute of the GroupBox object at index selected.
 boolean getGBLeaving(int selected)
          Returns the leaving attribute of the GroupBox object at index selected.
 boolean getGBLeftBehind(int selected)
          Returns the left behind attribute of the GroupBox object at index selected.
 boolean getGBLeftObject(int selected)
          Returns the left behind attribute of the GroupBox object at index selected.
 boolean getGBMeet(int selected)
          Returns the meet attribute of the GroupBox object at index selected.
 boolean getGBMeeting(int selected)
          Returns the meeting attribute of the GroupBox object at index selected.
 boolean getGBMove(int selected)
          Returns the move attribute of the GroupBox object at index selected.
 boolean getGBNoneMov(int selected)
           
 boolean getGBNoneRol(int selected)
           
 boolean getGBNoneSce(int selected)
           
 boolean getGBNoneSit(int selected)
           
 boolean getGBshopenterSce(int selected)
          Returns the shop enter scenario attribute of the GroupBox object at index selected.
 boolean getGBshopenterSit(int selected)
          Returns the shop enter attribute of the GroupBox object at index selected.
 boolean getGBshopexitSce(int selected)
          Returns the shop exit scenario attribute of the GroupBox object at index selected.
 boolean getGBshopexitSit(int selected)
          Returns the shop exit situation attribute of the GroupBox object at index selected.
 boolean getGBshopreenterSce(int selected)
          Returns the shop reenter scenario attribute of the GroupBox object at index selected.
 boolean getGBWalk(int selected)
          Returns the walk attribute of the GroupBox object at index selected.
 boolean getGBwalkingSce(int selected)
          Returns the walking scenario attribute of the GroupBox object at index selected.
 boolean getGBwindowshopSce(int selected)
          Returns the window shop scenario attribute of the GroupBox object at index selected.
 java.awt.Rectangle getGroupBox(int selected)
          Gets the rectangle object representing the box for SingleBox number selected
 boolean getIBActive(int selected)
          Returns the active attribute of the SingleBox object at index selected.
 boolean getIBAppear(int selected)
          Returns the appear attribute of the SingleBox object at index selected.
 int getIBAxis(int selected)
          Returns the SingleBox object at index selected axis attribute.
 boolean getIBBrowser(int selected)
          Returns the browser attribute of the SingleBox object at index selected.
 boolean getIBBrowsing(int selected)
          Returns the browsing attribute of the SingleBox object at index selected.
 boolean getIBBrowsingSit(int selected)
          Returns the browsing sit attribute of the SingleBox object at index selected.
 boolean getIBDisappear(int selected)
          Returns the disappear attribute of the SingleBox object at index selected.
 boolean getIBDropDown(int selected)
          Returns the drop down attribute of the SingleBox object at index selected.
 boolean getIBFighter(int selected)
          Returns the fighter attribute of the SingleBox object at index selected.
 boolean getIBImmobile(int selected)
          Returns the immobile attribute of the SingleBox object at index selected.
 boolean getIBInActive(int selected)
          Returns the inactive attribute of the SingleBox object at index selected.
 boolean getIBInactiveSit(int selected)
          Returns the inactive sit attribute of the SingleBox object at index selected.
 boolean getIBLeavingGroup(int selected)
          Returns the leaving group attribute of the SingleBox object at index selected.
 boolean getIBLeftBehind(int selected)
          Returns the left behind attribute of the SingleBox object at index selected.
 boolean getIBLeftObject(int selected)
          Returns the left object attribute of the SingleBox object at index selected.
 boolean getIBMovingSit(int selected)
          Returns the moving sit attribute of the SingleBox object at index selected.
 boolean getIBNoneMov(int selected)
           
 boolean getIBNoneRol(int selected)
           
 boolean getIBNoneSce(int selected)
           
 boolean getIBNoneSit(int selected)
           
 boolean getIBOccluded(int selected)
           
 boolean getIBPersonImmobile(int selected)
          Returns the person immobile attribute of the SingleBox object at index selected.
 boolean getIBRun(int selected)
          Returns the run attribute of the SingleBox object at index selected.
 boolean getIBshopenterSce(int selected)
          Returns the shop enter scenario attribute of the SingleBox object at index selected.
 boolean getIBshopenterSit(int selected)
          Returns the shop enter sit attribute of the SingleBox object at index selected.
 boolean getIBshopexitSce(int selected)
          Returns the shop exit scenario attribute of the SingleBox object at index selected.
 boolean getIBshopexitSit(int selected)
          Returns the shop exit sit attribute of the SingleBox object at index selected.
 boolean getIBshopreenterSce(int selected)
          Returns the shop reenter scenario attribute of the SingleBox object at index selected.
 boolean getIBWalk(int selected)
          Returns the walk attribute of the SingleBox object at index selected
 boolean getIBWalker(int selected)
          Returns the walker attribute of the SingleBox object at index selected.
 boolean getIBWalking(int selected)
          Returns the walking attribute of the SingleBox object at index selected.
 boolean getIBwindowshopSce(int selected)
          Returns the window shop scenario attribute of the SingleBox object at index selected.
 int getSelected()
          Method used so that CAVIARGUI can find out which box has been selected without needing the knowledge of which frame has been loaded.
 java.awt.Rectangle getSingleBox(int selected)
          Gets the rectangle object representing the box for SingleBox number selected
 SingleBox getSingleBoxSelected()
          Returns the current selected single box, if it has been draw
 void groupBoxUpdateDisplay(int index)
          Used to update display so that currently selected box is in red.
 boolean isASingleBoxSelected()
           
 boolean isEmptyGroBox(int selected)
          Checks if the GroupBox object at index selected is empty.
 boolean isEmptySingleBox(int selected)
          Checks if the SingleBox object at index selected is empty.
 void jumpToFrame(int frameNo)
          Jumps to the frame frameNo in the current sequence, an exception occrus if the frame does not exist.
 void Key1ActionPerformed(java.awt.event.ActionEvent evt)
           
 void Key2ActionPerformed(java.awt.event.ActionEvent evt)
           
 void Key3ActionPerformed(java.awt.event.ActionEvent evt)
           
 void Key4ActionPerformed(java.awt.event.ActionEvent evt)
           
 void Key5ActionPerformed(java.awt.event.ActionEvent evt)
           
 void Key6ActionPerformed(java.awt.event.ActionEvent evt)
           
 void Key7ActionPerformed(java.awt.event.ActionEvent evt)
           
 void Key8ActionPerformed(java.awt.event.ActionEvent evt)
           
 void Key9ActionPerformed(java.awt.event.ActionEvent evt)
           
 void KeyAActionPerformed(java.awt.event.ActionEvent evt, int inc)
           
 void KeyCActionPerformed(java.awt.event.ActionEvent evt)
           
 void KeyDActionPerformed(java.awt.event.ActionEvent evt)
           
 void KeyEActionPerformed(java.awt.event.ActionEvent evt)
           
 void KeySActionPerformed(java.awt.event.ActionEvent evt, int inc)
           
 boolean KeyXActionPerformed(java.awt.event.ActionEvent evt)
           
 int KeyZActionPerformed(java.awt.event.ActionEvent evt)
           
 boolean loadFile(java.lang.String fileName)
          Loads xml file fileName and resets all the datastructures to represent the data in this file.
 void loadFile(java.lang.String seqName, java.lang.String fileName)
           
 void loadInitialImage()
          Used by the constructor to set all variables to their default values.
 boolean loadNewSeq(java.lang.String tempSeqName, boolean hundredsFlag)
          Loads a new JPG sequence (seqName) stored in directory jpgs, and resets all of the data currently stored.
 void loadNext()
          Loads the next frame with the currently stored data which may be blank.
 void loadPrev()
          Loads the previous frame, will load the currently stored data unless none is stored already.
 void play()
          Simple method that contunually calls loadNext to give and illusion of there being playback of the video.
 void printFrame(int frame)
           
 void printFrames()
           
 void refreshScreen()
           
 void resetAll()
          Resets all the data in the current sequence.
 void resetFrame()
          Resets all the highlighted data in the current frame.
 boolean saveAsFile(java.lang.String xmlFileName)
          Saves the data already annotated to a new text file called fileName.
 void setBodyPartState(boolean occluded)
           
 void setBoxNames()
           
 void setDelta(int delta)
           
 boolean setGBActive(int selected)
          Toggles the active truth value of the GroupBox object at index selected, updates other parameters appropriately.
 boolean setGBAppear(int selected)
          Toggles the appear truth value of the GroupBox object at index selected, updates disappear appropriately.
 void setGBAxis(int selected, int update)
          Sets the GroupBox object at index selected axis attribute to update.
 boolean setGBbrowserRole(int selected)
          Toggles the browser role truth value of the GroupBox object at index selected, updates fight appropriately.
 boolean setGBbrowsingSit(int selected)
          Toggles the browsing sit truth value of the GroupBox object at index selected, updates fight appropriately.
 boolean setGBDisappear(int selected)
          Toggles the disappear truth value of the GroupBox object at index selected, updates appear appropriately.
 boolean setGBFight(int selected)
          Toggles the fight truth value of the GroupBox object at index selected, updates meet appropriately.
 boolean setGBFightEnd(int selected)
          Toggles the fight end truth value of the GroupBox object at index selected, updates fight appropriately.
 boolean setGBFighting(int selected)
          Toggles the fighting truth value of the GroupBox object at index selected, updates fight appropriately.
 boolean setGBFightStart(int selected)
          Toggles the fight start truth value of the GroupBox object at index selected, updates fight appropriately.
 boolean setGBFightVictimLeft(int selected)
          Toggles the victim left truth value of the GroupBox object at index selected, updates fight appropriately.
 boolean setGBGrFighting(int selected)
          Toggles the group fighting truth value of the GroupBox object at index selected, updates fight appropriately.
 boolean setGBGrInactive(int selected)
          Toggles the group inactive truth value of the GroupBox object at index selected, updates fight appropriately.
 boolean setGBGrInteracting(int selected)
          Toggles the group interacting truth value of the GroupBox object at index selected, updates fight appropriately.
 boolean setGBGrMeeting(int selected)
          Toggles the group meeting truth value of the GroupBox object at index selected, updates fight appropriately.
 boolean setGBGrMoving(int selected)
          Toggles the group moving truth value of the GroupBox object at index selected, updates fight appropriately.
 boolean setGBGrSplitting(int selected)
          Toggles the group splitting truth value of the GroupBox object at index selected, updates fight appropriately.
 void setGBIBoxes(int selected, java.lang.String[] inputString)
          Sets the currently selected GroupBox object to have the selected items represented by the string inputString.
 boolean setGBInActive(int selected)
          Toggles the inactive truth value of the GroupBox object at index selected, updates other parameters appropriately.
 boolean setGBLeaving(int selected)
          Toggles the leaving truth value of the GroupBox object at index selected, updates fight appropriately.
 boolean setGBLeftBehind(int selected)
          Toggles the left behind truth value of the GroupBox object at index selected.
 boolean setGBLeftObject(int selected)
          Toggles the left behind truth value of the GroupBox object at index selected.
 boolean setGBMeet(int selected)
          Toggles the meet truth value of the GroupBox object at index selected, updates fight appropriately.
 boolean setGBMeeting(int selected)
          Toggles the meeting truth value of the GroupBox object at index selected, updates fight appropriately.
 boolean setGBMove(int selected)
          Toggles the move truth value of the GroupBox object at index selected, updates other parameters appropriately.
 boolean setGBNoneMov(int selected)
           
 boolean setGBNoneRol(int selected)
           
 boolean setGBNoneSce(int selected)
           
 boolean setGBNoneSit(int selected)
           
 boolean setGBshopenterSce(int selected)
          Toggles the shop enter scenario truth value of the GroupBox object at index selected, updates fight appropriately.
 boolean setGBshopenterSit(int selected)
          Toggles the shop enter truth value of the GroupBox object at index selected, updates fight appropriately.
 boolean setGBshopexitSce(int selected)
          Toggles the shop exit scenario truth value of the GroupBox object at index selected, updates fight appropriately.
 boolean setGBshopexitSit(int selected)
          Toggles the shop exit situation truth value of the GroupBox object at index selected, updates fight appropriately.
 boolean setGBshopreenterSce(int selected)
          Toggles the shop reenter scenario truth value of the GroupBox object at index selected, updates fight appropriately.
 boolean setGBWalk(int selected)
          Toggles the walk truth value of the GroupBox object at index selected, updates fight appropriately.
 boolean setGBwalkingSce(int selected)
          Toggles the walking scenario truth value of the GroupBox object at index selected, updates fight appropriately.
 boolean setGBwindowshopSce(int selected)
          Toggles the window shop scenario truth value of the GroupBox object at index selected, updates fight appropriately.
 void setGroupSelected(int index)
          Method for selecting a group box from the control panel.
 boolean setIBActive(int selected)
          Toggles the active truth value of the SingleBox object at index selected, updates other parameters appropriately.
 boolean setIBAppear(int selected)
          Toggles the appear truth value of the SingleBox object at index selected, updates disappear and occluded appropriately.
 void setIBAxis(int selected, int update)
          Sets the SingleBox object at index selected axis attribute to update.
 boolean setIBBrowser(int selected)
          Toggles the browser truth value of the SingleBox object at index selected, updates other parameters appropriately.
 boolean setIBBrowsing(int selected)
          Toggles the browsing truth value of the SingleBox object at index selected, updates other parameters appropriately.
 boolean setIBBrowsingSit(int selected)
          Toggles the browsing sit truth value of the SingleBox object at index selected, updates other parameters appropriately.
 boolean setIBDisappear(int selected)
          Toggles the disappear truth value of the SingleBox object at index selected, updates appear and occluded appropriately.
 boolean setIBDropDown(int selected)
          Toggles the drop down truth value of the SingleBox object at index selected, updates other parameters appropriately.
 boolean setIBFighter(int selected)
          Toggles the fighter truth value of the SingleBox object at index selected, updates other parameters appropriately.
 boolean setIBImmobile(int selected)
          Toggles the immobile truth value of the SingleBox object at index selected, updates other parameters appropriately.
 boolean setIBInActive(int selected)
          Toggles the inactive truth value of the SingleBox object at index selected, updates other parameters appropriately.
 boolean setIBInactiveSit(int selected)
          Toggles the inactive sit truth value of the SingleBox object at index selected, updates other parameters appropriately.
 boolean setIBLeavingGroup(int selected)
          Toggles the leaving group truth value of the SingleBox object at index selected, updates other parameters appropriately.
 boolean setIBLeftBehind(int selected)
          Toggles the left behind truth value of the SingleBox object at index selected.
 boolean setIBLeftObject(int selected)
          Toggles the left object truth value of the SingleBox object at index selected, updates other parameters appropriately.
 boolean setIBMovingSit(int selected)
          Toggles the moving sit truth value of the SingleBox object at index selected, updates other parameters appropriately.
 boolean setIBNoneMov(int selected)
           
 boolean setIBNoneRol(int selected)
           
 boolean setIBNoneSce(int selected)
           
 boolean setIBNoneSit(int selected)
           
 boolean setIBOccluded(int selected)
          Toggles the occluded truth value of the SingleBox object at index selected, updates disappear and appear appropriately.
 boolean setIBPersonImmobile(int selected)
          Toggles the person immobile truth value of the SingleBox object at index selected, updates other parameters appropriately.
 boolean setIBRun(int selected)
          Toggles the run truth value of the SingleBox object at index selected, updates other parameters appropriately.
 boolean setIBshopenterSce(int selected)
          Toggles the shop enter scenario truth value of the SingleBox object at index selected, updates other parameters appropriately.
 boolean setIBshopenterSit(int selected)
          Toggles the shop enter sit truth value of the SingleBox object at index selected, updates other parameters appropriately.
 boolean setIBshopexitSce(int selected)
          Toggles the shop exit scenario truth value of the SingleBox object at index selected, updates other parameters appropriately.
 boolean setIBshopexitSit(int selected)
          Toggles the shop exit sit truth value of the SingleBox object at index selected, updates other parameters appropriately.
 boolean setIBshopreenterSce(int selected)
          Toggles the shop reenter scenario truth value of the SingleBox object at index selected, updates other parameters appropriately.
 boolean setIBWalk(int selected)
          Toggles the walk truth value of the SingleBox object at index selected, updates other parameters appropriately.
 boolean setIBWalker(int selected)
          Toggles the walker truth value of the SingleBox object at index selected, updates other parameters appropriately.
 boolean setIBWalking(int selected)
          Toggles the walking truth value of the SingleBox object at index selected, updates other parameters appropriately.
 boolean setIBwindowshopSce(int selected)
          Toggles the window shop scenario truth value of the SingleBox object at index selected, updates other parameters appropriately.
 void setPerformCheck()
           
 void setProperty(boolean ind, java.lang.String Property, java.lang.String Value, int id, int from, int to)
           
 void setShowAllBodyBoxes()
           
 void setShowAllBodyTags()
           
 void setShowCurrentSelectionTags()
           
 void setSingleSelected(int index)
          Method for selecting a single box from the control panel.
 boolean singleBoxinGroupBox(int selected)
           
 void singleBoxUpdateDisplay(int index)
          Used to update display so that currently selected box is in red.
 void switchBodyPart(int i, SingleBox single)
           
 void updateBodyPartSelected(int BodyPart, SingleBox singlebox)
           
 
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, 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, 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
 

Field Detail

allData

protected AllData allData
Used to store modifications so far without writing them to disk.


id

protected int id
current id of the frame being edited.


previd

protected int previd
current id of the frame being edited.


prevselected

protected int prevselected
current id of the frame being edited.


max

protected int max
Flag to indicate the current maximum frame that has been edited.


hundreds

protected boolean hundreds
flag for whether the number of images is in the hundreds or thousands, for use by load and save file operations.


BODY_SEL_BOX

public static final int BODY_SEL_BOX
See Also:
Constant Field Values

BODY_SEL_HEAD

public static final int BODY_SEL_HEAD
See Also:
Constant Field Values

BODY_SEL_GAZE

public static final int BODY_SEL_GAZE
See Also:
Constant Field Values

BODY_SEL_RIGHT_SHOULDER

public static final int BODY_SEL_RIGHT_SHOULDER
See Also:
Constant Field Values

BODY_SEL_LEFT_SHOULDER

public static final int BODY_SEL_LEFT_SHOULDER
See Also:
Constant Field Values

BODY_SEL_RIGHT_HAND

public static final int BODY_SEL_RIGHT_HAND
See Also:
Constant Field Values

BODY_SEL_LEFT_HAND

public static final int BODY_SEL_LEFT_HAND
See Also:
Constant Field Values

BODY_SEL_RIGHT_FOOT

public static final int BODY_SEL_RIGHT_FOOT
See Also:
Constant Field Values

BODY_SEL_LEFT_FOOT

public static final int BODY_SEL_LEFT_FOOT
See Also:
Constant Field Values
Constructor Detail

ImagePanel

public ImagePanel(java.lang.String seq,
                  CAVIARGUI caviargui)
Calls public method loadInitialImage to create the new ImagePanel object.


ImagePanel

public ImagePanel(CAVIARGUI caviargui)
Calls public method loadInitialImage to create the new ImagePanel object.

Method Detail

getbodyPartSelected

public int getbodyPartSelected()

setDelta

public void setDelta(int delta)

getbodyPartSelectedState

public boolean getbodyPartSelectedState()

bodyPartSelectedisDraw

public boolean bodyPartSelectedisDraw()

setBodyPartState

public void setBodyPartState(boolean occluded)

refreshScreen

public void refreshScreen()

updateBodyPartSelected

public void updateBodyPartSelected(int BodyPart,
                                   SingleBox singlebox)

bodySingleBoxisEmpty

public boolean bodySingleBoxisEmpty()

loadInitialImage

public void loadInitialImage()
Used by the constructor to set all variables to their default values.


Key1ActionPerformed

public void Key1ActionPerformed(java.awt.event.ActionEvent evt)

switchBodyPart

public void switchBodyPart(int i,
                           SingleBox single)

Key2ActionPerformed

public void Key2ActionPerformed(java.awt.event.ActionEvent evt)

Key3ActionPerformed

public void Key3ActionPerformed(java.awt.event.ActionEvent evt)

Key4ActionPerformed

public void Key4ActionPerformed(java.awt.event.ActionEvent evt)

Key5ActionPerformed

public void Key5ActionPerformed(java.awt.event.ActionEvent evt)

Key6ActionPerformed

public void Key6ActionPerformed(java.awt.event.ActionEvent evt)

Key7ActionPerformed

public void Key7ActionPerformed(java.awt.event.ActionEvent evt)

Key8ActionPerformed

public void Key8ActionPerformed(java.awt.event.ActionEvent evt)

Key9ActionPerformed

public void Key9ActionPerformed(java.awt.event.ActionEvent evt)

KeyDActionPerformed

public void KeyDActionPerformed(java.awt.event.ActionEvent evt)

KeyEActionPerformed

public void KeyEActionPerformed(java.awt.event.ActionEvent evt)

KeyZActionPerformed

public int KeyZActionPerformed(java.awt.event.ActionEvent evt)

KeyAActionPerformed

public void KeyAActionPerformed(java.awt.event.ActionEvent evt,
                                int inc)

KeySActionPerformed

public void KeySActionPerformed(java.awt.event.ActionEvent evt,
                                int inc)

KeyXActionPerformed

public boolean KeyXActionPerformed(java.awt.event.ActionEvent evt)

KeyCActionPerformed

public void KeyCActionPerformed(java.awt.event.ActionEvent evt)

setShowCurrentSelectionTags

public void setShowCurrentSelectionTags()

setShowAllBodyBoxes

public void setShowAllBodyBoxes()

setShowAllBodyTags

public void setShowAllBodyTags()

setBoxNames

public void setBoxNames()

getSelected

public int getSelected()
Method used so that CAVIARGUI can find out which box has been selected without needing the knowledge of which frame has been loaded.


singleBoxUpdateDisplay

public void singleBoxUpdateDisplay(int index)
Used to update display so that currently selected box is in red.


groupBoxUpdateDisplay

public void groupBoxUpdateDisplay(int index)
Used to update display so that currently selected box is in red.


deleteIndBox

public void deleteIndBox(int selected)
Deletes the SingleBox object at index selected .


getSingleBox

public java.awt.Rectangle getSingleBox(int selected)
Gets the rectangle object representing the box for SingleBox number selected


setIBAxis

public void setIBAxis(int selected,
                      int update)
Sets the SingleBox object at index selected axis attribute to update.


getIBAxis

public int getIBAxis(int selected)
Returns the SingleBox object at index selected axis attribute.


setIBAppear

public boolean setIBAppear(int selected)
Toggles the appear truth value of the SingleBox object at index selected, updates disappear and occluded appropriately.


getIBAppear

public boolean getIBAppear(int selected)
Returns the appear attribute of the SingleBox object at index selected.


setIBDisappear

public boolean setIBDisappear(int selected)
Toggles the disappear truth value of the SingleBox object at index selected, updates appear and occluded appropriately.


getIBDisappear

public boolean getIBDisappear(int selected)
Returns the disappear attribute of the SingleBox object at index selected.


setIBOccluded

public boolean setIBOccluded(int selected)
Toggles the occluded truth value of the SingleBox object at index selected, updates disappear and appear appropriately.


getIBOccluded

public boolean getIBOccluded(int selected)

setIBWalk

public boolean setIBWalk(int selected)
Toggles the walk truth value of the SingleBox object at index selected, updates other parameters appropriately.


getIBWalk

public boolean getIBWalk(int selected)
Returns the walk attribute of the SingleBox object at index selected


setIBRun

public boolean setIBRun(int selected)
Toggles the run truth value of the SingleBox object at index selected, updates other parameters appropriately.


getIBRun

public boolean getIBRun(int selected)
Returns the run attribute of the SingleBox object at index selected.


setIBActive

public boolean setIBActive(int selected)
Toggles the active truth value of the SingleBox object at index selected, updates other parameters appropriately.


getIBActive

public boolean getIBActive(int selected)
Returns the active attribute of the SingleBox object at index selected.


setIBInActive

public boolean setIBInActive(int selected)
Toggles the inactive truth value of the SingleBox object at index selected, updates other parameters appropriately.


getIBInActive

public boolean getIBInActive(int selected)
Returns the inactive attribute of the SingleBox object at index selected.


setIBFighter

public boolean setIBFighter(int selected)
Toggles the fighter truth value of the SingleBox object at index selected, updates other parameters appropriately.


getIBFighter

public boolean getIBFighter(int selected)
Returns the fighter attribute of the SingleBox object at index selected.


setIBBrowser

public boolean setIBBrowser(int selected)
Toggles the browser truth value of the SingleBox object at index selected, updates other parameters appropriately.


getIBBrowser

public boolean getIBBrowser(int selected)
Returns the browser attribute of the SingleBox object at index selected.


setIBLeftBehind

public boolean setIBLeftBehind(int selected)
Toggles the left behind truth value of the SingleBox object at index selected.


getIBLeftBehind

public boolean getIBLeftBehind(int selected)
Returns the left behind attribute of the SingleBox object at index selected.


setIBLeavingGroup

public boolean setIBLeavingGroup(int selected)
Toggles the leaving group truth value of the SingleBox object at index selected, updates other parameters appropriately.


getIBLeavingGroup

public boolean getIBLeavingGroup(int selected)
Returns the leaving group attribute of the SingleBox object at index selected.


setIBWalker

public boolean setIBWalker(int selected)
Toggles the walker truth value of the SingleBox object at index selected, updates other parameters appropriately.


getIBWalker

public boolean getIBWalker(int selected)
Returns the walker attribute of the SingleBox object at index selected.


getIBLeftObject

public boolean getIBLeftObject(int selected)
Returns the left object attribute of the SingleBox object at index selected.


setIBLeftObject

public boolean setIBLeftObject(int selected)
Toggles the left object truth value of the SingleBox object at index selected, updates other parameters appropriately.


setIBMovingSit

public boolean setIBMovingSit(int selected)
Toggles the moving sit truth value of the SingleBox object at index selected, updates other parameters appropriately.


getIBMovingSit

public boolean getIBMovingSit(int selected)
Returns the moving sit attribute of the SingleBox object at index selected.


setIBshopenterSit

public boolean setIBshopenterSit(int selected)
Toggles the shop enter sit truth value of the SingleBox object at index selected, updates other parameters appropriately.


getIBshopenterSit

public boolean getIBshopenterSit(int selected)
Returns the shop enter sit attribute of the SingleBox object at index selected.


setIBshopexitSit

public boolean setIBshopexitSit(int selected)
Toggles the shop exit sit truth value of the SingleBox object at index selected, updates other parameters appropriately.


getIBshopexitSit

public boolean getIBshopexitSit(int selected)
Returns the shop exit sit attribute of the SingleBox object at index selected.


setIBwindowshopSce

public boolean setIBwindowshopSce(int selected)
Toggles the window shop scenario truth value of the SingleBox object at index selected, updates other parameters appropriately.


getIBwindowshopSce

public boolean getIBwindowshopSce(int selected)
Returns the window shop scenario attribute of the SingleBox object at index selected.


setIBshopenterSce

public boolean setIBshopenterSce(int selected)
Toggles the shop enter scenario truth value of the SingleBox object at index selected, updates other parameters appropriately.


getIBshopenterSce

public boolean getIBshopenterSce(int selected)
Returns the shop enter scenario attribute of the SingleBox object at index selected.


setIBshopexitSce

public boolean setIBshopexitSce(int selected)
Toggles the shop exit scenario truth value of the SingleBox object at index selected, updates other parameters appropriately.


getIBshopexitSce

public boolean getIBshopexitSce(int selected)
Returns the shop exit scenario attribute of the SingleBox object at index selected.


setIBshopreenterSce

public boolean setIBshopreenterSce(int selected)
Toggles the shop reenter scenario truth value of the SingleBox object at index selected, updates other parameters appropriately.


getIBshopreenterSce

public boolean getIBshopreenterSce(int selected)
Returns the shop reenter scenario attribute of the SingleBox object at index selected.


setIBInactiveSit

public boolean setIBInactiveSit(int selected)
Toggles the inactive sit truth value of the SingleBox object at index selected, updates other parameters appropriately.


getIBInactiveSit

public boolean getIBInactiveSit(int selected)
Returns the inactive sit attribute of the SingleBox object at index selected.


setIBBrowsingSit

public boolean setIBBrowsingSit(int selected)
Toggles the browsing sit truth value of the SingleBox object at index selected, updates other parameters appropriately.


getIBBrowsingSit

public boolean getIBBrowsingSit(int selected)
Returns the browsing sit attribute of the SingleBox object at index selected.


setIBBrowsing

public boolean setIBBrowsing(int selected)
Toggles the browsing truth value of the SingleBox object at index selected, updates other parameters appropriately.


getIBBrowsing

public boolean getIBBrowsing(int selected)
Returns the browsing attribute of the SingleBox object at index selected.


setIBImmobile

public boolean setIBImmobile(int selected)
Toggles the immobile truth value of the SingleBox object at index selected, updates other parameters appropriately.


getIBImmobile

public boolean getIBImmobile(int selected)
Returns the immobile attribute of the SingleBox object at index selected.


setIBWalking

public boolean setIBWalking(int selected)
Toggles the walking truth value of the SingleBox object at index selected, updates other parameters appropriately.


getIBWalking

public boolean getIBWalking(int selected)
Returns the walking attribute of the SingleBox object at index selected.


setIBDropDown

public boolean setIBDropDown(int selected)
Toggles the drop down truth value of the SingleBox object at index selected, updates other parameters appropriately.


getIBDropDown

public boolean getIBDropDown(int selected)
Returns the drop down attribute of the SingleBox object at index selected.


setIBPersonImmobile

public boolean setIBPersonImmobile(int selected)
Toggles the person immobile truth value of the SingleBox object at index selected, updates other parameters appropriately.


getIBPersonImmobile

public boolean getIBPersonImmobile(int selected)
Returns the person immobile attribute of the SingleBox object at index selected.


setIBNoneMov

public boolean setIBNoneMov(int selected)

getIBNoneMov

public boolean getIBNoneMov(int selected)

setIBNoneRol

public boolean setIBNoneRol(int selected)

getIBNoneRol

public boolean getIBNoneRol(int selected)

setIBNoneSce

public boolean setIBNoneSce(int selected)

getIBNoneSce

public boolean getIBNoneSce(int selected)

setIBNoneSit

public boolean setIBNoneSit(int selected)

getIBNoneSit

public boolean getIBNoneSit(int selected)

setGBNoneMov

public boolean setGBNoneMov(int selected)

getGBNoneMov

public boolean getGBNoneMov(int selected)

setGBNoneRol

public boolean setGBNoneRol(int selected)

getGBNoneRol

public boolean getGBNoneRol(int selected)

setGBNoneSce

public boolean setGBNoneSce(int selected)

getGBNoneSce

public boolean getGBNoneSce(int selected)

setGBNoneSit

public boolean setGBNoneSit(int selected)

getGBNoneSit

public boolean getGBNoneSit(int selected)

setGroupSelected

public void setGroupSelected(int index)
Method for selecting a group box from the control panel.


setSingleSelected

public void setSingleSelected(int index)
Method for selecting a single box from the control panel.


deleteGroBox

public void deleteGroBox(int selected)
Deletes the GroupBox object at index selected.


isEmptyGroBox

public boolean isEmptyGroBox(int selected)
Checks if the GroupBox object at index selected is empty.


isEmptySingleBox

public boolean isEmptySingleBox(int selected)
Checks if the SingleBox object at index selected is empty.


singleBoxinGroupBox

public boolean singleBoxinGroupBox(int selected)

getGroupBox

public java.awt.Rectangle getGroupBox(int selected)
Gets the rectangle object representing the box for SingleBox number selected


setGBAxis

public void setGBAxis(int selected,
                      int update)
Sets the GroupBox object at index selected axis attribute to update.


getGBAxis

public int getGBAxis(int selected)
Returns the GroupBox object at index selected axis attribute.


setGBIBoxes

public void setGBIBoxes(int selected,
                        java.lang.String[] inputString)
Sets the currently selected GroupBox object to have the selected items represented by the string inputString. inputString checked for errors in CAVIARGUI.java


getGBIBoxes

public boolean[] getGBIBoxes(int selected)
Gets the boolean array representing the individual boxes contained within the GroupBox object


setGBAppear

public boolean setGBAppear(int selected)
Toggles the appear truth value of the GroupBox object at index selected, updates disappear appropriately.


getGBAppear

public boolean getGBAppear(int selected)
Returns the appear attribute of the GroupBox object at index selected.


setGBDisappear

public boolean setGBDisappear(int selected)
Toggles the disappear truth value of the GroupBox object at index selected, updates appear appropriately.


getGBDisappear

public boolean getGBDisappear(int selected)
Returns the disappear attribute of the GroupBox object at index selected.


setGBActive

public boolean setGBActive(int selected)
Toggles the active truth value of the GroupBox object at index selected, updates other parameters appropriately.


getGBActive

public boolean getGBActive(int selected)
Returns the active attribute of the GroupBox object at index selected.


setGBInActive

public boolean setGBInActive(int selected)
Toggles the inactive truth value of the GroupBox object at index selected, updates other parameters appropriately.


getGBInActive

public boolean getGBInActive(int selected)
Returns the inactive attribute of the GroupBox object at index selected.


setGBMove

public boolean setGBMove(int selected)
Toggles the move truth value of the GroupBox object at index selected, updates other parameters appropriately.


getGBMove

public boolean getGBMove(int selected)
Returns the move attribute of the GroupBox object at index selected.


setGBFight

public boolean setGBFight(int selected)
Toggles the fight truth value of the GroupBox object at index selected, updates meet appropriately.


getGBFight

public boolean getGBFight(int selected)
Returns the fight attribute of the GroupBox object at index selected.


setGBMeet

public boolean setGBMeet(int selected)
Toggles the meet truth value of the GroupBox object at index selected, updates fight appropriately.


getGBMeet

public boolean getGBMeet(int selected)
Returns the meet attribute of the GroupBox object at index selected.


setGBWalk

public boolean setGBWalk(int selected)
Toggles the walk truth value of the GroupBox object at index selected, updates fight appropriately.


getGBWalk

public boolean getGBWalk(int selected)
Returns the walk attribute of the GroupBox object at index selected.


setGBshopenterSit

public boolean setGBshopenterSit(int selected)
Toggles the shop enter truth value of the GroupBox object at index selected, updates fight appropriately.


getGBshopenterSit

public boolean getGBshopenterSit(int selected)
Returns the shop enter attribute of the GroupBox object at index selected.


setGBshopexitSit

public boolean setGBshopexitSit(int selected)
Toggles the shop exit situation truth value of the GroupBox object at index selected, updates fight appropriately.


getGBshopexitSit

public boolean getGBshopexitSit(int selected)
Returns the shop exit situation attribute of the GroupBox object at index selected.


setGBwindowshopSce

public boolean setGBwindowshopSce(int selected)
Toggles the window shop scenario truth value of the GroupBox object at index selected, updates fight appropriately.


getGBwindowshopSce

public boolean getGBwindowshopSce(int selected)
Returns the window shop scenario attribute of the GroupBox object at index selected.


setGBshopenterSce

public boolean setGBshopenterSce(int selected)
Toggles the shop enter scenario truth value of the GroupBox object at index selected, updates fight appropriately.


getGBshopenterSce

public boolean getGBshopenterSce(int selected)
Returns the shop enter scenario attribute of the GroupBox object at index selected.


setGBshopexitSce

public boolean setGBshopexitSce(int selected)
Toggles the shop exit scenario truth value of the GroupBox object at index selected, updates fight appropriately.


getGBshopexitSce

public boolean getGBshopexitSce(int selected)
Returns the shop exit scenario attribute of the GroupBox object at index selected.


setGBshopreenterSce

public boolean setGBshopreenterSce(int selected)
Toggles the shop reenter scenario truth value of the GroupBox object at index selected, updates fight appropriately.


getGBshopreenterSce

public boolean getGBshopreenterSce(int selected)
Returns the shop reenter scenario attribute of the GroupBox object at index selected.


setGBbrowserRole

public boolean setGBbrowserRole(int selected)
Toggles the browser role truth value of the GroupBox object at index selected, updates fight appropriately.


getGBbrowserRole

public boolean getGBbrowserRole(int selected)
Returns the browser role attribute of the GroupBox object at index selected.


setGBwalkingSce

public boolean setGBwalkingSce(int selected)
Toggles the walking scenario truth value of the GroupBox object at index selected, updates fight appropriately.


getGBwalkingSce

public boolean getGBwalkingSce(int selected)
Returns the walking scenario attribute of the GroupBox object at index selected.


setGBGrFighting

public boolean setGBGrFighting(int selected)
Toggles the group fighting truth value of the GroupBox object at index selected, updates fight appropriately.


getGBGrFighting

public boolean getGBGrFighting(int selected)
Returns the group fighting attribute of the GroupBox object at index selected.


setGBGrMoving

public boolean setGBGrMoving(int selected)
Toggles the group moving truth value of the GroupBox object at index selected, updates fight appropriately.


getGBGrMoving

public boolean getGBGrMoving(int selected)
Returns the group moving attribute of the GroupBox object at index selected.


setGBGrMeeting

public boolean setGBGrMeeting(int selected)
Toggles the group meeting truth value of the GroupBox object at index selected, updates fight appropriately.


getGBGrMeeting

public boolean getGBGrMeeting(int selected)
Returns the group meeting attribute of the GroupBox object at index selected.


setGBGrInteracting

public boolean setGBGrInteracting(int selected)
Toggles the group interacting truth value of the GroupBox object at index selected, updates fight appropriately.


getGBGrInteracting

public boolean getGBGrInteracting(int selected)
Returns the group interacting attribute of the GroupBox object at index selected.


setGBGrSplitting

public boolean setGBGrSplitting(int selected)
Toggles the group splitting truth value of the GroupBox object at index selected, updates fight appropriately.


getGBGrSplitting

public boolean getGBGrSplitting(int selected)
Returns the group splitting attribute of the GroupBox object at index selected.


setGBGrInactive

public boolean setGBGrInactive(int selected)
Toggles the group inactive truth value of the GroupBox object at index selected, updates fight appropriately.


getGBGrInactive

public boolean getGBGrInactive(int selected)
Returns the group inactive attribute of the GroupBox object at index selected.


setGBLeftBehind

public boolean setGBLeftBehind(int selected)
Toggles the left behind truth value of the GroupBox object at index selected.


getGBLeftBehind

public boolean getGBLeftBehind(int selected)
Returns the left behind attribute of the GroupBox object at index selected.


setGBLeftObject

public boolean setGBLeftObject(int selected)
Toggles the left behind truth value of the GroupBox object at index selected.


getGBLeftObject

public boolean getGBLeftObject(int selected)
Returns the left behind attribute of the GroupBox object at index selected.


setGBFighting

public boolean setGBFighting(int selected)
Toggles the fighting truth value of the GroupBox object at index selected, updates fight appropriately.


getGBFighting

public boolean getGBFighting(int selected)
Returns the fighting attribute of the GroupBox object at index selected.


setGBMeeting

public boolean setGBMeeting(int selected)
Toggles the meeting truth value of the GroupBox object at index selected, updates fight appropriately.


getGBMeeting

public boolean getGBMeeting(int selected)
Returns the meeting attribute of the GroupBox object at index selected.


setGBLeaving

public boolean setGBLeaving(int selected)
Toggles the leaving truth value of the GroupBox object at index selected, updates fight appropriately.


getGBLeaving

public boolean getGBLeaving(int selected)
Returns the leaving attribute of the GroupBox object at index selected.


setGBFightStart

public boolean setGBFightStart(int selected)
Toggles the fight start truth value of the GroupBox object at index selected, updates fight appropriately.


getGBFightStart

public boolean getGBFightStart(int selected)
Returns the fight start attribute of the GroupBox object at index selected.


setGBFightEnd

public boolean setGBFightEnd(int selected)
Toggles the fight end truth value of the GroupBox object at index selected, updates fight appropriately.


getGBFightEnd

public boolean getGBFightEnd(int selected)
Returns the fight end attribute of the GroupBox object at index selected.


setGBFightVictimLeft

public boolean setGBFightVictimLeft(int selected)
Toggles the victim left truth value of the GroupBox object at index selected, updates fight appropriately.


getGBFightVictimLeft

public boolean getGBFightVictimLeft(int selected)
Returns the victim left attribute of the GroupBox object at index selected.


setGBbrowsingSit

public boolean setGBbrowsingSit(int selected)
Toggles the browsing sit truth value of the GroupBox object at index selected, updates fight appropriately.


getGBbrowsingSit

public boolean getGBbrowsingSit(int selected)
Returns the browsing sit attribute of the GroupBox object at index selected.


checkGroupBoxes

public boolean checkGroupBoxes()
Method to check to see whether the group boxes are still valid, called before saving and moving between frames so that an invalid, ie some singe boxes not contained within the group box, never happens


play

public void play()
Simple method that contunually calls loadNext to give and illusion of there being playback of the video.


loadNewSeq

public boolean loadNewSeq(java.lang.String tempSeqName,
                          boolean hundredsFlag)
Loads a new JPG sequence (seqName) stored in directory jpgs, and resets all of the data currently stored.


loadFile

public void loadFile(java.lang.String seqName,
                     java.lang.String fileName)

loadFile

public boolean loadFile(java.lang.String fileName)
Loads xml file fileName and resets all the datastructures to represent the data in this file.


saveAsFile

public boolean saveAsFile(java.lang.String xmlFileName)
Saves the data already annotated to a new text file called fileName.


setPerformCheck

public void setPerformCheck()

copyToPrev

public void copyToPrev()
Loads the previous frame, copying all the data stored in the current frame to the previous one.


loadPrev

public void loadPrev()
Loads the previous frame, will load the currently stored data unless none is stored already.


copyToNext

public void copyToNext()
Copys the data from the current frame into the next frame and loads the next frame.


loadNext

public void loadNext()
Loads the next frame with the currently stored data which may be blank.


copyBoxNext

public void copyBoxNext()
Copies the currently selected box into the next data structure


copyBodyNext

public void copyBodyNext()

copyTruthsNext

public void copyTruthsNext()
Copies the currently selected box's attributes into the next data structure


jumpToFrame

public void jumpToFrame(int frameNo)
Jumps to the frame frameNo in the current sequence, an exception occrus if the frame does not exist.


resetFrame

public void resetFrame()
Resets all the highlighted data in the current frame.


resetAll

public void resetAll()
Resets all the data in the current sequence.


drawRect

public void drawRect()
Redraws the rectangle, called when some changed has been made to the datastructure.


getBoxforCurrentSelection

public java.awt.Rectangle getBoxforCurrentSelection()

isASingleBoxSelected

public boolean isASingleBoxSelected()

getSingleBoxSelected

public SingleBox getSingleBoxSelected()
Returns the current selected single box, if it has been draw

Returns:

FitCircleInBox

public Circle FitCircleInBox(Circle circle,
                             java.awt.Rectangle box)

drawBody

public void drawBody(boolean dragMouse)

atan2

public static double atan2(double y,
                           double x)

drawCircle

public Circle drawCircle()

drawLine

public java.awt.geom.Line2D.Float drawLine()

printFrame

public void printFrame(int frame)

printFrames

public void printFrames()

setProperty

public void setProperty(boolean ind,
                        java.lang.String Property,
                        java.lang.String Value,
                        int id,
                        int from,
                        int to)