Package org.xhtmlrenderer.context
Class ContentFunctionFactory.LeaderFunction
java.lang.Object
org.xhtmlrenderer.context.ContentFunctionFactory.LeaderFunction
- All Implemented Interfaces:
ContentFunction
- Enclosing class:
- ContentFunctionFactory
private static class ContentFunctionFactory.LeaderFunction
extends Object
implements ContentFunction
Partially implements leaders as specified here:
...
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculate
(LayoutContext c, FSFunction function) calculate
(RenderingContext c, FSFunction function, InlineText text) boolean
canHandle
(LayoutContext c, FSFunction function) If a function value can change at render time (i.e.private String
getLeaderValue
(FSFunction function) boolean
isStatic()
Whether the function value can change at render time.
-
Constructor Details
-
LeaderFunction
private LeaderFunction()
-
-
Method Details
-
isStatic
public boolean isStatic()Description copied from interface:ContentFunction
Whether 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:
isStatic
in interfaceContentFunction
-
calculate
- Specified by:
calculate
in interfaceContentFunction
-
getLeaderValue
-
calculate
- Specified by:
calculate
in interfaceContentFunction
-
getLayoutReplacementText
Description copied from interface:ContentFunction
If a function value can change at render time (i.e.ContentFunction.isStatic()
returns false) use this text as an approximation at layout.- Specified by:
getLayoutReplacementText
in interfaceContentFunction
-
canHandle
- Specified by:
canHandle
in interfaceContentFunction
-