public class RenderingContext extends Object implements CssContext
| Modifier and Type | Field and Description |
|---|---|
protected SharedContext |
sharedContext |
| Constructor and Description |
|---|
RenderingContext(SharedContext sharedContext)
needs a new instance every run
|
protected SharedContext sharedContext
public RenderingContext(SharedContext sharedContext)
public void setContext(SharedContext sharedContext)
public void setBaseURL(String url)
public UserAgentCallback getUac()
public String getBaseURL()
public float getDPI()
public float getMmPerDot()
getMmPerDot in interface CssContextpublic int getDotsPerPixel()
getDotsPerPixel in interface CssContextpublic float getFontSize2D(FontSpecification font)
getFontSize2D in interface CssContextpublic float getXHeight(FontSpecification parentFont)
getXHeight in interface CssContextpublic TextRenderer getTextRenderer()
public boolean isPaged()
public FontResolver getFontResolver()
public FSFont getFont(FontSpecification font)
getFont in interface CssContextpublic FSCanvas getCanvas()
public Rectangle getFixedRectangle()
public Rectangle getViewportRectangle()
public boolean debugDrawBoxes()
public boolean debugDrawLineBoxes()
public boolean debugDrawInlineBoxes()
public boolean debugDrawFontMetrics()
public boolean isInteractive()
public boolean isPrint()
public OutputDevice getOutputDevice()
public void setOutputDevice(OutputDevice outputDevice)
public FontContext getFontContext()
public void setFontContext(FontContext fontContext)
public void setPage(int pageNo,
PageBox page)
public int getPageCount()
public void setPageCount(int pageCount)
public PageBox getPage()
public int getPageNo()
public StyleReference getCss()
getCss in interface CssContextpublic FSFontMetrics getFSFontMetrics(FSFont font)
getFSFontMetrics in interface CssContextpublic Layer getRootLayer()
public void setRootLayer(Layer rootLayer)
public int getInitialPageNo()
public void setInitialPageNo(int initialPageNo)
Copyright © 2011-2013. All Rights Reserved.