Class HTMLFontElement

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

    public class HTMLFontElement
    extends HTMLElement
    The JavaScript object HTMLFontElement.
    See Also:
    Serialized Form
    • Constructor Detail

      • HTMLFontElement

        public HTMLFontElement()
        Creates an instance.
    • Method Detail

      • getColor

        public java.lang.String getColor()
        Gets the color property.
        Returns:
        the color property
      • setColor

        public void setColor​(java.lang.String color)
        Sets the color property.
        Parameters:
        color - the color property
      • getFace

        public java.lang.String getFace()
        Gets the typeface family.
        Returns:
        the typeface family
      • setFace

        public void setFace​(java.lang.String face)
        Sets the typeface family.
        Parameters:
        face - the typeface family
      • getSize

        public int getSize()
        Gets the size attribute.
        Returns:
        the size attribute
      • setSize

        public void setSize​(int size)
        Sets the size attribute.
        Parameters:
        size - the size attribute