org.apache.batik.parser.UnitProcessor.Contextpublic static class SVGElement.PDFUnitContext
extends java.lang.Object
implements org.apache.batik.parser.UnitProcessor.Context
| Constructor | Description |
|---|---|
PDFUnitContext(int size,
org.w3c.dom.Element e,
float ptmm) |
Create a PDF unit context.
|
| Modifier and Type | Method | Description |
|---|---|---|
org.w3c.dom.Element |
getElement() |
Returns the element.
|
float |
getFontSize() |
Returns the font-size value.
|
org.apache.batik.parser.UnitProcessor.Context |
getParentElementContext() |
Returns the context of the parent element of this context.
|
float |
getPixelToMM() |
Returns the pixel to mm factor.
|
float |
getPixelUnitToMillimeter() |
Returns the pixel to mm factor.
|
float |
getViewportHeight() |
Returns the viewport height used to compute units.
|
float |
getViewportWidth() |
Returns the viewport width used to compute units.
|
float |
getXHeight() |
Returns the x-height value.
|
public PDFUnitContext(int size,
org.w3c.dom.Element e,
float ptmm)
size - the font size.e - the svg elementptmm - the pixel to millimeter factorpublic org.w3c.dom.Element getElement()
getElement in interface org.apache.batik.parser.UnitProcessor.Contextpublic org.apache.batik.parser.UnitProcessor.Context getParentElementContext()
public float getPixelToMM()
getPixelToMM in interface org.apache.batik.parser.UnitProcessor.Contextpublic float getPixelUnitToMillimeter()
getPixelUnitToMillimeter in interface org.apache.batik.parser.UnitProcessor.Contextpublic float getFontSize()
getFontSize in interface org.apache.batik.parser.UnitProcessor.Contextpublic float getXHeight()
getXHeight in interface org.apache.batik.parser.UnitProcessor.Contextpublic float getViewportWidth()
getViewportWidth in interface org.apache.batik.parser.UnitProcessor.Contextpublic float getViewportHeight()
getViewportHeight in interface org.apache.batik.parser.UnitProcessor.ContextCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.