public static class SVGElement.PDFUnitContext extends Object implements org.apache.batik.parser.UnitProcessor.Context
| Constructor and Description |
|---|
PDFUnitContext(int size,
Element e,
float ptmm)
Create a PDF unit context.
|
| Modifier and Type | Method and Description |
|---|---|
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,
Element e,
float ptmm)
size - the font size.e - the svg elementptmm - the pixel to millimeter factorpublic 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 © 2023 Apache Software Foundation. All rights reserved.