Class Platform


  • public final class Platform
    extends java.lang.Object
    Singleton to handle JDK specific stuff. This is required to support at least the differences with android.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Platform()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ImageData buildImageData​(java.io.InputStream inputStream)  
      static java.util.Map<java.lang.Integer,​java.util.List<java.lang.String>> getAttributesOrderMap​(org.w3c.dom.Document document)
      Returns internal Xerces details about all elements in the specified document.
      static FontUtil getFontUtil()  
      static int getIndex​(org.w3c.dom.NamedNodeMap namedNodeMap, java.util.Map<java.lang.Integer,​java.util.List<java.lang.String>> attributesOrderMap, org.w3c.dom.Node element, int requiredIndex)
      Forward the call to the correct helper.
      static RenderingBackend getRenderingBackend​(int imageWidth, int imageHeight)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Platform

        private Platform()
    • Method Detail

      • getIndex

        public static int getIndex​(org.w3c.dom.NamedNodeMap namedNodeMap,
                                   java.util.Map<java.lang.Integer,​java.util.List<java.lang.String>> attributesOrderMap,
                                   org.w3c.dom.Node element,
                                   int requiredIndex)
        Forward the call to the correct helper.
        Parameters:
        namedNodeMap - the node map
        attributesOrderMap - the order map
        element - the node
        requiredIndex - the required index
        Returns:
        the index or requiredIndex
      • getAttributesOrderMap

        public static java.util.Map<java.lang.Integer,​java.util.List<java.lang.String>> getAttributesOrderMap​(org.w3c.dom.Document document)
        Returns internal Xerces details about all elements in the specified document. The id of the returned Map is the nodeIndex of an element, and the list is the array of ordered attributes names.
        Parameters:
        document - the document
        Returns:
        the map of an element index with its ordered attribute names
      • buildImageData

        public static ImageData buildImageData​(java.io.InputStream inputStream)
                                        throws java.io.IOException
        Throws:
        java.io.IOException