org.univ.paris5.GameOfLife
Class GameOfLife

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Panel
              extended by java.applet.Applet
                  extended by org.univ.paris5.GameOfLife.GameOfLife
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.lang.Runnable, javax.accessibility.Accessible

public class GameOfLife
extends java.applet.Applet
implements java.lang.Runnable

The Game Of Life Applet. This is the heart of the program. It initializes everything en put it together.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.BaselineResizeBehavior
 
Field Summary
 java.lang.String algoritmDir
           
 java.lang.String algoritmPath
           
 java.lang.String listAlgoFile
           
 java.lang.String listShapeFile
           
 java.lang.String shapeFileDir
           
 java.lang.String shapeFileName
           
 
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
GameOfLife()
           
 
Method Summary
 void algoSelected(java.lang.String algoName)
          Selected algoritem in the menu.
 void beginning()
          Beginning creating new generations.
 void clear()
          Go to the next generation.
 void DialogAbout()
           
 void getListAlgotiem()
          Charge the list algorithms.
 void init()
          Init the applet.
 void initParam()
          Init the Param of applet.
 void loadAlgo()
          Add algorithmes in to the menu.
 void loadShape(java.lang.String pathFile)
          Charge shape file.
 void nextGeneration()
          Go to the next generation.
 void openShapeList()
          Open a shape from to a file.
 void random()
          Go to the next generation.
 void run()
           
 void saveShape(java.lang.String shapeName)
          Save the shape in file Xml.
 void setLoop(int loop)
          Set the Numbre loop.
 void shapeSelected(java.lang.String nameShape)
          Selected shape in the menu.
 void stop()
           
 
Methods inherited from class java.applet.Applet
destroy, getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

algoritmDir

public final java.lang.String algoritmDir
See Also:
Constant Field Values

algoritmPath

public final java.lang.String algoritmPath
See Also:
Constant Field Values

shapeFileDir

public final java.lang.String shapeFileDir
See Also:
Constant Field Values

listAlgoFile

public final java.lang.String listAlgoFile
See Also:
Constant Field Values

listShapeFile

public final java.lang.String listShapeFile
See Also:
Constant Field Values

shapeFileName

public java.lang.String shapeFileName
Constructor Detail

GameOfLife

public GameOfLife()
Method Detail

initParam

public void initParam()
Init the Param of applet.


init

public void init()
Init the applet.

Overrides:
init in class java.applet.Applet

getListAlgotiem

public void getListAlgotiem()
Charge the list algorithms. The list algorithms is save in a file Text.


loadAlgo

public void loadAlgo()
Add algorithmes in to the menu.


openShapeList

public void openShapeList()
Open a shape from to a file.

Parameters:
pathFile -

loadShape

public void loadShape(java.lang.String pathFile)
Charge shape file.

Parameters:
pathFile -

saveShape

public void saveShape(java.lang.String shapeName)
Save the shape in file Xml.

Parameters:
shapeName -

beginning

public void beginning()
Beginning creating new generations. No start() to prevent starting immediately.


run

public void run()
Specified by:
run in interface java.lang.Runnable
See Also:
Runnable.run()

nextGeneration

public void nextGeneration()
Go to the next generation.


clear

public void clear()
Go to the next generation.


random

public void random()
Go to the next generation.


stop

public void stop()
Overrides:
stop in class java.applet.Applet
See Also:
Applet.stop()

setLoop

public void setLoop(int loop)
Set the Numbre loop.


shapeSelected

public void shapeSelected(java.lang.String nameShape)
Selected shape in the menu.


algoSelected

public void algoSelected(java.lang.String algoName)
Selected algoritem in the menu.

Parameters:
algoName -

DialogAbout

public void DialogAbout()