public void addObject(PhysicalObject paramPhysicalObject)
  {
    if ((paramPhysicalObject.getLayer().compareTo("") != 0) && (paramPhysicalObject.getLayer() != null))
    {
      SimpleContainer localSimpleContainer = null;
      addLayer(paramPhysicalObject.getLayer());
      localSimpleContainer = (SimpleContainer)this.Layers.get(paramPhysicalObject.getLayer());
      paramPhysicalObject.setLocation(Position.mapToScreen(paramPhysicalObject.getPosition()));
      paramPhysicalObject.setSize(paramPhysicalObject.getShapeSize().width * 50, 
        paramPhysicalObject.getShapeSize().height * 50);
      paramPhysicalObject.setRenderer(this);
      if (isInWindow(paramPhysicalObject))
      {
        localSimpleContainer.add(paramPhysicalObject);

        if (isInWindow(paramPhysicalObject))
        {
          this.VisibleObjects.addElement(paramPhysicalObject);
        }
      }
    }
  }