|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--DisplayPanel | +--WarehouseView
View for a warehouse using row and column coordinates to specify locations in the warehouse in tabular format.
Field Summary | |
protected SpaceView |
crane
Space view currently inhabited by the crane. |
protected SpaceView |
destination
Space view currently the crane's destination. |
protected Warehouse |
model
Warehouse data model for this view. |
protected SpaceView[][] |
spaces
Array of space views used in this view. |
Constructor Summary | |
WarehouseView(Warehouse w)
Constructs a view for the given warehouse. |
Method Summary | |
void |
propertyChange(PropertyChangeEvent evt)
Updates this view when the warehouse crane is changed. |
void |
update(Observable obj,
Object arg)
Updates this. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Warehouse model
protected SpaceView[][] spaces
protected SpaceView crane
protected SpaceView destination
Constructor Detail |
public WarehouseView(Warehouse w)
Method Detail |
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
evt
- event object encapsulating the property changepublic void update(Observable obj, Object arg)
update
in interface Observer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |