X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Fgui%2FViewFrame.java;h=a7b04456eadf795e6fcde94cb79ad6535c5ac07b;hb=HEAD;hp=f71e0a5d5d374937e73f521abc53363f91e8f1db;hpb=e260f919973fd3fb899d5e4b39172f7114157d9b;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 f71e0a5..a7b0445 100755 --- a/src/main/java/eu/svjatoslav/sixth/e3d/gui/ViewFrame.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/gui/ViewFrame.java @@ -12,7 +12,7 @@ import java.awt.event.WindowEvent; import java.awt.event.WindowListener; /** - * Java Swing GUI frame that contains canvas for 3D rendering. + * Java Swing GUI frame that contains {@link ViewPanel} with canvas for 3D rendering. */ public class ViewFrame extends JFrame implements WindowListener { @@ -129,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) { }