public class RenderingContext extends Object implements CssContext, Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected SharedContext |
sharedContext |
| Constructor and Description |
|---|
RenderingContext(SharedContext sharedContext)
needs a new instance every run
|
protected final SharedContext sharedContext
public RenderingContext(SharedContext sharedContext)
public boolean isFastRenderer()
public void setFastRenderer(boolean isFast)
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()
getTextRenderer in interface CssContextpublic void setBidiReorderer(BidiReorderer bidi)
public BidiReorderer getBidiReorderer()
public boolean isPaged()
public FontResolver getFontResolver()
public FSFont getFont(FontSpecification font)
getFont in interface CssContextpublic FSCanvas getCanvas()
public Rectangle getFixedRectangle(boolean excludeFloatBottomArea)
excludeFloatBottomArea true so fixed content doesn't sit
above footnotes.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()
getFontContext in interface CssContextpublic 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)
public void setShadowPageNumber(int shadow)
public int getShadowPageNumber()
public void setInPageMargins(boolean inMargin)
public boolean isInPageMargins()
public void setIsInFloatBottom(boolean inFloatBottom)
public boolean isInFloatBottom()
isInFloatBottom in interface CssContextCopyright © 2004–2025. All rights reserved.