|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.particles.ParticleIO
public class ParticleIO
Utility methods to (de)serialize ConfigureEmitters to and from XML
| Constructor Summary | |
|---|---|
ParticleIO()
|
|
| Method Summary | |
|---|---|
static ParticleSystem |
loadConfiguredSystem(java.io.File ref)
Load a set of configured emitters into a single system |
static ParticleSystem |
loadConfiguredSystem(java.io.File ref,
ConfigurableEmitterFactory factory)
Load a set of configured emitters into a single system |
static ParticleSystem |
loadConfiguredSystem(java.io.InputStream ref)
Load a set of configured emitters into a single system |
static ParticleSystem |
loadConfiguredSystem(java.io.InputStream ref,
Color mask)
Load a set of configured emitters into a single system |
static ParticleSystem |
loadConfiguredSystem(java.io.InputStream ref,
ConfigurableEmitterFactory factory)
Load a set of configured emitters into a single system |
static ParticleSystem |
loadConfiguredSystem(java.io.InputStream ref,
ConfigurableEmitterFactory factory,
ParticleSystem system,
Color mask)
Load a set of configured emitters into a single system |
static ParticleSystem |
loadConfiguredSystem(java.lang.String ref)
Load a set of configured emitters into a single system |
static ParticleSystem |
loadConfiguredSystem(java.lang.String ref,
Color mask)
Load a set of configured emitters into a single system |
static ParticleSystem |
loadConfiguredSystem(java.lang.String ref,
ConfigurableEmitterFactory factory)
Load a set of configured emitters into a single system |
static ConfigurableEmitter |
loadEmitter(java.io.File ref)
Load a single emitter from an XML file |
static ConfigurableEmitter |
loadEmitter(java.io.File ref,
ConfigurableEmitterFactory factory)
Load a single emitter from an XML file |
static ConfigurableEmitter |
loadEmitter(java.io.InputStream ref)
Load a single emitter from an XML file |
static ConfigurableEmitter |
loadEmitter(java.io.InputStream ref,
ConfigurableEmitterFactory factory)
Load a single emitter from an XML file |
static ConfigurableEmitter |
loadEmitter(java.lang.String ref)
Load a single emitter from an XML file |
static ConfigurableEmitter |
loadEmitter(java.lang.String ref,
ConfigurableEmitterFactory factory)
Load a single emitter from an XML file |
static void |
saveConfiguredSystem(java.io.File file,
ParticleSystem system)
Save a particle system with only ConfigurableEmitters in to an XML file |
static void |
saveConfiguredSystem(java.io.OutputStream out,
ParticleSystem system)
Save a particle system with only ConfigurableEmitters in to an XML file |
static void |
saveEmitter(java.io.File file,
ConfigurableEmitter emitter)
Save a single emitter to the XML file |
static void |
saveEmitter(java.io.OutputStream out,
ConfigurableEmitter emitter)
Save a single emitter to the XML file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParticleIO()
| Method Detail |
|---|
public static ParticleSystem loadConfiguredSystem(java.lang.String ref,
Color mask)
throws java.io.IOException
ref - The reference to the XML file (file or classpath)mask -
java.io.IOException - Indicates a failure to find, read or parse the XML file
public static ParticleSystem loadConfiguredSystem(java.lang.String ref)
throws java.io.IOException
ref - The reference to the XML file (file or classpath)
java.io.IOException - Indicates a failure to find, read or parse the XML file
public static ParticleSystem loadConfiguredSystem(java.io.File ref)
throws java.io.IOException
ref - The XML file to read
java.io.IOException - Indicates a failure to find, read or parse the XML file
public static ParticleSystem loadConfiguredSystem(java.io.InputStream ref,
Color mask)
throws java.io.IOException
ref - The stream to read the XML frommask - The mask used to make the particle image transparent
java.io.IOException - Indicates a failure to find, read or parse the XML file
public static ParticleSystem loadConfiguredSystem(java.io.InputStream ref)
throws java.io.IOException
ref - The stream to read the XML from
java.io.IOException - Indicates a failure to find, read or parse the XML file
public static ParticleSystem loadConfiguredSystem(java.lang.String ref,
ConfigurableEmitterFactory factory)
throws java.io.IOException
ref - The reference to the XML file (file or classpath)factory - The factory used to create the emitter than will be poulated
with loaded data.
java.io.IOException - Indicates a failure to find, read or parse the XML file
public static ParticleSystem loadConfiguredSystem(java.io.File ref,
ConfigurableEmitterFactory factory)
throws java.io.IOException
ref - The XML file to readfactory - The factory used to create the emitter than will be poulated
with loaded data.
java.io.IOException - Indicates a failure to find, read or parse the XML file
public static ParticleSystem loadConfiguredSystem(java.io.InputStream ref,
ConfigurableEmitterFactory factory)
throws java.io.IOException
ref - The stream to read the XML fromfactory - The factory used to create the emitter than will be poulated
with loaded data.
java.io.IOException - Indicates a failure to find, read or parse the XML file
public static ParticleSystem loadConfiguredSystem(java.io.InputStream ref,
ConfigurableEmitterFactory factory,
ParticleSystem system,
Color mask)
throws java.io.IOException
ref - The stream to read the XML fromfactory - The factory used to create the emitter than will be poulated
with loaded data.system - The particle system that will be loaded intomask - The mask used to make the image background transparent
java.io.IOException - Indicates a failure to find, read or parse the XML file
public static void saveConfiguredSystem(java.io.File file,
ParticleSystem system)
throws java.io.IOException
file - The file to save tosystem - The system to store
java.io.IOException - Indicates a failure to save or encode the system XML.
public static void saveConfiguredSystem(java.io.OutputStream out,
ParticleSystem system)
throws java.io.IOException
out - The location to which we'll savesystem - The system to store
java.io.IOException - Indicates a failure to save or encode the system XML.
public static ConfigurableEmitter loadEmitter(java.lang.String ref)
throws java.io.IOException
ref - The reference to the emitter XML file to load (classpath or
file)
java.io.IOException - Indicates a failure to find, read or parse the XML file
public static ConfigurableEmitter loadEmitter(java.io.File ref)
throws java.io.IOException
ref - The XML file to read
java.io.IOException - Indicates a failure to find, read or parse the XML file
public static ConfigurableEmitter loadEmitter(java.io.InputStream ref)
throws java.io.IOException
ref - The stream to read the XML from
java.io.IOException - Indicates a failure to find, read or parse the XML file
public static ConfigurableEmitter loadEmitter(java.lang.String ref,
ConfigurableEmitterFactory factory)
throws java.io.IOException
ref - The reference to the emitter XML file to load (classpath or
file)factory - The factory used to create the emitter than will be poulated
with loaded data.
java.io.IOException - Indicates a failure to find, read or parse the XML file
public static ConfigurableEmitter loadEmitter(java.io.File ref,
ConfigurableEmitterFactory factory)
throws java.io.IOException
ref - The XML file to readfactory - The factory used to create the emitter than will be poulated
with loaded data.
java.io.IOException - Indicates a failure to find, read or parse the XML file
public static ConfigurableEmitter loadEmitter(java.io.InputStream ref,
ConfigurableEmitterFactory factory)
throws java.io.IOException
ref - The stream to read the XML fromfactory - The factory used to create the emitter than will be poulated
with loaded data.
java.io.IOException - Indicates a failure to find, read or parse the XML file
public static void saveEmitter(java.io.File file,
ConfigurableEmitter emitter)
throws java.io.IOException
file - The file to save the emitter toemitter - The emitter to store to the XML file
java.io.IOException - Indicates a failure to write or encode the XML
public static void saveEmitter(java.io.OutputStream out,
ConfigurableEmitter emitter)
throws java.io.IOException
out - The location to which we should saveemitter - The emitter to store to the XML file
java.io.IOException - Indicates a failure to write or encode the XML
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||