Updated readability of the code.
[sixth-3d.git] / src / main / java / eu / svjatoslav / sixth / e3d / gui / ViewUpdateTimerTask.java
1 /*
2  * Sixth 3D engine. Author: Svjatoslav Agejenko.
3  * This project is released under Creative Commons Zero (CC0) license.
4  */
5 package eu.svjatoslav.sixth.e3d.gui;
6
7 public class ViewUpdateTimerTask extends java.util.TimerTask {
8
9     public ViewPanel viewPanel;
10
11     public ViewUpdateTimerTask(final ViewPanel viewPanel) {
12         this.viewPanel = viewPanel;
13     }
14
15     @Override
16     public void run() {
17
18         // update and possibly render view
19         viewPanel.updateView();
20     }
21
22 }