pl.webnet.JaTrac
Interface XmlSettable

All Known Implementing Classes:
AreaLight, Camera, IntegraPlugin, Level, Light, LineLight, Mapping, NaiveTester, PointLight, Primitive, Rectangle, Scene, Screen, SpectrumRGB, Sphere, SphereFlake, SphericalMapping, Surface, Texture, Triangle, UniformGrid

interface XmlSettable

Classes implementing this interface can have their attributes set directly in XML config file.


Method Summary
 java.lang.String[] getAttachArray()
          Get object's attach array.
 java.lang.String[] getParamArray()
          Get object's parameter array.
 java.lang.Object initialize()
          Initialize object's internal state after setting all params from XML file.
 

Method Detail

getParamArray

public java.lang.String[] getParamArray()
Get object's parameter array. The array maps XML element names to variable names and, if setting one variable is not enough, lists names of functions to call.

Returns:
object's parameter array.

getAttachArray

public java.lang.String[] getAttachArray()
Get object's attach array. The array specifies what functions to call to attach children nodes to this object.

Returns:
object's attach array.

initialize

public java.lang.Object initialize()
Initialize object's internal state after setting all params from XML file. Called after element's end tag is encountered in XML file.