/**
   * Panel that will display the stats for the object that is being added to the level in the level
   * editor environment.
   */
  public ObjectStatsPanel(ObjectEditorContainer container, LevelEditor editor) {
    homePanel = new JPanel();
    panelSize = new Dimension(PANEL_WIDTH, container.HEIGHT);
    setLayout(new BorderLayout());
    homePanel.setLayout(new BoxLayout(homePanel, BoxLayout.Y_AXIS));
    initializeCollisionIDs();

    myLevelEditor = editor;
    myLevelEditor.setObjectStatsPanel(this);
    loadInCorrectColIDMap(myLevelEditor.getLevel().getObjects());
    initialize();
    add(new ObjectToolbar(myLevelEditor), BorderLayout.WEST);
    add(homePanel, BorderLayout.EAST);
  }
 public ObjectStats exportStats() {
   return new ObjectStats(
       (String) objectType.getSelectedItem(),
       myCollisionID,
       (String) movementType.getSelectedItem(),
       mySpeedSlider.getValue(),
       myDurationSlider.getValue(),
       cameraBox.isSelected(),
       myLevelEditor.getMover().getImageName(),
       floaterBox.isSelected(),
       myHitPointsSlider.getValue());
 }