public class LayoutContext extends java.lang.Object implements CssContext
SharedContext
.Modifier and Type | Class and Description |
---|---|
class |
LayoutContext.CounterContext |
public TextRenderer getTextRenderer()
public StyleReference getCss()
getCss
in interface CssContext
public RootPanel getCanvas()
public java.awt.Rectangle getFixedRectangle()
public NamespaceHandler getNamespaceHandler()
public void reInit(boolean keepLayers)
public LayoutState captureLayoutState()
public void restoreLayoutState(LayoutState layoutState)
public LayoutState copyStateForRelayout()
public void restoreStateForRelayout(LayoutState layoutState)
public BlockFormattingContext getBlockFormattingContext()
public void pushBFC(BlockFormattingContext bfc)
public void popBFC()
public void pushLayer(Box master)
public void pushLayer(Layer layer)
public void popLayer()
public Layer getLayer()
public Layer getRootLayer()
public void translate(int x, int y)
public void addBoxId(java.lang.String id, Box box)
public void removeBoxId(java.lang.String id)
public boolean isInteractive()
public float getMmPerDot()
getMmPerDot
in interface CssContext
public int getDotsPerPixel()
getDotsPerPixel
in interface CssContext
public float getFontSize2D(FontSpecification font)
getFontSize2D
in interface CssContext
public float getXHeight(FontSpecification parentFont)
getXHeight
in interface CssContext
public FSFont getFont(FontSpecification font)
getFont
in interface CssContext
public UserAgentCallback getUac()
public boolean isPrint()
public StyleTracker getFirstLinesTracker()
public StyleTracker getFirstLettersTracker()
public MarkerData getCurrentMarkerData()
public void setCurrentMarkerData(MarkerData currentMarkerData)
public ReplacedElementFactory getReplacedElementFactory()
public FontContext getFontContext()
public void setFontContext(FontContext fontContext)
public ContentFunctionFactory getContentFunctionFactory()
public SharedContext getSharedContext()
public int getExtraSpaceBottom()
public void setExtraSpaceBottom(int extraSpaceBottom)
public int getExtraSpaceTop()
public void setExtraSpaceTop(int extraSpaceTop)
public void resolveCounters(CalculatedStyle style)
public LayoutContext.CounterContext getCounterContext(CalculatedStyle style)
public FSFontMetrics getFSFontMetrics(FSFont font)
getFSFontMetrics
in interface CssContext
public java.lang.String getPageName()
public void setPageName(java.lang.String currentPageName)
public int getNoPageBreak()
public void setNoPageBreak(int noPageBreak)
public boolean isPageBreaksAllowed()
public java.lang.String getPendingPageName()
public void setPendingPageName(java.lang.String pendingPageName)
public Layer getRootDocumentLayer()
public void setRootDocumentLayer(Layer rootDocumentLayer)
public PageBox getPage()
public void setPage(PageBox page)
public boolean isMayCheckKeepTogether()
public void setMayCheckKeepTogether(boolean mayKeepTogether)
public BreakAtLineContext getBreakAtLineContext()
public void setBreakAtLineContext(BreakAtLineContext breakAtLineContext)