Package xml.factories.attribute
Class XmlFactorsFactory
java.lang.Object
public class XmlFactorsFactory extends XmlFactoryFromAttribute<Factors>
Constructs
Factorss from XML attributes.-
Constructor Summary
Constructors Constructor Description XmlFactorsFactory() -
Method Summary
Methods inherited from class xml.factories.attribute.XmlFactoryFromAttribute
create, createMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
XmlFactorsFactory
public XmlFactorsFactory()
-
-
Method Details
-
create
Constructs a newFactorsfrom an XML attribute string.- Specified by:
createin classXmlFactoryFromAttribute<Factors>- Parameters:
attribute- The XML attribute, in the form "r g b" where r, g, and b are integers between 0 and 255 representing the red, green, and blue values.- Returns:
- A new colour with the given values.
- Throws:
XmlParserException- if the input string was malformed.
-