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.
-
image
-
-
imageGraphics
-
-
DefaultDisplayer()
-
-
componentHidden(ComponentEvent)
-
-
componentMoved(ComponentEvent)
-
-
componentResized(ComponentEvent)
-
-
componentShown(ComponentEvent)
-
-
display()
- Computes the image and then displays it
-
paint(Graphics)
- affiche l'image (ben oui quoi ;)
-
setMap(Map)
-
-
testCollisionRoutines()
- Displays a grid on the map, with a red dot where
a collision would occur and green when not.
-
testIntersectionRoutines()
- Displays a grid on the map, with a red line where
an intersection would occur and green when not.
-
update(Graphics)
- override pour eviter qu'il efface l'ecran d'abord
image
public Image image
imageGraphics
public Graphics imageGraphics
DefaultDisplayer
public DefaultDisplayer()
update
public void update(Graphics g)
- override pour eviter qu'il efface l'ecran d'abord
- Overrides:
- update in class Container
paint
public void paint(Graphics g)
- affiche l'image (ben oui quoi ;)
- Overrides:
- paint in class Container
testCollisionRoutines
public void testCollisionRoutines()
- Displays a grid on the map, with a red dot where
a collision would occur and green when not.
testIntersectionRoutines
public void testIntersectionRoutines()
- Displays a grid on the map, with a red line where
an intersection would occur and green when not.
display
public synchronized void display()
- Computes the image and then displays it
- Overrides:
- display in class MapDisplayer
setMap
public void setMap(Map m)
- Overrides:
- setMap in class MapDisplayer
componentResized
public synchronized void componentResized(ComponentEvent ev)
componentMoved
public void componentMoved(ComponentEvent ev)
componentShown
public void componentShown(ComponentEvent ev)
componentHidden
public void componentHidden(ComponentEvent ev)
All Packages Class Hierarchy This Package Previous Next Index