vooga.levelEditor.controller
Class LevelEditorController

java.lang.Object
  extended by vooga.levelEditor.controller.LevelEditorController

public class LevelEditorController
extends java.lang.Object

The umbrella class for the Level Editor controller. Pipes controller requests to underlying classes.

Author:
Phil Puryear

Constructor Summary
LevelEditorController(LevelEditorModel model, LevelEditorUI gui)
          Constructs a new controller with the given model and gui.
 
Method Summary
 void addGameItem(InstantiatedGameItemModel itemModel)
           
 MenuBarItems getMenuBarItems()
          Returns the container class for the items in the menu bar.
 void removeGameItemAtIndex(int selectedIndex)
           
 void showPropertiesForItemAtIndex(int selectedIndex)
           
 void showPropertiesForNewItem(java.lang.Class<? extends GameItem> clazz, java.awt.Point dropPoint)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LevelEditorController

public LevelEditorController(LevelEditorModel model,
                             LevelEditorUI gui)
Constructs a new controller with the given model and gui.

Method Detail

getMenuBarItems

public MenuBarItems getMenuBarItems()
Returns the container class for the items in the menu bar.


showPropertiesForNewItem

public void showPropertiesForNewItem(java.lang.Class<? extends GameItem> clazz,
                                     java.awt.Point dropPoint)

addGameItem

public void addGameItem(InstantiatedGameItemModel itemModel)

showPropertiesForItemAtIndex

public void showPropertiesForItemAtIndex(int selectedIndex)

removeGameItemAtIndex

public void removeGameItemAtIndex(int selectedIndex)