com.monkeycoder.monkeyfractal.gui
Class FractalWindow

java.lang.Object
  extended by com.monkeycoder.monkeyfractal.gui.FractalWindow
All Implemented Interfaces:
java.util.Observer

public class FractalWindow
extends java.lang.Object
implements java.util.Observer

This is the main window of MonkeyFractal. This window orchestrates the flow of data between the User, the FractalPlugin, and the RenderPanel. It also allows the dynamic selection of FractalPlugins and RenderPanels.

Originally part of the MonkeyFractal project.

Author:
David Stephens

Constructor Summary
FractalWindow()
          Creates a new FractalWindow.
 
Method Summary
 void hide()
          Hides the MonkeyFractal Main window.
 void setFractalPluginClass(java.lang.String pluginClassName)
          Sets the FractalPlugin that will be used by this FractalWindow.
 void setRenderPanelClass(java.lang.String pluginClassName)
          Sets the RenderPanel that will be used by this FractalWindow.
 void show()
          Displays the MonkeyFractal Main window.
 void update(java.util.Observable inObservable, java.lang.Object inArg)
          Required to implement Observer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FractalWindow

public FractalWindow()
Creates a new FractalWindow. This window is not visible until it is shown.

See Also:
show()
Method Detail

setFractalPluginClass

public void setFractalPluginClass(java.lang.String pluginClassName)
Sets the FractalPlugin that will be used by this FractalWindow.

Parameters:
pluginClassName - The fully qualified name of the FractalPlugin class.

setRenderPanelClass

public void setRenderPanelClass(java.lang.String pluginClassName)
Sets the RenderPanel that will be used by this FractalWindow.

Parameters:
pluginClassName - The fully qualified name of the RenderPanel class.

update

public void update(java.util.Observable inObservable,
                   java.lang.Object inArg)
Required to implement Observer. This method provides the appropriate data connections to properly interact with a FractalThreadManager.

Specified by:
update in interface java.util.Observer
Parameters:
inObservable - Holds the Observable this update came from.
inArg - Expects an UpdateMessage object containing the arguements.
See Also:
UpdateMessage

show

public void show()
Displays the MonkeyFractal Main window.


hide

public void hide()
Hides the MonkeyFractal Main window.