Utilities
Class PNGFactory

java.lang.Object
  extended by Utilities.PNGFactory
All Implemented Interfaces:
Factory

public class PNGFactory
extends java.lang.Object
implements Factory

Author:
David

Constructor Summary
PNGFactory(Landscape land)
          Creates a new instance of PNGfactory
 
Method Summary
 javax.swing.JDialog getDialog(javax.swing.JFrame owner)
           
 int getDimensions()
           
 java.lang.String getName()
           
 void load(java.io.ObjectInputStream file)
           
static void main(java.lang.String[] args)
           
 long make(Progress progress, boolean dummyParameter)
           
 void save(java.io.ObjectOutputStream file)
           
 void setEngine(NoiseEngine newEngine)
           
 void setFile(java.lang.String fileName)
           
 void setFile(java.lang.String fileName, java.lang.String type)
           
 void setLandscape(Landscape newLandscape)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PNGFactory

public PNGFactory(Landscape land)
Creates a new instance of PNGfactory

Method Detail

main

public static void main(java.lang.String[] args)

make

public long make(Progress progress,
                 boolean dummyParameter)
Specified by:
make in interface Factory

getDialog

public javax.swing.JDialog getDialog(javax.swing.JFrame owner)
Specified by:
getDialog in interface Factory

getName

public java.lang.String getName()
Specified by:
getName in interface Factory

setLandscape

public void setLandscape(Landscape newLandscape)
Specified by:
setLandscape in interface Factory

setEngine

public void setEngine(NoiseEngine newEngine)
Specified by:
setEngine in interface Factory

setFile

public void setFile(java.lang.String fileName)
Specified by:
setFile in interface Factory

setFile

public void setFile(java.lang.String fileName,
                    java.lang.String type)
Specified by:
setFile in interface Factory

getDimensions

public int getDimensions()
Specified by:
getDimensions in interface Factory

save

public void save(java.io.ObjectOutputStream file)
          throws java.io.IOException
Specified by:
save in interface Factory
Throws:
java.io.IOException

load

public void load(java.io.ObjectInputStream file)
          throws java.lang.ClassNotFoundException,
                 java.io.IOException
Specified by:
load in interface Factory
Throws:
java.lang.ClassNotFoundException
java.io.IOException