Class CAVIARGUI

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by CAVIARGUI
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class CAVIARGUI
extends javax.swing.JFrame

Class used to represent the GUI for the CAVIAR image markup program.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
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 static int BODY_BOX
          Positions for JComboBox for body parts
protected static int BODY_GAZE
          Positions for JComboBox for body parts
protected static int BODY_HEAD
          Positions for JComboBox for body parts
protected static int BODY_L_FOOT
          Positions for JComboBox for body parts
protected static int BODY_L_HAND
          Positions for JComboBox for body parts
protected static int BODY_L_SHOULDER
          Positions for JComboBox for body parts
protected static int BODY_R_FOOT
          Positions for JComboBox for body parts
protected static int BODY_R_HAND
          Positions for JComboBox for body parts
protected static int BODY_R_SHOULDER
          Positions for JComboBox for body parts
protected static int GB_ACTIVE
          Positions in the JComboBoxes used for the Individual Box Movement infomation
protected static int GB_INACTIVE
          Positions in the JComboBoxes used for the Individual Box Movement infomation
protected static int GB_MOVE
          Positions in the JComboBoxes used for the Individual Box Movement infomation
protected static int GBBROWSERS
          Positions in the JComboBoxes used for the Individual Box Movement infomation
protected static int GBBROWSING_SIT
           
protected static int GBFIGHTERS
          Positions in the JComboBoxes used for the Individual Box Movement infomation
protected static int GBFIGHTING_SCE
           
protected static int GBFIGHTING_SIT
           
protected static int GBINACTIVE_SIT
           
protected static int GBINTERACT_SIT
           
protected static int GBLEAVING_SCE
           
protected static int GBLEAVING_SIT
           
protected static int GBLEAVINGOBJ_SIT
           
protected static int GBMEETERS
          Positions in the JComboBoxes used for the Individual Box Movement infomation
protected static int GBMEETING_SCE
           
protected static int GBMEETING_SIT
           
protected static int GBMOVING_SIT
           
protected static int GBNONE_MOV
          Positions in the JComboBoxes used for the Individual Box Movement infomation
protected static int GBNONE_ROL
          Positions in the JComboBoxes used for the Individual Box Movement infomation
protected static int GBNONE_SCE
           
protected static int GBNONE_SIT
           
protected static int GBSHOPENTER_SCE
           
protected static int GBSHOPENTER_SIT
           
protected static int GBSHOPEXIT_SCE
           
protected static int GBSHOPEXIT_SIT
           
protected static int GBSHOPREENTER_SCE
           
protected static int GBSPLITTING_SIT
           
protected static int GBWALKERS
          Positions in the JComboBoxes used for the Individual Box Movement infomation
protected static int GBWALKING_SCE
           
protected static int GBWINDOWSHOP_SCE
           
protected static int HEIGHT
          Image height and width, change these if no longer using half PAL size
protected static int IB_ACTIVE
          Positions in the JComboBoxes used for the Individual Box Movement infomation
protected static int IB_INACTIVE
          Positions in the JComboBoxes used for the Individual Box Movement infomation
protected static int IB_RUN
          Positions in the JComboBoxes used for the Individual Box Movement infomation
protected static int IB_WALK
          Positions in the JComboBoxes used for the Individual Box Movement infomation
protected static int IR_BROWSER
          Positions in the JComboBoxes used for the Individual Box Movement infomation
protected static int IR_FIGHTER
          Positions in the JComboBoxes used for the Individual Box Movement infomation
protected static int IR_LEFT_OBJECT
          Positions in the JComboBoxes used for the Individual Box Movement infomation
protected static int IR_LEFT_VICTIM
          Positions in the JComboBoxes used for the Individual Box Movement infomation
protected static int IR_WALKER
          Positions in the JComboBoxes used for the Individual Box Movement infomation
protected static int NONE_MOV
          Positions in the JComboBoxes used for the Individual Box Movement infomation
protected static int NONE_ROL
          Positions in the JComboBoxes used for the Individual Box Movement infomation
protected static int NONE_SCE
           
protected static int NONE_SIT
           
protected static int SCALE
          Image height and width, change these if no longer using half PAL size
protected static int SCE_BROWSING
           
protected static int SCE_DROP_DOWN
           
protected static int SCE_INMOBILE
           
protected static int SCE_SHOP_ENTER
           
protected static int SCE_SHOP_EXIT
           
protected static int SCE_SHOP_REENTER
           
protected static int SCE_WALKING
           
protected static int SCE_WINDOW_SHOP
           
protected static int SIT_BROWSING
           
protected static int SIT_INACTIVE
           
protected static int SIT_MOVING
           
protected static int SIT_SHOP_ENTER
           
protected static int SIT_SHOP_EXIT
           
protected static int WIDTH
          Image height and width, change these if no longer using half PAL size
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, PROPERTIES, SOMEBITS
 
