examples.gp.monalisa.gui
Class GeneticDrawingApp
java.lang.Object
org.jdesktop.application.AbstractBean
org.jdesktop.application.Application
org.jdesktop.application.SingleFrameApplication
examples.gp.monalisa.gui.GeneticDrawingApp
public class GeneticDrawingApp
- extends org.jdesktop.application.SingleFrameApplication
This is the main class of the Mona Lisa Painting Problem. It starts the
application. Please notice that this is the Genetic Programming version.
Another implementation of the problem is done with Genetic Algorithms.
Please see package examples.monalisa.
The Mona Lisa Painting Problem is to find a number of polygons that form
a picture which corresponds as good as possible to a given input picture.
Originally, the Mona Lisa from Leonardo da Vinci was chosen as input.
See http://rogeralsing.com/2008/12/07/genetic-programming-evolution-of-mona-lisa/
for the initiator's blog of the problem, Roger Alsing.
- Since:
- 3.4
Nested classes/interfaces inherited from class org.jdesktop.application.Application |
org.jdesktop.application.Application.ExitListener |
Method Summary |
protected void |
configureWindow(java.awt.Window root)
This method is to initialize the specified window by injecting resources. |
static GeneticDrawingApp |
getApplication()
A convenient static getter for the application instance. |
static void |
main(java.lang.String[] args)
Main method launching the application. |
protected void |
startup()
At startup create and show the main frame of the application. |
Methods inherited from class org.jdesktop.application.SingleFrameApplication |
getMainFrame, getMainView, setMainFrame, show, show, show, show, shutdown |
Methods inherited from class org.jdesktop.application.Application |
addExitListener, end, exit, exit, getContext, getExitListeners, getInstance, getInstance, hide, initialize, launch, quit, ready, removeExitListener |
Methods inherited from class org.jdesktop.application.AbstractBean |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeneticDrawingApp
public GeneticDrawingApp()
startup
protected void startup()
- At startup create and show the main frame of the application.
- Specified by:
startup
in class org.jdesktop.application.Application
configureWindow
protected void configureWindow(java.awt.Window root)
- This method is to initialize the specified window by injecting resources.
Windows shown in our application come fully initialized from the GUI
builder, so this additional configuration is not needed.
- Overrides:
configureWindow
in class org.jdesktop.application.SingleFrameApplication
getApplication
public static GeneticDrawingApp getApplication()
- A convenient static getter for the application instance.
- Returns:
- the instance of GeneticDrawingApp
main
public static void main(java.lang.String[] args)
- Main method launching the application.