Class XmlLightFactory

java.lang.Object
xml.factories.element.XmlFactoryFromElement<LightSource>
xml.factories.element.XmlLightFactory
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 Elements.
  • Constructor Summary

    Constructors
    Constructor Description
    XmlLightFactory()  
  • Method Summary

    Modifier and Type Method Description
    protected Colour colour​(org.w3c.dom.Element element)
    Given an XML element for a light source, it will extract and return the colour of it.

    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

      protected Colour colour​(org.w3c.dom.Element element)
      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.