JGAP

examples.gp.monalisa.gui
Class GeneticDrawingView

java.lang.Object
  extended by org.jdesktop.application.AbstractBean
      extended by org.jdesktop.application.View
          extended by org.jdesktop.application.FrameView
              extended by examples.gp.monalisa.gui.GeneticDrawingView

public class GeneticDrawingView
extends org.jdesktop.application.FrameView

The application's main frame.

Since:
3.4

Constructor Summary
GeneticDrawingView(org.jdesktop.application.SingleFrameApplication app)
           
 
Method Summary
 void chooseImage()
           
 JFreeChart getChart()
           
 FittestDrawingView getFittestDrawingView()
           
 java.awt.image.BufferedImage getTargetImage()
           
 boolean isEvolutionActivated()
           
 boolean isSaveToFile()
           
 javax.swing.ImageIcon scaleToImageLabel(java.awt.Image image)
          Scale an image to fit the size of the targetImageLabel.
 void showAboutBox()
           
 void startEvolution()
           
 
Methods inherited from class org.jdesktop.application.FrameView
getFrame, getRootPane, setFrame
 
Methods inherited from class org.jdesktop.application.View
getApplication, getComponent, getContext, getMenuBar, getResourceMap, getStatusBar, getToolBar, getToolBars, setComponent, setMenuBar, setStatusBar, setToolBar, setToolBars
 
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
 

Constructor Detail

GeneticDrawingView

public GeneticDrawingView(org.jdesktop.application.SingleFrameApplication app)
Method Detail

showAboutBox

@Action
public void showAboutBox()

chooseImage

@Action
public void chooseImage()
                 throws java.io.IOException
Throws:
java.io.IOException

startEvolution

@Action
public void startEvolution()

scaleToImageLabel

public javax.swing.ImageIcon scaleToImageLabel(java.awt.Image image)
Scale an image to fit the size of the targetImageLabel.


getTargetImage

public java.awt.image.BufferedImage getTargetImage()

isEvolutionActivated

public boolean isEvolutionActivated()

isSaveToFile

public boolean isSaveToFile()

getFittestDrawingView

public FittestDrawingView getFittestDrawingView()

getChart

public JFreeChart getChart()

JGAP