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.properties.BorderRadius[] |
getBorderRadiiArray(Map<String,String> styles,
float em,
float rem)
Gets the array that defines the borders.
|
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 propertiescontext - the Processor contextelement - the elementpublic static com.itextpdf.layout.borders.Border[] getBordersArray(Map<String,String> styles, float em, float rem)
styles - the styles mappingem - the em valuerem - the root em valuepublic 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 widthborderStyle - the border styleborderColor - the border colorem - the em valuerem - the root em valueCopyright © 1998–2021 iText Group NV. All rights reserved.