X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Fgui%2FViewFrame.java;h=6a824c81c5d982cd45561642bda522ab2a57d972;hb=037f1a226b5305f605fa15afb1abd9399554eccb;hp=1383c729b22f87b0f7d5b5f939f6bc181639d6f9;hpb=70ee733b25c56bed539b89ff5507ae0af842d68a;p=sixth-3d.git diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/gui/ViewFrame.java b/src/main/java/eu/svjatoslav/sixth/e3d/gui/ViewFrame.java index 1383c72..6a824c8 100755 --- a/src/main/java/eu/svjatoslav/sixth/e3d/gui/ViewFrame.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/gui/ViewFrame.java @@ -1,12 +1,7 @@ /* - * 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 - * or later as published by the Free Software Foundation. - * + * Sixth 3D engine. Author: Svjatoslav Agejenko. + * This project is released under Creative Commons Zero (CC0) license. */ - package eu.svjatoslav.sixth.e3d.gui; import javax.swing.*; @@ -16,6 +11,9 @@ import java.awt.event.ComponentListener; import java.awt.event.WindowEvent; import java.awt.event.WindowListener; +/** + * Java Swing GUI frame that contains canvas for 3D rendering. + */ public class ViewFrame extends JFrame implements WindowListener { private static final long serialVersionUID = -7037635097739548470L; @@ -90,6 +88,9 @@ public class ViewFrame extends JFrame implements WindowListener { }); } + /** + * Exit the application. + */ public void exit() { if (getViewPanel() != null) { getViewPanel().stop(); @@ -128,11 +129,22 @@ public class ViewFrame extends JFrame implements WindowListener { public void windowDeactivated(final WindowEvent e) { } + /** + * Repaint the view when the window is deiconified. + * + * Deiconified means that the window is restored from minimized state. + */ @Override public void windowDeiconified(final WindowEvent e) { viewPanel.repaintDuringNextViewUpdate(); } + /** + * Do nothing when the window is iconified. + * + * Iconified means that the window is minimized. + * @param e the event to be processed + */ @Override public void windowIconified(final WindowEvent e) { }