Package com.itextpdf.kernel.pdf.annot
Class BorderStyleUtil
- java.lang.Object
-
- com.itextpdf.kernel.pdf.annot.BorderStyleUtil
-
class BorderStyleUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description private
BorderStyleUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PdfDictionary
setDashPattern(PdfDictionary bs, PdfArray dashPattern)
Setter for the dashed border style.static PdfDictionary
setStyle(PdfDictionary bs, PdfName style)
Setter for the border style.
-
-
-
Method Detail
-
setStyle
public static final PdfDictionary setStyle(PdfDictionary bs, PdfName style)
Setter for the border style. Possible values arePdfAnnotation.STYLE_SOLID
- A solid rectangle surrounding the annotation.PdfAnnotation.STYLE_DASHED
- A dashed rectangle surrounding the annotation.PdfAnnotation.STYLE_BEVELED
- A simulated embossed rectangle that appears to be raised above the surface of the page.PdfAnnotation.STYLE_INSET
- A simulated engraved rectangle that appears to be recessed below the surface of the page.PdfAnnotation.STYLE_UNDERLINE
- A single line along the bottom of the annotation rectangle.
- Parameters:
bs
- original border style dictionary.style
- The new value for the annotation's border style.- Returns:
- Updated border style dictionary entry.
-
setDashPattern
public static final PdfDictionary setDashPattern(PdfDictionary bs, PdfArray dashPattern)
Setter for the dashed border style. This property has affect only ifPdfAnnotation.STYLE_DASHED
style was used for border style (seesetStyle(PdfDictionary, PdfName)
. See ISO-320001 8.4.3.6, "Line Dash Pattern" for the format in which dash pattern shall be specified.- Parameters:
bs
- original border style dictionary.dashPattern
- a dash array defining a pattern of dashes and gaps that shall be used in drawing a dashed border.- Returns:
- Updated border style dictionary entry.
-
-