public static class SVGElement.PDFUnitContext
extends java.lang.Object
implements org.apache.batik.parser.UnitProcessor.Context
Constructor and Description |
---|
PDFUnitContext(int size,
org.w3c.dom.Element e,
float ptmm)
Create a PDF unit context.
|
Modifier and Type | Method and 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.Context
public org.apache.batik.parser.UnitProcessor.Context getParentElementContext()
public float getPixelToMM()
getPixelToMM
in interface org.apache.batik.parser.UnitProcessor.Context
public float getPixelUnitToMillimeter()
getPixelUnitToMillimeter
in interface org.apache.batik.parser.UnitProcessor.Context
public float getFontSize()
getFontSize
in interface org.apache.batik.parser.UnitProcessor.Context
public float getXHeight()
getXHeight
in interface org.apache.batik.parser.UnitProcessor.Context
public float getViewportWidth()
getViewportWidth
in interface org.apache.batik.parser.UnitProcessor.Context
public float getViewportHeight()
getViewportHeight
in interface org.apache.batik.parser.UnitProcessor.Context
Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.