2 * Sixth - System for data storage, computation, exploration and interaction.
3 * Copyright ©2012-2016, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of version 3 of the GNU Lesser General Public License
7 * or later as published by the Free Software Foundation.
10 package eu.svjatoslav.sixth.e3d.gui;
12 import eu.svjatoslav.sixth.e3d.gui.humaninput.KeyboardFocusTracker;
13 import eu.svjatoslav.sixth.e3d.gui.humaninput.UserInputTracker;
14 import eu.svjatoslav.sixth.e3d.renderer.raster.ShapeCollection;
16 public class ViewContext {
18 private final UserInputTracker userInputTracker = new UserInputTracker(this);
20 private final KeyboardFocusTracker keyboardFocusTracker = new KeyboardFocusTracker(
23 private final Avatar avatar = new Avatar();
25 private final View view;
27 private final ShapeCollection rootShapeCollection = new ShapeCollection();
29 public ViewContext(final View view) {
33 public Avatar getAvatar() {
37 public KeyboardFocusTracker getKeyboardFocusTracker() {
38 return keyboardFocusTracker;
41 public ShapeCollection getRootShapeCollection() {
42 return rootShapeCollection;
45 public UserInputTracker getUserInputTracker() {
46 return userInputTracker;
49 public View getView() {