public class BorderStyleApplierUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
applyBorders(Map<String,String> cssProps, ProcessorContext context, com.itextpdf.layout.IPropertyContainer element)
Applies borders to an element.
|
static com.itextpdf.layout.property.BorderRadius[] |
getBorderRadiiArray(Map<String,String> styles, float em, float rem)
Gets the array that defines the borders.
|
static com.itextpdf.layout.property.UnitValue |
getBorderRadius(Map<String,String> styles, float em, float rem)
Deprecated.
use
getBorderRadiiArray(Map, float, float) instead
|
static com.itextpdf.layout.borders.Border[] |
getBordersArray(Map<String,String> styles, float em, float rem)
Gets the array that defines the borders.
|
static com.itextpdf.layout.borders.Border |
getCertainBorder(String borderWidth, String borderStyle, String borderColor, float em, float rem)
Creates a Border instance based on specific properties.
|
public static void applyBorders(Map<String,String> cssProps, ProcessorContext context, com.itextpdf.layout.IPropertyContainer element)
cssProps
- the CSS properties
context
- the Processor context
element
- the element
public static com.itextpdf.layout.borders.Border[] getBordersArray(Map<String,String> styles, float em, float rem)
styles
- the styles mapping
em
- the em value
rem
- the root em value
public static com.itextpdf.layout.borders.Border getCertainBorder(String borderWidth, String borderStyle, String borderColor, float em, float rem)
Border
instance based on specific properties.
borderWidth
- the border width
borderStyle
- the border style
borderColor
- the border color
em
- the em value
rem
- the root em value
public static com.itextpdf.layout.property.BorderRadius[] getBorderRadiiArray(Map<String,String> styles, float em, float rem)
styles
- the styles mapping
em
- the em value
rem
- the root em value
@Deprecated public static com.itextpdf.layout.property.UnitValue getBorderRadius(Map<String,String> styles, float em, float rem)
getBorderRadiiArray(Map, float, float)
instead
styles
- the styles mapping
em
- the em value
rem
- the root em value
Copyright © 1998–2019 iText Group NV. All rights reserved.