Removed ViewListener interface. Renamed View to ViewPanel.
[sixth-3d-demos.git] / src / main / java / eu / svjatoslav / sixth / e3d / examples / life / Main.java
index 8397d20..99fc3e1 100644 (file)
@@ -50,7 +50,7 @@ public class Main extends WorldNavigationTracker {
         // create application frame visible to the user
         final ViewFrame viewFrame = new ViewFrame();
 
-        final ShapeCollection shapeCollection = viewFrame.getView()
+        final ShapeCollection shapeCollection = viewFrame.getViewPanel()
                 .getContext().getRootShapeCollection();
 
         // add matrix
@@ -59,7 +59,7 @@ public class Main extends WorldNavigationTracker {
         // add wireframe grid (optional)
         shapeCollection.addShape(createGrid());
 
-        final ViewContext context = viewFrame.getView().getContext();
+        final ViewContext context = viewFrame.getViewPanel().getContext();
 
         setAvatarOrientation(context.getAvatar());
 
@@ -67,7 +67,7 @@ public class Main extends WorldNavigationTracker {
         context.getKeyboardFocusTracker().setFocusOwner(this);
 
         // Done! World is built. So ensure screen is updated too.
-        context.getView().repaintDuringNextViewUpdate();
+        context.getViewPanel().repaintDuringNextViewUpdate();
     }
 
     /**