elge.world
Class Display2DWorld

java.lang.Object
  |
  +--elge.world.Display2DWorld
All Implemented Interfaces:
WorldDisplay

public class Display2DWorld
extends Object
implements WorldDisplay

Author:
Palino

Constructor Summary
Display2DWorld()
          Creates a new instance of Display2DWorld
 
Method Summary
 void paint(Graphics gfx, AgentRepresentation wr)
          Paints the representation to the gfx if it is supported.
 boolean supports(AgentRepresentation wr)
          Checks if the implementation supports this type of representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Display2DWorld

public Display2DWorld()
Creates a new instance of Display2DWorld

Method Detail

paint

public void paint(Graphics gfx,
                  AgentRepresentation wr)
Paints the representation to the gfx if it is supported. If not, nothing should be painted ! No error, just leave it.

Specified by:
paint in interface WorldDisplay

supports

public boolean supports(AgentRepresentation wr)
Checks if the implementation supports this type of representation

Specified by:
supports in interface WorldDisplay