public final class Platform extends Object
Modifier and Type | Method and Description |
---|---|
static ImageData |
buildImageData(InputStream inputStream) |
static Map<Integer,List<String>> |
getAttributesOrderMap(Document document)
Returns internal Xerces details about all elements in the specified document.
|
static FontUtil |
getFontUtil() |
static int |
getIndex(NamedNodeMap namedNodeMap,
Map<Integer,List<String>> attributesOrderMap,
Node element,
int requiredIndex)
Forward the call to the correct helper.
|
static RenderingBackend |
getRenderingBackend(int imageWidth,
int imageHeight) |
public static int getIndex(NamedNodeMap namedNodeMap, Map<Integer,List<String>> attributesOrderMap, Node element, int requiredIndex)
namedNodeMap
- the node mapattributesOrderMap
- the order mapelement
- the noderequiredIndex
- the required indexpublic static Map<Integer,List<String>> getAttributesOrderMap(Document document)
Map
is the nodeIndex
of an element, and the list
is the array of ordered attributes names.document
- the documentpublic static RenderingBackend getRenderingBackend(int imageWidth, int imageHeight)
imageWidth
- the width of the image this backend is forimageHeight
- the height of the image this backend is forRenderingBackend
. If the AwtRenderingBackend
can't be used a
NoOpRenderingBackend
is used instead.public static FontUtil getFontUtil()
FontUtil
. If the AwtFontUtil
can't be used a
NoOpFontUtil
is used instead.public static ImageData buildImageData(InputStream inputStream) throws IOException
IOException
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.