Utilities
Class TerragenFactory
java.lang.Object
Utilities.TerragenFactory
- All Implemented Interfaces:
- Factory
public class TerragenFactory
- extends java.lang.Object
- implements Factory
- Author:
- vargol
To change the template for this generated type comment go to
Window - Preferences - Java - Code Generation - Code and Comments
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TerragenFactory
public TerragenFactory()
make
public long make(Progress progress,
boolean dummyParameter)
- Specified by:
make in interface Factory
setLandscape
public void setLandscape(Landscape newLandscape)
- Specified by:
setLandscape in interface Factory
setEngine
public void setEngine(NoiseEngine newNoise)
- 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
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
getDimensions
public int getDimensions()
- Specified by:
getDimensions in interface Factory
writeHeaders
public void writeHeaders(java.io.DataOutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
writeEnd
public void writeEnd(java.io.DataOutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
floatToIntelBytes
public static byte[] floatToIntelBytes(float value)
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