Removed ViewContext.
[sixth-3d-demos.git] / src / main / java / eu / svjatoslav / sixth / e3d / examples / RainingNumbersDemo.java
index 557d5ff..b88a105 100644 (file)
@@ -9,8 +9,8 @@
 package eu.svjatoslav.sixth.e3d.examples;
 
 import eu.svjatoslav.sixth.e3d.geometry.Point3D;
 package eu.svjatoslav.sixth.e3d.examples;
 
 import eu.svjatoslav.sixth.e3d.geometry.Point3D;
+import eu.svjatoslav.sixth.e3d.gui.ViewPanel;
 import eu.svjatoslav.sixth.e3d.math.Transform;
 import eu.svjatoslav.sixth.e3d.math.Transform;
-import eu.svjatoslav.sixth.e3d.gui.ViewContext;
 import eu.svjatoslav.sixth.e3d.gui.ViewFrame;
 import eu.svjatoslav.sixth.e3d.gui.ViewRenderListener;
 import eu.svjatoslav.sixth.e3d.renderer.raster.Color;
 import eu.svjatoslav.sixth.e3d.gui.ViewFrame;
 import eu.svjatoslav.sixth.e3d.gui.ViewRenderListener;
 import eu.svjatoslav.sixth.e3d.renderer.raster.Color;
@@ -33,10 +33,10 @@ public class RainingNumbersDemo implements ViewRenderListener {
     }
 
     @Override
     }
 
     @Override
-    public boolean beforeRender(final ViewContext viewContext,
+    public boolean beforeRender(final ViewPanel viewPanel,
                                 final int millisecondsSinceLastFrame) {
 
                                 final int millisecondsSinceLastFrame) {
 
-        final Collection<AbstractShape> shapes = viewContext
+        final Collection<AbstractShape> shapes = viewPanel
                 .getRootShapeCollection().getShapes();
 
         final double translateAmount = millisecondsSinceLastFrame / 50d;
                 .getRootShapeCollection().getShapes();
 
         final double translateAmount = millisecondsSinceLastFrame / 50d;
@@ -53,11 +53,11 @@ public class RainingNumbersDemo implements ViewRenderListener {
         return true;
     }
 
         return true;
     }
 
-    private void run() throws IOException {
+    private void run() {
         final ViewFrame viewFrame = new ViewFrame();
 
         final ShapeCollection geometryCollection = viewFrame.getViewPanel()
         final ViewFrame viewFrame = new ViewFrame();
 
         final ShapeCollection geometryCollection = viewFrame.getViewPanel()
-                .getContext().getRootShapeCollection();
+                .getRootShapeCollection();
 
         Random random = new Random();
 
 
         Random random = new Random();