Class FontElement


  • public final class FontElement
    extends nu.xom.Element
    Author:
    Group 3
    • Constructor Summary

      Constructors 
      Constructor Description
      FontElement​(java.lang.String name)  
      FontElement​(java.lang.String name, java.lang.String uri)  
      FontElement​(java.lang.String name, java.lang.String uri, StyledTextSeg textSeg)  
      FontElement​(nu.xom.Element element)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Optional<javafx.scene.paint.Color> convCol​(java.lang.String colString)
      Get font colour.
      FontProps getProperties()
      Get the element's font styling properties.
      void setProperties​(java.util.HashMap<java.lang.String,​java.lang.Object> props)
      Set this object's properties.
      • Methods inherited from class nu.xom.Element

        addAttribute, addNamespaceDeclaration, appendChild, copy, getAttribute, getAttribute, getAttribute, getAttributeCount, getAttributeValue, getAttributeValue, getBaseURI, getChildElements, getChildElements, getChildElements, getFirstChildElement, getFirstChildElement, getLocalName, getNamespaceDeclarationCount, getNamespacePrefix, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getQualifiedName, getValue, insertChild, removeAttribute, removeChildren, removeNamespaceDeclaration, setBaseURI, setLocalName, setNamespacePrefix, setNamespaceURI, shallowCopy, toString, toXML
      • Methods inherited from class nu.xom.ParentNode

        appendChild, getChild, getChildCount, indexOf, insertChild, removeChild, removeChild, replaceChild
      • Methods inherited from class nu.xom.Node

        detach, equals, getDocument, getParent, hashCode, query, query
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FontElement

        public FontElement​(java.lang.String name)
      • FontElement

        public FontElement​(java.lang.String name,
                           java.lang.String uri)
      • FontElement

        public FontElement​(nu.xom.Element element)
      • FontElement

        public FontElement​(java.lang.String name,
                           java.lang.String uri,
                           StyledTextSeg textSeg)
    • Method Detail

      • getProperties

        public FontProps getProperties()
        Get the element's font styling properties.
        Returns:
        FontProps properties.
      • setProperties

        public void setProperties​(java.util.HashMap<java.lang.String,​java.lang.Object> props)
        Set this object's properties.
        Parameters:
        props - Properties.
      • convCol

        public static java.util.Optional<javafx.scene.paint.Color> convCol​(java.lang.String colString)
        Get font colour.
        Parameters:
        colString - Colour string to convert.
        Returns:
        Optional font colour.