Updated copyright
[sixth-3d.git] / src / main / java / eu / svjatoslav / sixth / e3d / gui / ViewUpdateTimerTask.java
1 /*
2  * Sixth 3D engine. Copyright ©2012-2019, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of version 3 of the GNU Lesser General Public License
6  * or later as published by the Free Software Foundation.
7  *
8  */
9
10 package eu.svjatoslav.sixth.e3d.gui;
11
12 public class ViewUpdateTimerTask extends java.util.TimerTask {
13
14     public ViewPanel viewPanel;
15
16     public ViewUpdateTimerTask(final ViewPanel viewPanel) {
17         this.viewPanel = viewPanel;
18     }
19
20     @Override
21     public void run() {
22
23         // update and possibly render view
24         viewPanel.updateView();
25     }
26
27 }