Removed ViewContext.
[sixth-3d-demos.git] / src / main / java / eu / svjatoslav / sixth / e3d / examples / SphereDemo.java
index d89486f..24b455f 100755 (executable)
@@ -9,8 +9,8 @@
 package eu.svjatoslav.sixth.e3d.examples;
 
 import eu.svjatoslav.sixth.e3d.geometry.Point3D;
-import eu.svjatoslav.sixth.e3d.gui.ViewContext;
 import eu.svjatoslav.sixth.e3d.gui.ViewFrame;
+import eu.svjatoslav.sixth.e3d.gui.ViewPanel;
 import eu.svjatoslav.sixth.e3d.renderer.raster.Color;
 import eu.svjatoslav.sixth.e3d.renderer.raster.ShapeCollection;
 import eu.svjatoslav.sixth.e3d.renderer.raster.shapes.basic.line.LineAppearance;
@@ -56,9 +56,9 @@ public class SphereDemo {
     public static void main(final String[] args) {
 
         final ViewFrame viewFrame = new ViewFrame();
-        final ViewContext context = viewFrame.getViewPanel().getContext();
+        final ViewPanel viewPanel = viewFrame.getViewPanel();
 
-        final ShapeCollection geometryCollection = context
+        final ShapeCollection geometryCollection = viewPanel
                 .getRootShapeCollection();
 
         final LineAppearance appearance = new LineAppearance(4, new Color(255,
@@ -72,7 +72,7 @@ public class SphereDemo {
         makeWobblySurface(geometryCollection, 200);
         makeWobblySurface(geometryCollection, -200);
 
-        context.getAvatar().setLocation(new Point3D(0, 0, -340));
+        viewPanel.getAvatar().setLocation(new Point3D(0, 0, -340));
 
     }
 }