Constructor Summary
CAVIARGUI()
          Creates new form CAVIARGUI.
 
Method Summary
static void main(java.lang.String[] args)
          Main method that starts the CAVIARGUI program.
 void resetIBDisplay()
          Used to update the iBPanel to reflect changes made to the data structure.
 boolean singleBoxExistinGroupBox(int single)
           
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

WIDTH

protected static final int WIDTH
Image height and width, change these if no longer using half PAL size

See Also:
Constant Field Values

HEIGHT

protected static final int HEIGHT
Image height and width, change these if no longer using half PAL size

See Also:
Constant Field Values

SCALE

protected static final int SCALE
Image height and width, change these if no longer using half PAL size

See Also:
Constant Field Values

NONE_MOV

protected static final int NONE_MOV
Positions in the JComboBoxes used for the Individual Box Movement infomation

See Also:
Constant Field Values

IB_INACTIVE

protected static final int IB_INACTIVE
Positions in the JComboBoxes used for the Individual Box Movement infomation

See Also:
Constant Field Values

IB_ACTIVE

protected static final int IB_ACTIVE
Positions in the JComboBoxes used for the Individual Box Movement infomation

See Also:
Constant Field Values

IB_WALK

protected static final int IB_WALK
Positions in the JComboBoxes used for the Individual Box Movement infomation

See Also:
Constant Field Values

IB_RUN

protected static final int IB_RUN
Positions in the JComboBoxes used for the Individual Box Movement infomation

See Also:
Constant Field Values

GBNONE_MOV

protected static final int GBNONE_MOV
Positions in the JComboBoxes used for the Individual Box Movement infomation

See Also:
Constant Field Values

GB_INACTIVE

protected static final int GB_INACTIVE
Positions in the JComboBoxes used for the Individual Box Movement infomation

See Also:
Constant Field Values

GB_ACTIVE

protected static final int GB_ACTIVE
Positions in the JComboBoxes used for the Individual Box Movement infomation

See Also:
Constant Field Values

GB_MOVE

protected static final int GB_MOVE
Positions in the JComboBoxes used for the Individual Box Movement infomation

See Also:
Constant Field Values

NONE_ROL

protected static final int NONE_ROL
Positions in the JComboBoxes used for the Individual Box Movement infomation

See Also:
Constant Field Values

IR_BROWSER

protected static final int IR_BROWSER
Positions in the JComboBoxes used for the Individual Box Movement infomation

See Also:
Constant Field Values

IR_WALKER

protected static final int IR_WALKER
Positions in the JComboBoxes used for the Individual Box Movement infomation

See Also:
Constant Field Values

IR_FIGHTER

protected static final int IR_FIGHTER
Positions in the JComboBoxes used for the Individual Box Movement infomation

See Also:
Constant Field Values

IR_LEFT_VICTIM

protected static final int IR_LEFT_VICTIM
Positions in the JComboBoxes used for the Individual Box Movement infomation

See Also:
Constant Field Values

IR_LEFT_OBJECT

protected static final int IR_LEFT_OBJECT
Positions in the JComboBoxes used for the Individual Box Movement infomation

See Also:
Constant Field Values

NONE_SIT

protected static final int NONE_SIT
See Also:
Constant Field Values

SIT_MOVING

protected static final int SIT_MOVING
See Also:
Constant Field Values

SIT_INACTIVE

protected static final int SIT_INACTIVE
See Also:
Constant Field Values

SIT_BROWSING

protected static final int SIT_BROWSING
See Also:
Constant Field Values

SIT_SHOP_ENTER

protected static final int SIT_SHOP_ENTER
See Also:
Constant Field Values

SIT_SHOP_EXIT

protected static final int SIT_SHOP_EXIT
See Also:
Constant Field Values

NONE_SCE

protected static final int NONE_SCE
See Also:
Constant Field Values

SCE_BROWSING

protected static final int SCE_BROWSING
See Also:
Constant Field Values

SCE_INMOBILE

protected static final int SCE_INMOBILE
See Also:
Constant Field Values

SCE_WALKING

protected static final int SCE_WALKING
See Also:
Constant Field Values

SCE_DROP_DOWN

protected static final int SCE_DROP_DOWN
See Also:
Constant Field Values

SCE_WINDOW_SHOP

protected static final int SCE_WINDOW_SHOP
See Also:
Constant Field Values

SCE_SHOP_ENTER

protected static final int SCE_SHOP_ENTER
See Also:
Constant Field Values

SCE_SHOP_EXIT

protected static final int SCE_SHOP_EXIT
See Also:
Constant Field Values

SCE_SHOP_REENTER

protected static final int SCE_SHOP_REENTER
See Also:
Constant Field Values

GBNONE_ROL

