fr.lip6.sma.simulacion.avatar
Class Test

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 fr.lip6.sma.simulacion.avatar.Test
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class Test
extends JFrame

Classe pour la fenêtre principale du test des avatars.

Version:
$Revision $
Author:
Paul Guyot
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JFrame
JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
private  JLabel mAttitudeLabel
          Label with the name of the attitude.
private  JList mAttitudeList
          Vue sur la liste des attitudes pour une vue donnée.
private  JScrollPane mAttitudeScrollPane
          Scroll pane with all the attitudes.
private  JLabel mAvatarLabel
          Label with the name of the avatar.
private  JList mAvatarList
          Vue sur la liste des avatars.
private  Map mAvatars
          Tableau des avatars.
private  JScrollPane mAvatarScrollPane
          Scroll pane with all the avatars.
private  AvatarDialog2D mAvatarView
          Vue sur l'avatar ou null si l'avatar n'est pas visible.
private  JFrame mAvatarWindow
          Fenêtre avec l'avatar animé.
private  JLabel mCopyrightLabel
          Label with the copyright notice.
private  Avatar mCurrentAvatar
          Avatar courant ou null si aucun avatar n'est choisi.
private  AvatarImageCollection mCurrentView
          Vue courante ou null si aucune vue n'est choisie.
private  String mCurrentViewID
          Identifiant de la vue courante ou null si aucune vue n'est choisie.
private  SimulacionMediaTracker mTracker
          Traqueur pour les images.
private  JLabel mViewLabel
          Label with the name of the view.
private  JList mViewList
          Vue sur la liste des vues pour un avatar donné.
private  JScrollPane mViewScrollPane
          Scroll pane with all the views.
 
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, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Test(String inConfigPath)
          Constructeur à partir du chemin vers le fichier de configuration.
 
Method Summary
private  void attitudeListSelectionChanged()
          Méthode invoquée lorsque la sélection dans la liste des attitudes est changée.
private  void avatarListSelectionChanged()
          Méthode invoquée lorsque la sélection dans la liste des avatars est changée.
private  void closeAvatarWindow()
          Ferme la fenêtre de l'avatar.
private  void initComponents()
          Méthode pour initialiser les composants au démarrage de l'application.
static void main(String[] inArgs)
          Entry point for this test method.
private  void thisWindowClosing(WindowEvent inEvent)
          Méthode invoquée lorsque la case de fermeture est cliquée.
private  void viewListSelectionChanged()
          Méthode invoquée lorsque la sélection dans la liste des vues est changée.
 
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

mAvatarScrollPane

private final JScrollPane mAvatarScrollPane
Scroll pane with all the avatars.


mAttitudeScrollPane

private final JScrollPane mAttitudeScrollPane
Scroll pane with all the attitudes.


mViewScrollPane

private final JScrollPane mViewScrollPane
Scroll pane with all the views.


mAvatarLabel

private final JLabel mAvatarLabel
Label with the name of the avatar.


mViewLabel

private final JLabel mViewLabel
Label with the name of the view.


mAttitudeLabel

private final JLabel mAttitudeLabel
Label with the name of the attitude.


mCopyrightLabel

private final JLabel mCopyrightLabel
Label with the copyright notice.


mAvatars

private final Map mAvatars
Tableau des avatars.


mCurrentAvatar

private Avatar mCurrentAvatar
Avatar courant ou null si aucun avatar n'est choisi.


mCurrentView

private AvatarImageCollection mCurrentView
Vue courante ou null si aucune vue n'est choisie.


mCurrentViewID

private String mCurrentViewID
Identifiant de la vue courante ou null si aucune vue n'est choisie.


mTracker

private final SimulacionMediaTracker mTracker
Traqueur pour les images.


mAvatarList

private JList mAvatarList
Vue sur la liste des avatars.


mViewList

private JList mViewList
Vue sur la liste des vues pour un avatar donné.


mAttitudeList

private JList mAttitudeList
Vue sur la liste des attitudes pour une vue donnée.


mAvatarWindow

private JFrame mAvatarWindow
Fenêtre avec l'avatar animé.


mAvatarView

private AvatarDialog2D mAvatarView
Vue sur l'avatar ou null si l'avatar n'est pas visible.

Constructor Detail

Test

public Test(String inConfigPath)
Constructeur à partir du chemin vers le fichier de configuration.

Parameters:
inConfigPath - chemin du fichier de configuration.
Method Detail

initComponents

private void initComponents()
Méthode pour initialiser les composants au démarrage de l'application. Elle est essentiellement générée par MW. Ensuite, on ajout les listes.


thisWindowClosing

private void thisWindowClosing(WindowEvent inEvent)
Méthode invoquée lorsque la case de fermeture est cliquée. On quitte le programme.

Parameters:
inEvent - l'événement de fermeture de la fenêtre (ignoré).

avatarListSelectionChanged

private void avatarListSelectionChanged()
Méthode invoquée lorsque la sélection dans la liste des avatars est changée.


viewListSelectionChanged

private void viewListSelectionChanged()
Méthode invoquée lorsque la sélection dans la liste des vues est changée.


attitudeListSelectionChanged

private void attitudeListSelectionChanged()
Méthode invoquée lorsque la sélection dans la liste des attitudes est changée.


closeAvatarWindow

private void closeAvatarWindow()
Ferme la fenêtre de l'avatar.


main

public static void main(String[] inArgs)
Entry point for this test method. Uses a JFileChooser to find the configuration file.

Parameters:
inArgs - command line arguments.