Main Page | Class Hierarchy | Class List | Class Members | Related Pages

blockworld.EnvView Class Reference

Grid view of agent enviroment ('world'). More...

Inheritance diagram for blockworld.EnvView:

blockworld.lib.ObsVectListener List of all members.

Public Member Functions

Dimension getPreferredSize ()
void onRemove (int i, Object o)
void onAdd (int i, Object o)
void update (Observable o, Object arg)
Agent getSelectedAgent ()
Env getEnv ()

Public Attributes

Signal signalSelectionChanged = new Signal("Selected agent changed")

Protected Member Functions

void paintComponent (Graphics g)

Protected Attributes

Env _env
Agent _selectedAgent = null

Package Functions

 EnvView (Env env)

Package Attributes

double _cw = 10
double _ch = 10

Detailed Description

Grid view of agent enviroment ('world').


Constructor & Destructor Documentation

blockworld.EnvView.EnvView Env  env  )  [package]
 

Enable mouse editing.


Member Function Documentation

void blockworld.EnvView.paintComponent Graphics  g  )  [protected]
 

Todo:
fix size stuff, it's now done incorrectly (use 100 * 100 grid to see result). this is because the way casting is done (doubles converted to int before use, instead of afterwards)


The documentation for this class was generated from the following file:
Generated on Wed Jun 16 17:22:45 2004 for blockworld by doxygen 1.3.7