Removed ViewListener interface. Renamed View to ViewPanel.
[sixth-3d-demos.git] / src / main / java / eu / svjatoslav / sixth / e3d / examples / TextEditorDemo.java
index 6f5d4d2..ea2a867 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sixth 3D engine demos. Copyright ©2012-2016, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Sixth 3D engine demos. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of version 3 of the GNU Lesser General Public License
@@ -11,7 +11,7 @@ package eu.svjatoslav.sixth.e3d.examples;
 import eu.svjatoslav.sixth.e3d.geometry.Point2D;
 import eu.svjatoslav.sixth.e3d.geometry.Point3D;
 import eu.svjatoslav.sixth.e3d.geometry.Rectangle;
-import eu.svjatoslav.sixth.e3d.geometry.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.textEditorComponent.TextEditComponent;
@@ -36,9 +36,9 @@ public class TextEditorDemo {
     public static void main(final String[] args) {
 
         final ViewFrame viewFrame = new ViewFrame();
-        final ViewContext viewContext = viewFrame.getView().getContext();
+        final ViewContext viewContext = viewFrame.getViewPanel().getContext();
 
-        final ShapeCollection shapeCollection = viewFrame.getView()
+        final ShapeCollection shapeCollection = viewFrame.getViewPanel()
                 .getContext().getRootShapeCollection();
 
         shapeCollection.addShape(createGrid());