All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ch.jp.robwar.DefaultDisplayer

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----ch.jp.robwar.MapDisplayer
                                   |
                                   +----ch.jp.robwar.DefaultDisplayer

public class DefaultDisplayer
extends MapDisplayer
implements ComponentListener
This will display the map on the panel, zooming it as necessary to fill the whole panel.


Variable Index

 o image
 o imageGraphics

Constructor Index

 o DefaultDisplayer()

Method Index

 o componentHidden(ComponentEvent)
 o componentMoved(ComponentEvent)
 o componentResized(ComponentEvent)
 o componentShown(ComponentEvent)
 o display()
Computes the image and then displays it
 o paint(Graphics)
affiche l'image (ben oui quoi ;)
 o setMap(Map)
 o testCollisionRoutines()
Displays a grid on the map, with a red dot where a collision would occur and green when not.
 o testIntersectionRoutines()
Displays a grid on the map, with a red line where an intersection would occur and green when not.
 o update(Graphics)
override pour eviter qu'il efface l'ecran d'abord

Variables

 o image
 public Image image
 o imageGraphics
 public Graphics imageGraphics

Constructors

 o DefaultDisplayer
 public DefaultDisplayer()

Methods

 o update
 public void update(Graphics g)
override pour eviter qu'il efface l'ecran d'abord

Overrides:
update in class Container
 o paint
 public void paint(Graphics g)
affiche l'image (ben oui quoi ;)

Overrides:
paint in class Container
 o testCollisionRoutines
 public void testCollisionRoutines()
Displays a grid on the map, with a red dot where a collision would occur and green when not.

 o testIntersectionRoutines
 public void testIntersectionRoutines()
Displays a grid on the map, with a red line where an intersection would occur and green when not.

 o display
 public synchronized void display()
Computes the image and then displays it

Overrides:
display in class MapDisplayer
 o setMap
 public void setMap(Map m)
Overrides:
setMap in class MapDisplayer
 o componentResized
 public synchronized void componentResized(ComponentEvent ev)
 o componentMoved
 public void componentMoved(ComponentEvent ev)
 o componentShown
 public void componentShown(ComponentEvent ev)
 o componentHidden
 public void componentHidden(ComponentEvent ev)

All Packages  Class Hierarchy  This Package  Previous  Next  Index