Uses of Class
com.openhtmltopdf.css.style.CalculatedStyle
Packages that use CalculatedStyle
Package
Description
-
Uses of CalculatedStyle in com.openhtmltopdf.context
Methods in com.openhtmltopdf.context that return CalculatedStyleModifier and TypeMethodDescriptionStyleReference.getRootElementStyle()
Gets the style of the root element, should be html tag. -
Uses of CalculatedStyle in com.openhtmltopdf.css.newmatch
Methods in com.openhtmltopdf.css.newmatch that return CalculatedStyle -
Uses of CalculatedStyle in com.openhtmltopdf.css.sheet
Fields in com.openhtmltopdf.css.sheet declared as CalculatedStyleMethods in com.openhtmltopdf.css.sheet that return CalculatedStyle -
Uses of CalculatedStyle in com.openhtmltopdf.css.style
Subclasses of CalculatedStyle in com.openhtmltopdf.css.styleModifier and TypeClassDescriptionclass
Represents the outer box to be used for evaluating positioning of internal boxesFields in com.openhtmltopdf.css.style declared as CalculatedStyleModifier and TypeFieldDescriptionprivate CalculatedStyle
CalculatedStyle._parent
The parent-style we inherit fromFields in com.openhtmltopdf.css.style with type parameters of type CalculatedStyleModifier and TypeFieldDescriptionprivate final Map
<String, CalculatedStyle> CalculatedStyle._childCache
Cache child styles of this style that have the same cascaded propertiesMethods in com.openhtmltopdf.css.style that return CalculatedStyleModifier and TypeMethodDescriptionCalculatedStyle.createAnonymousStyle
(IdentValue display) This method derives a style for an anonymous child box with an overriden value for the display property.CalculatedStyle.deriveStyle
(CascadedStyle matched) Derives a child style from this style.CalculatedStyle.getParent()
Returns the parent style.CalculatedStyle.overrideStyle
(IdentValue display) Override this style with specified styles.CalculatedStyle.overrideStyle
(CascadedStyle matched) Override this style with specified styles.Methods in com.openhtmltopdf.css.style with parameters of type CalculatedStyleModifier and TypeMethodDescriptionprivate static BorderPropertySet
CalculatedStyle.getBorderProperty
(CalculatedStyle style, CssContext ctx) private static RectPropertySet
CalculatedStyle.getMarginProperty
(CalculatedStyle style, CSSName shorthandProp, CSSName.CSSSideProperties sides, float cbWidth, CssContext ctx, boolean useCache) private static RectPropertySet
CalculatedStyle.getPaddingProperty
(CalculatedStyle style, CSSName shorthandProp, CSSName.CSSSideProperties sides, float cbWidth, CssContext ctx, boolean useCache) private static RectPropertySet
CalculatedStyle.newRectInstance
(CalculatedStyle style, CSSName shorthand, CSSName.CSSSideProperties sides, float cbWidth, CssContext ctx) private void
BorderRadiusCorner.setLeft
(CSSName fromVal, CalculatedStyle style, PropertyValue value, CssContext ctx) private void
BorderRadiusCorner.setRight
(CSSName fromVal, CalculatedStyle style, PropertyValue value, CssContext ctx) Constructors in com.openhtmltopdf.css.style with parameters of type CalculatedStyleModifierConstructorDescriptionBorderRadiusCorner
(CSSName fromVal, CalculatedStyle style, CssContext ctx) private
CalculatedStyle
(CalculatedStyle parent, CascadedStyle matched) Constructor for the CalculatedStyle object. -
Uses of CalculatedStyle in com.openhtmltopdf.css.style.derived
Fields in com.openhtmltopdf.css.style.derived declared as CalculatedStyleMethods in com.openhtmltopdf.css.style.derived that return CalculatedStyleMethods in com.openhtmltopdf.css.style.derived with parameters of type CalculatedStyleModifier and TypeMethodDescriptionstatic float
LengthValue.calcFloatProportionalValue
(CalculatedStyle style, CSSName cssName, String stringValue, float relVal, short primitiveType, float baseValue, CssContext ctx) private List
<FSLinearGradient.StopPoint> FSLinearGradient.calculateStopPoints
(List<PropertyValue> params, CalculatedStyle style, CssContext ctx, float boxWidth, int stopsStartIndex) private float
FSLinearGradient.get100PercentDefaultStopLength
(CalculatedStyle style, CssContext ctx, float boxWidth) static FSDerivedValue
DerivedValueFactory.newDerivedValue
(CalculatedStyle style, CSSName cssName, PropertyValue value) Derived value factory.static BorderPropertySet
BorderPropertySet.newInstance
(CalculatedStyle style, CssContext ctx) static RectPropertySet
RectPropertySet.newInstance
(CalculatedStyle style, CSSName shortHandProperty, CSSName.CSSSideProperties sideProperties, float cbWidth, CssContext ctx) Constructors in com.openhtmltopdf.css.style.derived with parameters of type CalculatedStyleModifierConstructorDescriptionprivate
BorderPropertySet
(CalculatedStyle style, CssContext ctx) FSLinearGradient
(CalculatedStyle style, FSFunction function, int boxWidth, int boxHeight, CssContext ctx) LengthValue
(CalculatedStyle style, CSSName name, PropertyValue value) -
Uses of CalculatedStyle in com.openhtmltopdf.extend
Methods in com.openhtmltopdf.extend with parameters of type CalculatedStyleModifier and TypeMethodDescriptionvoid
OutputDevice.paintBackground
(RenderingContext c, CalculatedStyle style, Rectangle bounds, Rectangle bgImageContainer, BorderPropertySet border) void
OutputDevice.paintBorder
(RenderingContext c, CalculatedStyle style, Rectangle edge, int sides) -
Uses of CalculatedStyle in com.openhtmltopdf.layout
Fields in com.openhtmltopdf.layout declared as CalculatedStyleModifier and TypeFieldDescription(package private) final CalculatedStyle
BoxBuilder.CreateChildrenContext.parentStyle
Fields in com.openhtmltopdf.layout with type parameters of type CalculatedStyleModifier and TypeFieldDescriptionfinal Map
<CalculatedStyle, CounterContext> LayoutContext._counterContextMap
private final Map
<Element, CalculatedStyle> SharedContext.styleMap
Methods in com.openhtmltopdf.layout that return CalculatedStyleModifier and TypeMethodDescriptionStyleTracker.deriveAll
(CalculatedStyle start) Gets the resolved style for an element.Styleable.getStyle()
Methods in com.openhtmltopdf.layout with parameters of type CalculatedStyleModifier and TypeMethodDescriptionprivate static void
BoxBuilder.addColumnOrColumnGroup
(LayoutContext c, TableBox table, Element e, CalculatedStyle style) static void
Breaker.breakFirstLetter
(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style) static Breaker.BreakTextResult
Breaker.breakText
(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style, boolean tryToBreakAnywhere, int lineWidth, boolean forceOutput) private static BlockBox
BoxBuilder.createBlockBox
(CalculatedStyle style, BoxBuilder.ChildBoxInfo info, boolean generated) private static Styleable
BoxBuilder.createChildBlockBox
(LayoutContext c, BoxBuilder.ChildBoxInfo info, Element element, CalculatedStyle style) private static void
BoxBuilder.createColumnContainer
(LayoutContext c, Styleable child, Element element, CalculatedStyle style) private static BlockBox
BoxBuilder.createFootnoteBody
(LayoutContext c, Element element, CalculatedStyle style) Creates the footnote body to put at the bottom of the page inside a page's footnote area.BoxBuilder.createGeneratedContent
(LayoutContext c, Element element, String peName, CalculatedStyle style, PropertyValue property, BoxBuilder.ChildBoxInfo info) Creates generated content boxes for pseudo elements such as::before
.BoxBuilder.createGeneratedContentList
(LayoutContext c, Element element, List<PropertyValue> values, String peName, CalculatedStyle style, int mode, BoxBuilder.ChildBoxInfo info, List<Styleable> result) BoxBuilder.createGeneratedMarginBoxContent
(LayoutContext c, Element element, PropertyValue property, CalculatedStyle style, BoxBuilder.ChildBoxInfo info) private static InlineBox
BoxBuilder.createInlineBox
(String text, Element parent, CalculatedStyle parentStyle, Text node) StyleTracker.deriveAll
(CalculatedStyle start) private static InlineBox
BoxBuilder.doBidi
(LayoutContext c, Text textNode, Element parent, CalculatedStyle parentStyle, InlineBox previousIB, List<Styleable> children) Attempts to divide a Text node further into directional text runs, either LTR or RTL.private static LineBreakContext.LineBreakResult
Breaker.doBreakText
(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style, boolean tryToBreakAnywhere) Breaker.doBreakText
(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style, Breaker.TextBreakerSupplier lineBreaker) private static InlineBox
BoxBuilder.doFakeBidi
(LayoutContext c, Text textNode, Element parent, CalculatedStyle parentStyle, InlineBox previousIB, List<Styleable> children) private static void
InlineBoxing.endInlineBox
(LayoutContext c, InlineBoxing.SpaceVariables space, InlineBoxing.StateVariables current, InlineBoxing.StateVariables previous, List<InlineBox> openInlineBoxes, List<Layer> pendingInlineLayers, InlineBox inlineBox, CalculatedStyle style) LayoutContext.getCounterContext
(CalculatedStyle style) private static boolean
InlineBoxing.hasTrimmableLeadingSpace
(LineBox line, CalculatedStyle style, LineBreakContext lbContext, boolean zeroWidthInlineBlock) private static void
BoxBuilder.insertGeneratedContent
(LayoutContext c, Element element, CalculatedStyle parentStyle, String peName, List<Styleable> children, BoxBuilder.ChildBoxInfo info) private static boolean
BoxBuilder.isValidFootnote
(LayoutContext c, Element element, CalculatedStyle style) private static boolean
BoxBuilder.isValidFootnotePseudo
(CalculatedStyle style) private static InlineText
InlineBoxing.layoutText
(LayoutContext c, CalculatedStyle style, int remainingWidth, LineBreakContext lbContext, boolean needFirstLetter, byte textDirection, boolean tryToBreakAnywhere, int lineWidth, boolean forceOutput) private static void
BoxBuilder.logInvalidFootnotePseudo
(String peName, CalculatedStyle style) private static void
BoxBuilder.logInvalidFootnoteStyle
(LayoutContext c, Element element, CalculatedStyle style) private static CounterFunction
BoxBuilder.makeCounterFunction
(FSFunction function, LayoutContext c, CalculatedStyle style) void
LayoutContext.resolveCounters
(CalculatedStyle style) void
LayoutContext.resolveCounters
(CalculatedStyle style, Integer startIndex) private static void
BoxBuilder.resolveElementCounters
(LayoutContext c, Node working, Element element, CalculatedStyle style) void
Styleable.setStyle
(CalculatedStyle style) private static void
InlineBoxing.startInlineBox
(LayoutContext c, InlineBoxing.SpaceVariables space, InlineBoxing.StateVariables current, InlineBoxing.StateVariables previous, List<InlineBox> openInlineBoxes, Map<InlineBox, InlineLayoutBox> iBMap, InlineBox inlineBox, CalculatedStyle style) static String
TextUtil.transformFirstLetterText
(String text, CalculatedStyle style) static String
TextUtil.transformText
(String text, CalculatedStyle style) BoxBuilder.wrapGeneratedContent
(LayoutContext c, Element element, String peName, CalculatedStyle style, BoxBuilder.ChildBoxInfo info, BoxBuilder.ChildBoxInfo childInfo, List<Styleable> inlineBoxes) Constructors in com.openhtmltopdf.layout with parameters of type CalculatedStyleModifierConstructorDescription(package private)
CreateChildrenContext
(boolean needStartText, boolean needEndText, CalculatedStyle parentStyle, boolean inline) -
Uses of CalculatedStyle in com.openhtmltopdf.layout.counter
Methods in com.openhtmltopdf.layout.counter with parameters of type CalculatedStyleModifier and TypeMethodDescriptionvoid
RootCounterContext.incrementCounterValue
(CalculatedStyle style) void
RootCounterContext.resetCounterValue
(CalculatedStyle style) Constructors in com.openhtmltopdf.layout.counter with parameters of type CalculatedStyleModifierConstructorDescriptionCounterContext
(LayoutContext ctx, CalculatedStyle style, Integer startIndex) A CounterContext should really be reflected in the element hierarchy, but CalculatedStyles reflect the ancestor hierarchy just as well and also handles pseudo-elements seamlessly. -
Uses of CalculatedStyle in com.openhtmltopdf.newtable
Fields in com.openhtmltopdf.newtable declared as CalculatedStyleMethods in com.openhtmltopdf.newtable that return CalculatedStyleMethods in com.openhtmltopdf.newtable with parameters of type CalculatedStyleModifier and TypeMethodDescriptionvoid
TableBox.setStyle
(CalculatedStyle style) void
TableColumn.setStyle
(CalculatedStyle style) Constructors in com.openhtmltopdf.newtable with parameters of type CalculatedStyle -
Uses of CalculatedStyle in com.openhtmltopdf.render
Fields in com.openhtmltopdf.render declared as CalculatedStyleModifier and TypeFieldDescriptionprivate CalculatedStyle
Box._style
private CalculatedStyle
InlineBox._style
private CalculatedStyle
PageBox._style
Methods in com.openhtmltopdf.render that return CalculatedStyleModifier and TypeMethodDescriptionfinal CalculatedStyle
Box.getStyle()
InlineBox.getStyle()
PageBox.getStyle()
Methods in com.openhtmltopdf.render with parameters of type CalculatedStyleModifier and TypeMethodDescriptionprivate int
AbstractOutputDevice.calcBackgroundSizeLength
(CssContext c, CalculatedStyle style, PropertyValue value, float boundsDim) private Dimension
AbstractOutputDevice.calcInitialXYOff
(CalculatedStyle.BackgroundContainer bgImage, Rectangle bgImageContainer, BorderPropertySet border, CalculatedStyle style, RenderingContext c) private int
AbstractOutputDevice.calcOffset
(CssContext c, CalculatedStyle style, PropertyValue value, float boundsDim, float imageDim) protected boolean
BlockBox.checkPushLayer
(LayoutContext c, CalculatedStyle style) private void
AbstractOutputDevice.drawBgImage
(RenderingContext c, CalculatedStyle style, Rectangle backgroundBounds, Rectangle bgImageContainer, BorderPropertySet border, FSImage backgroundImage, CalculatedStyle.BackgroundContainer bgImage) private static void
ListItemPainter.drawGlyph
(RenderingContext c, BlockBox box, CalculatedStyle style, IdentValue listStyle) void
AbstractOutputDevice.paintBackground
(RenderingContext c, CalculatedStyle style, Rectangle bounds, Rectangle bgImageContainer, BorderPropertySet border) private void
AbstractOutputDevice.paintBackground0
(RenderingContext c, CalculatedStyle style, Rectangle backgroundBounds, Rectangle bgImageContainer, BorderPropertySet border) void
AbstractOutputDevice.paintBorder
(RenderingContext c, CalculatedStyle style, Rectangle edge, int sides) private void
AbstractOutputDevice.scaleBackgroundImage
(CssContext c, CalculatedStyle style, Rectangle backgroundContainer, FSImage image, CalculatedStyle.BackgroundContainer bgImage) void
Box.setStyle
(CalculatedStyle style) void
InlineBox.setStyle
(CalculatedStyle style) void
PageBox.setStyle
(CalculatedStyle style) void
BlockBox.styleText
(LayoutContext c, CalculatedStyle style) Constructors in com.openhtmltopdf.render with parameters of type CalculatedStyleModifierConstructorDescriptionInlineLayoutBox
(LayoutContext c, Element elem, CalculatedStyle style, int cbWidth)