Package xml.factories.element
Class XmlLightFactory
java.lang.Object
- Direct Known Subclasses:
XmlDirectionalLightFactory
,XmlNarrowSpotlightFactory
,XmlPointLightFactory
,XmlSpotlightFactory
public abstract class XmlLightFactory extends XmlFactoryFromElement<LightSource>
This abstract class represents a class which is able to create
LightSource
instances from XML
Element
s.-
Constructor Summary
Constructors Constructor Description XmlLightFactory()
-
Method Summary
Methods inherited from class xml.factories.element.XmlFactoryFromElement
create, createHelper
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
XmlLightFactory
public XmlLightFactory()
-
-
Method Details
-
colour
Given an XML element for a light source, it will extract and return the colour of it.- Parameters:
element
- The XML element representing the light source.- Returns:
- The colour of the light source according to the XML.
-