Refactoring.
[sixth-3d.git] / src / main / java / eu / svjatoslav / sixth / e3d / gui / ViewContext.java
index ad01cb5..be949c8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sixth 3D engine. Copyright ©2012-2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Sixth 3D engine. 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
@@ -22,12 +22,12 @@ public class ViewContext {
 
     private final Avatar avatar = new Avatar();
 
-    private final View view;
+    private final ViewPanel viewPanel;
 
     private final ShapeCollection rootShapeCollection = new ShapeCollection();
 
-    public ViewContext(final View view) {
-        this.view = view;
+    public ViewContext(final ViewPanel viewPanel) {
+        this.viewPanel = viewPanel;
     }
 
     public Avatar getAvatar() {
@@ -46,8 +46,8 @@ public class ViewContext {
         return userInputTracker;
     }
 
-    public View getView() {
-        return view;
+    public ViewPanel getViewPanel() {
+        return viewPanel;
     }
 
 }