public class IFUtil
extends java.lang.Object
Constructor and Description |
---|
IFUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getEffectiveMIMEType(IFDocumentHandler documentHandler)
Returns the MIME type of the output format that the given document handler is supposed to
handle.
|
static void |
setupFonts(IFDocumentHandler documentHandler)
Sets up the fonts on a document handler.
|
static void |
setupFonts(IFDocumentHandler documentHandler,
FontInfo fontInfo)
Sets up the fonts on a document handler.
|
static java.lang.String |
toString(java.awt.geom.AffineTransform transform)
Converts an
AffineTransform instance to an SVG style transform method. |
static java.lang.String |
toString(java.awt.geom.AffineTransform[] transforms)
Converts an
AffineTransform array to an SVG style transform method sequence. |
static java.lang.StringBuffer |
toString(java.awt.geom.AffineTransform[] transforms,
java.lang.StringBuffer sb)
Converts an
AffineTransform array to an SVG style transform method sequence. |
static java.lang.StringBuffer |
toString(java.awt.geom.AffineTransform transform,
java.lang.StringBuffer sb)
Converts an
AffineTransform instance to an SVG style transform method. |
static java.lang.String |
toString(int[] coordinates)
Converts an array of integer coordinates into a space-separated string.
|
static java.lang.String |
toString(java.awt.Rectangle rect)
Converts a rectangle into a space-separated string.
|
public static java.lang.StringBuffer toString(java.awt.geom.AffineTransform transform, java.lang.StringBuffer sb)
AffineTransform
instance to an SVG style transform method.transform
- the transformation matrixsb
- the StringBuffer to write the transform method topublic static java.lang.StringBuffer toString(java.awt.geom.AffineTransform[] transforms, java.lang.StringBuffer sb)
AffineTransform
array to an SVG style transform method sequence.transforms
- the transformation matrix arraysb
- the StringBuffer to write the transform method sequence topublic static java.lang.String toString(java.awt.geom.AffineTransform[] transforms)
AffineTransform
array to an SVG style transform method sequence.transforms
- the transformation matrix arraypublic static java.lang.String toString(java.awt.geom.AffineTransform transform)
AffineTransform
instance to an SVG style transform method.transform
- the transformation matrixpublic static java.lang.String toString(int[] coordinates)
coordinates
- the coordinatespublic static java.lang.String toString(java.awt.Rectangle rect)
rect
- the rectanglepublic static void setupFonts(IFDocumentHandler documentHandler, FontInfo fontInfo) throws FOPException
FopFactory
will be used. Otherwise,
a default font configuration will be set up.documentHandler
- the document handlerfontInfo
- the font info object (may be null)FOPException
- if an error occurs while setting up the fontspublic static void setupFonts(IFDocumentHandler documentHandler) throws FOPException
FopFactory
will be used. Otherwise,
a default font configuration will be set up.documentHandler
- the document handlerFOPException
- if an error occurs while setting up the fontspublic static java.lang.String getEffectiveMIMEType(IFDocumentHandler documentHandler)
IFSerializer
it returns the MIME type of the
document handler it is mimicking.documentHandler
- the document handlerCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.