Package com.openhtmltopdf.context
Class ContentFunctionFactory.LeaderFunction
- java.lang.Object
-
- com.openhtmltopdf.context.ContentFunctionFactory.LeaderFunction
-
- All Implemented Interfaces:
ContentFunction
- Enclosing class:
- ContentFunctionFactory
private static class ContentFunctionFactory.LeaderFunction extends java.lang.Object implements ContentFunction
Partially implements leaders as specified here: http://www.w3.org/TR/2007/WD-css3-gcpm-20070504/#leaders
-
-
Constructor Summary
Constructors Modifier Constructor Description privateLeaderFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringcalculate(LayoutContext c, FSFunction function)java.lang.Stringcalculate(RenderingContext c, FSFunction function, InlineText text)booleancanHandle(LayoutContext c, FSFunction function)java.lang.StringgetLayoutReplacementText()If a function value can change at render time (i.e.booleanisStatic()Whether or not the function value can change at render time.
-
-
-
Method Detail
-
isStatic
public boolean isStatic()
Description copied from interface:ContentFunctionWhether or not the function value can change at render time. If true,ContentFunction.calculate(LayoutContext, FSFunction)will be called. If false,ContentFunction.calculate(RenderingContext, FSFunction, InlineText)will be called.- Specified by:
isStaticin interfaceContentFunction
-
calculate
public java.lang.String calculate(RenderingContext c, FSFunction function, InlineText text)
- Specified by:
calculatein interfaceContentFunction
-
calculate
public java.lang.String calculate(LayoutContext c, FSFunction function)
- Specified by:
calculatein interfaceContentFunction
-
getLayoutReplacementText
public java.lang.String getLayoutReplacementText()
Description copied from interface:ContentFunctionIf a function value can change at render time (i.e.ContentFunction.isStatic()returns false) use this text as an approximation at layout.- Specified by:
getLayoutReplacementTextin interfaceContentFunction
-
canHandle
public boolean canHandle(LayoutContext c, FSFunction function)
- Specified by:
canHandlein interfaceContentFunction
-
-