protected static final int GBNONE_ROL
Positions in the JComboBoxes used for the Individual Box Movement infomation

See Also:
Constant Field Values

GBFIGHTERS

protected static final int GBFIGHTERS
Positions in the JComboBoxes used for the Individual Box Movement infomation

See Also:
Constant Field Values

GBBROWSERS

protected static final int GBBROWSERS
Positions in the JComboBoxes used for the Individual Box Movement infomation

See Also:
Constant Field Values

GBMEETERS

protected static final int GBMEETERS
Positions in the JComboBoxes used for the Individual Box Movement infomation

See Also:
Constant Field Values

GBWALKERS

protected static final int GBWALKERS
Positions in the JComboBoxes used for the Individual Box Movement infomation

See Also:
Constant Field Values

GBNONE_SIT

protected static final int GBNONE_SIT
See Also:
Constant Field Values

GBBROWSING_SIT

protected static final int GBBROWSING_SIT
See Also:
Constant Field Values

GBFIGHTING_SIT

protected static final int GBFIGHTING_SIT
See Also:
Constant Field Values

GBMOVING_SIT

protected static final int GBMOVING_SIT
See Also:
Constant Field Values

GBMEETING_SIT

protected static final int GBMEETING_SIT
See Also:
Constant Field Values

GBINTERACT_SIT

protected static final int GBINTERACT_SIT
See Also:
Constant Field Values

GBSPLITTING_SIT

protected static final int GBSPLITTING_SIT
See Also:
Constant Field Values

GBINACTIVE_SIT

protected static final int GBINACTIVE_SIT
See Also:
Constant Field Values

GBSHOPENTER_SIT

protected static final int GBSHOPENTER_SIT
See Also:
Constant Field Values

GBSHOPEXIT_SIT

protected static final int GBSHOPEXIT_SIT
See Also:
Constant Field Values

GBLEAVING_SIT

protected static final int GBLEAVING_SIT
See Also:
Constant Field Values

GBLEAVINGOBJ_SIT

protected static final int GBLEAVINGOBJ_SIT
See Also:
Constant Field Values

GBNONE_SCE

protected static final int GBNONE_SCE
See Also:
Constant Field Values

GBFIGHTING_SCE

protected static final int GBFIGHTING_SCE
See Also:
Constant Field Values

GBWALKING_SCE

protected static final int GBWALKING_SCE
See Also:
Constant Field Values

GBMEETING_SCE

protected static final int GBMEETING_SCE
See Also:
Constant Field Values

GBWINDOWSHOP_SCE

protected static final int GBWINDOWSHOP_SCE
See Also:
Constant Field Values

GBSHOPENTER_SCE

protected static final int GBSHOPENTER_SCE
See Also:
Constant Field Values

GBSHOPEXIT_SCE

protected static final int GBSHOPEXIT_SCE
See Also:
Constant Field Values

GBSHOPREENTER_SCE

protected static final int GBSHOPREENTER_SCE
See Also:
Constant Field Values

GBLEAVING_SCE

protected static final int GBLEAVING_SCE
See Also:
Constant Field Values

BODY_BOX

protected static final int BODY_BOX
Positions for JComboBox for body parts

See Also:
Constant Field Values

BODY_HEAD

protected static final int BODY_HEAD
Positions for JComboBox for body parts

See Also:
Constant Field Values

BODY_GAZE

protected static final int BODY_GAZE
Positions for JComboBox for body parts

See Also:
Constant Field Values

BODY_R_SHOULDER

protected static final int BODY_R_SHOULDER
Positions for JComboBox for body parts

See Also:
Constant Field Values

BODY_L_SHOULDER

protected static final int BODY_L_SHOULDER
Positions for JComboBox for body parts

See Also:
Constant Field Values

BODY_R_HAND

protected static final int BODY_R_HAND
Positions for JComboBox for body parts

See Also:
Constant Field Values

BODY_L_HAND

protected static final int BODY_L_HAND
Positions for JComboBox for body parts

See Also:
Constant Field Values

BODY_R_FOOT

protected static final int BODY_R_FOOT
Positions for JComboBox for body parts

See Also:
Constant Field Values

BODY_L_FOOT

protected static final int BODY_L_FOOT
Positions for JComboBox for body parts

See Also:
Constant Field Values
Constructor Detail

CAVIARGUI

public CAVIARGUI()
Creates new form CAVIARGUI.

Method Detail

singleBoxExistinGroupBox

public boolean singleBoxExistinGroupBox(int single)

resetIBDisplay

public void resetIBDisplay()
Used to update the iBPanel to reflect changes made to the data structure.


main

public static void main(java.lang.String[] args)
Main method that starts the CAVIARGUI program. Everything in the caviargui is related to this. Simply creates a new CAVIARGUI object and then calls show() to initialise the GUI

Parameters:
args - the command line arguments