Class HTMLFontElement

All Implemented Interfaces:
Serializable, 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:
  • Constructor Details

    • HTMLFontElement

      public HTMLFontElement()
      Creates an instance.
  • Method Details

    • jsConstructor

      public void jsConstructor()
      JavaScript constructor.
      Overrides:
      jsConstructor in class HTMLElement
    • getColor

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

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

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

      public void setFace(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