public class LayoutContext extends Object implements CssContext
SharedContext.| Modifier and Type | Class and Description |
|---|---|
class |
LayoutContext.CounterContext |
public TextRenderer getTextRenderer()
public StyleReference getCss()
getCss in interface CssContextpublic FSCanvas getCanvas()
public 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 removeBoxId(String id)
public boolean isInteractive()
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 FSFont getFont(FontSpecification font)
getFont in interface CssContextpublic 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, Integer startIndex)
public void resolveCounters(CalculatedStyle style)
public LayoutContext.CounterContext getCounterContext(CalculatedStyle style)
public FSFontMetrics getFSFontMetrics(FSFont font)
getFSFontMetrics in interface CssContextpublic String getPageName()
public void setPageName(String currentPageName)
public int getNoPageBreak()
public void setNoPageBreak(int noPageBreak)
public boolean isPageBreaksAllowed()
public String getPendingPageName()
public void setPendingPageName(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)
Copyright © 2020. All rights reserved.