Class ColladaTextureOrColor

  • All Implemented Interfaces:
    XMLEventParser

    public class ColladaTextureOrColor
    extends ColladaAbstractObject
    Represents a COLLADA texture or color element and provides access to its contents.
    • Constructor Detail

      • ColladaTextureOrColor

        public ColladaTextureOrColor​(java.lang.String ns)
        Construct an instance.
        Parameters:
        ns - the qualifying namespace URI. May be null to indicate no namespace qualification.
    • Method Detail

      • getTexture

        public ColladaTexture getTexture()
        Indicates the value of the texture field.
        Returns:
        The value of the texture field, or null if the field is not set.
      • getColor

        public java.awt.Color getColor()
        Indicates the value of the color field.
        Returns:
        The value of the color field, or null if the field is not set.
      • parseFloatArray

        protected float[] parseFloatArray​(java.lang.String floatArrayString)
        Parse a string of floats into a float[]
        Parameters:
        floatArrayString - String of floats, separated by whitespace.
        Returns:
        Parsed float[].