Class RetineSimulation

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--RetineSimulation

public class RetineSimulation
extends Applet
implements ComponentListener

This class is the main class of the retina algorithme. It put all the panel in the right place and initialise them.

See Also:
PanelConfiguration, Serialized Form

Field Summary
protected  Panel centerEastPanel
          The center east panel (see code for more informations).
protected  Panel centerPanel
          The center panel (see code for more informations).
protected  Panel centerWestPanel
          The center west panel (see code for more informations).
protected  FormsMakerPanel formsMakerPanel
          The forms maker panel.
protected  int height
          The height of the PaintSurface and the ModifiedPaintSurface.
protected  ModifiedPaintSurfacePanel modifiedPaintSurfacePanel
          The modified paintsurface panel.
protected  Panel northEastPanel
          The north east panel (see code for more informations).
protected  Panel northPanel
          The north panel (see code for more informations).
protected  Panel northWestPanel
          The north west panel (see code for more informations).
protected  PaintSurfacePanel paintSurfacePanel
          The paintsurface panel.
protected  RCImagePanel rcImagePanel
          The RC image panel.
protected  RetineConfigurationPanel retineConfigurationPanel
          The retine configuration panel.
protected  TitlePanel titlePanel
          The title panel.
protected  ToolPanel toolPanel
          The tool panel.
protected  int width
          The width of the PaintSurface and the ModifiedPaintSurface.
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
RetineSimulation()
          The constructor.
 
Method Summary
 void centerElements(RetineSimulation retineSimulation)
          This method center the paintsurface and the modifiedpaintsurface
 void componentHidden(ComponentEvent e)
          Method to know if the component is hidden.
 void componentMoved(ComponentEvent e)
          Method to know if the component is moved.
 void componentResized(ComponentEvent e)
          Method to know if the component is resized.
 void componentShown(ComponentEvent e)
          Method to know if the component is shown.
 void destroy()
          This method is called when the applet is destroyed.
 void init()
          Initialisation of all the panel with the right parameters.
 void initMain(Frame myFrame)
          This method initialize the retina algorithm with the right values when we want to start it in a frame.
static void main(String[] args)
          Main method.
 void start()
          We start the applet.
 void stop()
          This method is called when the applet is stopped.
 
Methods inherited from class java.applet.Applet
getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

width

protected final int width
The width of the PaintSurface and the ModifiedPaintSurface.
See Also:
PaintSurface, ModifiedPaintSurface

height

protected final int height
The height of the PaintSurface and the ModifiedPaintSurface.
See Also:
PaintSurface, ModifiedPaintSurface

paintSurfacePanel

protected PaintSurfacePanel paintSurfacePanel
The paintsurface panel.
See Also:
PaintSurfacePanel

modifiedPaintSurfacePanel

protected ModifiedPaintSurfacePanel modifiedPaintSurfacePanel
The modified paintsurface panel.
See Also:
ModifiedPaintSurfacePanel

formsMakerPanel

protected FormsMakerPanel formsMakerPanel
The forms maker panel.
See Also:
FormsMakerPanel

retineConfigurationPanel

protected RetineConfigurationPanel retineConfigurationPanel
The retine configuration panel.
See Also:
PaintSurfacePanel

titlePanel

protected TitlePanel titlePanel
The title panel.
See Also:
TitlePanel

toolPanel

protected ToolPanel toolPanel
The tool panel.
See Also:
ToolPanel

rcImagePanel

protected RCImagePanel rcImagePanel
The RC image panel.
See Also:
RCImagePanel

northPanel

protected Panel northPanel
The north panel (see code for more informations).

northEastPanel

protected Panel northEastPanel
The north east panel (see code for more informations).

northWestPanel

protected Panel northWestPanel
The north west panel (see code for more informations).

centerPanel

protected Panel centerPanel
The center panel (see code for more informations).

centerEastPanel

protected Panel centerEastPanel
The center east panel (see code for more informations).

centerWestPanel

protected Panel centerWestPanel
The center west panel (see code for more informations).
Constructor Detail

RetineSimulation

public RetineSimulation()
The constructor. It creates all the panel with the right parameters.
Method Detail

init

public void init()
Initialisation of all the panel with the right parameters.
Overrides:
init in class Applet

initMain

public void initMain(Frame myFrame)
This method initialize the retina algorithm with the right values when we want to start it in a frame.
Parameters:
myFrame - The frame in which we want to show the retina applet.

start

public void start()
We start the applet. This method add all the panel.
Overrides:
start in class Applet

stop

public void stop()
This method is called when the applet is stopped.
Overrides:
stop in class Applet

destroy

public void destroy()
This method is called when the applet is destroyed.
Overrides:
destroy in class Applet

centerElements

public void centerElements(RetineSimulation retineSimulation)
This method center the paintsurface and the modifiedpaintsurface
Parameters:
retineSimulation - this class.

componentHidden

public void componentHidden(ComponentEvent e)
Method to know if the component is hidden.
Specified by:
componentHidden in interface ComponentListener
Parameters:
e - The ComponentEvent

componentMoved

public void componentMoved(ComponentEvent e)
Method to know if the component is moved.
Specified by:
componentMoved in interface ComponentListener
Parameters:
e - The ComponentEvent

componentResized

public void componentResized(ComponentEvent e)
Method to know if the component is resized.
Specified by:
componentResized in interface ComponentListener
Parameters:
e - The ComponentEvent

componentShown

public void componentShown(ComponentEvent e)
Method to know if the component is shown.
Specified by:
componentShown in interface ComponentListener
Parameters:
e - The ComponentEvent

main

public static void main(String[] args)
Main method. Called when the user want to start the applet in a frame.
Parameters:
args - The argument of the command line.