com.openhtmltopdf.layout.LayoutContext be given to them.
Box#getStyle() after a box has been created by the BoxBuilderSharedContext#getStyle(org.w3c.dom.Element) for an elementStyleReference#getPseudoElementStyle(org.w3c.dom.Node, String) for a pseudo
element. StyleReference is available from LayoutContextderiveStyle(CascadedStyle)EmptyStyle to start with nothing| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private BorderPropertySet | |
| private boolean | |
| private final Map | _childCache
Cache child styles of this style that have the same cascaded properties |
| private final FSDerivedValue[] | _derivedValuesById
Our main array of property values defined in this style, keyed by the CSSName assigned ID. |
| private FontSpecification | _font
The derived Font for this style |
| private FSFont | |
| private FSFontMetrics | |
| private float | |
| private boolean | |
| private RectPropertySet | |
| private boolean | |
| private RectPropertySet | |
| private boolean | |
| private CalculatedStyle | _parent
The parent-style we inherit from |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| protected | CalculatedStyle()
Default constructor; as the instance is immutable after use, don't use this for class instantiation externally. |
| private | CalculatedStyle(CalculatedStyle
PARAM parent, CascadedStyle PARAM matched)Constructor for the CalculatedStyle object. |
| Modifier and Type | Method and Description |
|---|---|
| public FSColor | |
| public float | |
| public Length | |
| public String | |
| public String[] | |
| private void | |
| private void | |
| private void | |
| public int | |
| public CalculatedStyle | createAnonymousStyle(IdentValue display)
This method derives a style for an anonymous child box with an overriden value for the display property. |
| private void | derive(CascadedStyle matched)
This method should result in the element for this style having a derived value for all specified (in stylesheets, style attribute, other non CSS attrs, etc) primitive CSS properties. |
| public CalculatedStyle | Returns: The derived child stylethe CascadedStyle to apply matched)Derives a child style from this style. |
| private FSDerivedValue | |
| public boolean | |
| public int | |
| private String | |
| public FSColor | Returns: The backgroundColor valueConvenience property accessor; returns a Color initialized with the background color value; Uses the actual value (computed actual value) for this element. |
| public List | getBackgroundImages()
Gets the values of the background properties and combines in a list of BackgroundContainer values. |
| public IdentValue | |
| public BorderPropertySet | |
| public int | |
| private static BorderPropertySet | |
| public int | |
| public RectPropertySet | |
| public RectPropertySet | |
| public FSColor | Returns: The color valueConvenience property accessor; returns a Color initialized with the foreground color Uses the actual value (computed actual value) for this element. |
| public int | |
| public List | |
| public List | |
| public static int | getCSSMaxHeight(CssContext c, Box box)
Aims to get the correct resolved max-height for a box in dots unit. |
| public static int | getCSSMaxWidth(CssContext c, Box box)
Aims to get the correct resolved max-width for a box in dots unit. |
| public Cursor | |
| public FSDerivedValue[] | |
| public IdentValue | |
| public float | Returns: TODO
|
| public float | |
| public float | |
| public FontSpecification | |
| public FontSpecification | |
| public FSFont | |
| public FSFontMetrics | |
| public float | |
| public IdentValue | |
| public FSLinearGradient | |
| public float | |
| public int | |
| private static RectPropertySet | getMarginProperty(CalculatedStyle style, CSSName shorthandProp, CSSName.
|
| public RectPropertySet | Returns: The marginWidth valueConvenience property accessor; returns a Border initialized with the four-sided margin width. |
| public RectPropertySet | |
| public int | |
| public int | |
| public int | |
| public int | |
| private static RectPropertySet | getPaddingProperty(CalculatedStyle style, CSSName shorthandProp, CSSName.
|
| public RectPropertySet | Returns: The paddingWidth valueConvenience property accessor; returns a Border initialized with the four-sided padding width. |
| public RectPropertySet | |
| public CalculatedStyle | |
| public int | |
| public String | |
| public String | |
| public List | |
| public IdentValue | |
| public IdentValue | |
| public boolean | |
| public boolean | |
| public boolean | |
| private void | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | Returns: The ident valuePARAM cssName, IdentValue PARAM val)Gets the ident attribute of the CalculatedStyle object |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if the element is visiblenull or the current renderingContext. If null,
then the -fs-table-paginate-repeated-visible logic
will not work. renderingContext, Box the element for which the visibility should be determined. Only required if
-fs-table-paginate-repeated-visible is specified. thisElement)Determine if the element is visible. |
| public boolean | |
| public boolean | |
| private static RectPropertySet | newRectInstance(CalculatedStyle style, CSSName shorthand, CSSName.
|
| public CalculatedStyle | |
| public CalculatedStyle | |
| public boolean | |
| private IdentValue | |
| public String | Returns: The borderWidth valueOverrides java. Converts to a String representation of the object. |
| public FSDerivedValue | valueByName(CSSName
The CSS property name, e.g. "font-family" cssName)Returns a |