Uses of Class
com.openhtmltopdf.css.style.CalculatedStyle
-
-
Uses of CalculatedStyle in com.openhtmltopdf.context
Methods in com.openhtmltopdf.context that return CalculatedStyle Modifier and Type Method Description CalculatedStyle
StyleReference. 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 Modifier and Type Method Description CalculatedStyle
PageInfo. getFootnoteAreaRawMaxHeightStyle()
-
Uses of CalculatedStyle in com.openhtmltopdf.css.sheet
Fields in com.openhtmltopdf.css.sheet declared as CalculatedStyle Modifier and Type Field Description private CalculatedStyle
FontFaceRule. _calculatedStyle
Methods in com.openhtmltopdf.css.sheet that return CalculatedStyle Modifier and Type Method Description CalculatedStyle
FontFaceRule. getCalculatedStyle()
-
Uses of CalculatedStyle in com.openhtmltopdf.css.style
Subclasses of CalculatedStyle in com.openhtmltopdf.css.style Modifier and Type Class Description class
EmptyStyle
Represents the outer box to be used for evaluating positioning of internal boxesFields in com.openhtmltopdf.css.style declared as CalculatedStyle Modifier and Type Field Description private CalculatedStyle
CalculatedStyle. _parent
The parent-style we inherit fromFields in com.openhtmltopdf.css.style with type parameters of type CalculatedStyle Modifier and Type Field Description private java.util.Map<java.lang.String,CalculatedStyle>
CalculatedStyle. _childCache
Cache child styles of this style that have the same cascaded propertiesMethods in com.openhtmltopdf.css.style that return CalculatedStyle Modifier and Type Method Description CalculatedStyle
CalculatedStyle. createAnonymousStyle(IdentValue display)
This method derives a style for an anonymous child box with an overriden value for the display property.CalculatedStyle
CalculatedStyle. deriveStyle(CascadedStyle matched)
Derives a child style from this style.CalculatedStyle
CalculatedStyle. getParent()
Returns the parent style.CalculatedStyle
CalculatedStyle. overrideStyle(IdentValue display)
Override this style with specified styles.CalculatedStyle
CalculatedStyle. overrideStyle(CascadedStyle matched)
Override this style with specified styles.Methods in com.openhtmltopdf.css.style with parameters of type CalculatedStyle Modifier and Type Method Description private 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 CalculatedStyle Constructor Description BorderRadiusCorner(CSSName fromVal, CalculatedStyle style, CssContext ctx)
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 CalculatedStyle Modifier and Type Field Description private CalculatedStyle
LengthValue. _style
Methods in com.openhtmltopdf.css.style.derived that return CalculatedStyle Modifier and Type Method Description private CalculatedStyle
LengthValue. getStyle()
Methods in com.openhtmltopdf.css.style.derived with parameters of type CalculatedStyle Modifier and Type Method Description static float
LengthValue. calcFloatProportionalValue(CalculatedStyle style, CSSName cssName, java.lang.String stringValue, float relVal, short primitiveType, float baseValue, CssContext ctx)
private java.util.List<FSLinearGradient.StopPoint>
FSLinearGradient. calculateStopPoints(java.util.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 CalculatedStyle Constructor Description 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 CalculatedStyle Modifier and Type Method Description void
OutputDevice. paintBackground(RenderingContext c, CalculatedStyle style, java.awt.Rectangle bounds, java.awt.Rectangle bgImageContainer, BorderPropertySet border)
void
OutputDevice. paintBorder(RenderingContext c, CalculatedStyle style, java.awt.Rectangle edge, int sides)
-
Uses of CalculatedStyle in com.openhtmltopdf.layout
Fields in com.openhtmltopdf.layout declared as CalculatedStyle Modifier and Type Field Description (package private) CalculatedStyle
BoxBuilder.CreateChildrenContext. parentStyle
Fields in com.openhtmltopdf.layout with type parameters of type CalculatedStyle Modifier and Type Field Description java.util.Map<CalculatedStyle,CounterContext>
LayoutContext. _counterContextMap
private java.util.Map<org.w3c.dom.Element,CalculatedStyle>
SharedContext. styleMap
Methods in com.openhtmltopdf.layout that return CalculatedStyle Modifier and Type Method Description CalculatedStyle
StyleTracker. deriveAll(CalculatedStyle start)
CalculatedStyle
SharedContext. getStyle(org.w3c.dom.Element e)
Gets the resolved style for an element.CalculatedStyle
Styleable. getStyle()
Methods in com.openhtmltopdf.layout with parameters of type CalculatedStyle Modifier and Type Method Description private static void
BoxBuilder. addColumnOrColumnGroup(LayoutContext c, TableBox table, org.w3c.dom.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, org.w3c.dom.Element element, CalculatedStyle style)
private static void
BoxBuilder. createColumnContainer(LayoutContext c, Styleable child, org.w3c.dom.Element element, CalculatedStyle style)
private static BlockBox
BoxBuilder. createFootnoteBody(LayoutContext c, org.w3c.dom.Element element, CalculatedStyle style)
Creates the footnote body to put at the bottom of the page inside a page's footnote area.private static java.util.List<Styleable>
BoxBuilder. createGeneratedContent(LayoutContext c, org.w3c.dom.Element element, java.lang.String peName, CalculatedStyle style, PropertyValue property, BoxBuilder.ChildBoxInfo info)
Creates generated content boxes for pseudo elements such as::before
.private static java.util.List<Styleable>
BoxBuilder. createGeneratedContentList(LayoutContext c, org.w3c.dom.Element element, java.util.List<PropertyValue> values, java.lang.String peName, CalculatedStyle style, int mode, BoxBuilder.ChildBoxInfo info, java.util.List<Styleable> result)
private static java.util.List<Styleable>
BoxBuilder. createGeneratedMarginBoxContent(LayoutContext c, org.w3c.dom.Element element, PropertyValue property, CalculatedStyle style, BoxBuilder.ChildBoxInfo info)
private static InlineBox
BoxBuilder. createInlineBox(java.lang.String text, org.w3c.dom.Element parent, CalculatedStyle parentStyle, org.w3c.dom.Text node)
CalculatedStyle
StyleTracker. deriveAll(CalculatedStyle start)
private static InlineBox
BoxBuilder. doBidi(LayoutContext c, org.w3c.dom.Text textNode, org.w3c.dom.Element parent, CalculatedStyle parentStyle, InlineBox previousIB, java.util.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)
static LineBreakContext.LineBreakResult
Breaker. doBreakText(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style, Breaker.TextBreakerSupplier lineBreaker)
private static InlineBox
BoxBuilder. doFakeBidi(LayoutContext c, org.w3c.dom.Text textNode, org.w3c.dom.Element parent, CalculatedStyle parentStyle, InlineBox previousIB, java.util.List<Styleable> children)
private static void
InlineBoxing. endInlineBox(LayoutContext c, InlineBoxing.SpaceVariables space, InlineBoxing.StateVariables current, InlineBoxing.StateVariables previous, java.util.List<InlineBox> openInlineBoxes, java.util.List<Layer> pendingInlineLayers, InlineBox inlineBox, CalculatedStyle style)
AbstractCounterContext
LayoutContext. getCounterContext(CalculatedStyle style)
private static boolean
InlineBoxing. hasTrimmableLeadingSpace(LineBox line, CalculatedStyle style, LineBreakContext lbContext, boolean zeroWidthInlineBlock)
private static void
BoxBuilder. insertGeneratedContent(LayoutContext c, org.w3c.dom.Element element, CalculatedStyle parentStyle, java.lang.String peName, java.util.List<Styleable> children, BoxBuilder.ChildBoxInfo info)
private static boolean
BoxBuilder. isValidFootnote(LayoutContext c, org.w3c.dom.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(java.lang.String peName, CalculatedStyle style)
private static void
BoxBuilder. logInvalidFootnoteStyle(LayoutContext c, org.w3c.dom.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, java.lang.Integer startIndex)
private static void
BoxBuilder. resolveElementCounters(LayoutContext c, org.w3c.dom.Node working, org.w3c.dom.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, java.util.List<InlineBox> openInlineBoxes, java.util.Map<InlineBox,InlineLayoutBox> iBMap, InlineBox inlineBox, CalculatedStyle style)
static java.lang.String
TextUtil. transformFirstLetterText(java.lang.String text, CalculatedStyle style)
static java.lang.String
TextUtil. transformText(java.lang.String text, CalculatedStyle style)
private static java.util.List<Styleable>
BoxBuilder. wrapGeneratedContent(LayoutContext c, org.w3c.dom.Element element, java.lang.String peName, CalculatedStyle style, BoxBuilder.ChildBoxInfo info, BoxBuilder.ChildBoxInfo childInfo, java.util.List<Styleable> inlineBoxes)
Constructors in com.openhtmltopdf.layout with parameters of type CalculatedStyle Constructor Description 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 CalculatedStyle Modifier and Type Method Description void
RootCounterContext. incrementCounterValue(CalculatedStyle style)
void
RootCounterContext. resetCounterValue(CalculatedStyle style)
Constructors in com.openhtmltopdf.layout.counter with parameters of type CalculatedStyle Constructor Description CounterContext(LayoutContext ctx, CalculatedStyle style, java.lang.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 CalculatedStyle Modifier and Type Field Description private CalculatedStyle
TableColumn. _style
Methods in com.openhtmltopdf.newtable that return CalculatedStyle Modifier and Type Method Description CalculatedStyle
TableColumn. getStyle()
Methods in com.openhtmltopdf.newtable with parameters of type CalculatedStyle Modifier and Type Method Description void
TableBox. setStyle(CalculatedStyle style)
void
TableColumn. setStyle(CalculatedStyle style)
Constructors in com.openhtmltopdf.newtable with parameters of type CalculatedStyle Constructor Description TableColumn(org.w3c.dom.Element element, CalculatedStyle style)
-
Uses of CalculatedStyle in com.openhtmltopdf.render
Fields in com.openhtmltopdf.render declared as CalculatedStyle Modifier and Type Field Description private CalculatedStyle
Box. _style
private CalculatedStyle
InlineBox. _style
private CalculatedStyle
PageBox. _style
Methods in com.openhtmltopdf.render that return CalculatedStyle Modifier and Type Method Description CalculatedStyle
Box. getStyle()
CalculatedStyle
InlineBox. getStyle()
CalculatedStyle
PageBox. getStyle()
Methods in com.openhtmltopdf.render with parameters of type CalculatedStyle Modifier and Type Method Description private int
AbstractOutputDevice. calcBackgroundSizeLength(CssContext c, CalculatedStyle style, PropertyValue value, float boundsDim)
private java.awt.Dimension
AbstractOutputDevice. calcInitialXYOff(CalculatedStyle.BackgroundContainer bgImage, java.awt.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, java.awt.Rectangle backgroundBounds, java.awt.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, java.awt.Rectangle bounds, java.awt.Rectangle bgImageContainer, BorderPropertySet border)
private void
AbstractOutputDevice. paintBackground0(RenderingContext c, CalculatedStyle style, java.awt.Rectangle backgroundBounds, java.awt.Rectangle bgImageContainer, BorderPropertySet border)
void
AbstractOutputDevice. paintBorder(RenderingContext c, CalculatedStyle style, java.awt.Rectangle edge, int sides)
private void
AbstractOutputDevice. scaleBackgroundImage(CssContext c, CalculatedStyle style, java.awt.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 CalculatedStyle Constructor Description InlineLayoutBox(LayoutContext c, org.w3c.dom.Element elem, CalculatedStyle style, int cbWidth)
-