X-Git-Url: http://www2.svjatoslav.eu/gitweb/?p=sixth-3d-demos.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Fexamples%2Flauncher%2FMenuPanel.java;h=1499174fad0478ddc41477efadc383f271aa525e;hp=30c7ee3c94e8a0139adb1fe2e71b5a2591d2c2cb;hb=708969a9a1413480d4679bec1642ef550fc6dc84;hpb=cea6336f011484356f2d4294d45849f3c398e2e7 diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/examples/launcher/MenuPanel.java b/src/main/java/eu/svjatoslav/sixth/e3d/examples/launcher/MenuPanel.java index 30c7ee3..1499174 100644 --- a/src/main/java/eu/svjatoslav/sixth/e3d/examples/launcher/MenuPanel.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/examples/launcher/MenuPanel.java @@ -1,10 +1,8 @@ /* - * Sixth 3D engine demos. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * Sixth 3D engine demos. Author: Svjatoslav Agejenko. + * This project is released under Creative Commons Zero (CC0) license. * - * 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. - */ +*/ package eu.svjatoslav.sixth.e3d.examples.launcher; @@ -23,9 +21,8 @@ class MenuPanel extends JPanel { sequentialGroup.addComponent(new JLabel("Choose an example to launch:")); sequentialGroup.addComponent(new JButton(new ShowOctree())); sequentialGroup.addComponent(new JButton(new ShowMathGraphs())); - sequentialGroup.addComponent(new JButton(new ShowPointcloud())); + sequentialGroup.addComponent(new JButton(new ShowPointCloud())); sequentialGroup.addComponent(new JButton(new ShowRain())); - sequentialGroup.addComponent(new JButton(new ShowSinusMap())); sequentialGroup.addComponent(new JButton(new ShowTextEditors())); sequentialGroup.addComponent(new JButton(new ShowGameOfLife())); sequentialGroup.addComponent(new JButton(new ShowRandomPolygons())); @@ -42,34 +39,20 @@ class MenuPanel extends JPanel { } } - private class ShowSinusMap extends AbstractAction { - public ShowSinusMap() { - putValue(NAME, "Wireframe sphere and ploygon landscape"); - } - - @Override - public void actionPerformed(final ActionEvent e) { - SphereDemo.main(null); - } - } private class ShowRain extends AbstractAction { - public ShowRain() { + ShowRain() { putValue(NAME, "Raining numbers"); } @Override public void actionPerformed(final ActionEvent e) { - try { - RainingNumbersDemo.main(null); - } catch (final IOException e1) { - e1.printStackTrace(); - } + RainingNumbersDemo.main(null); } } - private class ShowPointcloud extends AbstractAction { - public ShowPointcloud() { + private class ShowPointCloud extends AbstractAction { + ShowPointCloud() { putValue(NAME, "Pointcloud galaxy"); } @@ -80,7 +63,7 @@ class MenuPanel extends JPanel { } private class ShowMathGraphs extends AbstractAction { - public ShowMathGraphs() { + ShowMathGraphs() { putValue(NAME, "Mathematical graphs"); } @@ -95,7 +78,7 @@ class MenuPanel extends JPanel { } private class ShowRandomPolygons extends AbstractAction { - public ShowRandomPolygons() { + ShowRandomPolygons() { putValue(NAME, "Random polygons"); } @@ -106,7 +89,7 @@ class MenuPanel extends JPanel { } private class ShowOctree extends AbstractAction { - public ShowOctree() { + ShowOctree() { putValue(NAME, "Volumetric Octree"); } @@ -117,7 +100,7 @@ class MenuPanel extends JPanel { } private class ShowGameOfLife extends AbstractAction { - public ShowGameOfLife() { + ShowGameOfLife() { putValue(NAME, "Game of Life"); }