|
fop 1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.fop.fo.extensions.svg.SVGElement.PDFUnitContext
This class is the default context for a particular element. Information not available on the element are obtained from the bridge context (such as the viewport or the pixel to millimeter factor.
| Constructor Summary | |
SVGElement.PDFUnitContext(int size,
org.w3c.dom.Element e,
float ptmm)
Create a PDF unit context. |
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SVGElement.PDFUnitContext(int size,
org.w3c.dom.Element e,
float ptmm)
size - the font size.e - the svg elementptmm - the pixel to millimeter factor| Method Detail |
public 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.Context
|
fop 1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||