Package pdf
Class PDFBorder
- java.lang.Object
-
- pdf.PDFObject
-
- pdf.PDFBorder
-
- All Implemented Interfaces:
java.io.Serializable
public class PDFBorder extends PDFObject
A border around an annotation
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class pdf.PDFObject
objser, pdfDocument
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(java.io.OutputStream os)Writes the object to the output stream.-
Methods inherited from class pdf.PDFObject
getPDFDocument, getSerialID, getType, toArray, toString, writeEnd, writeStart
-
-
-
-
Constructor Detail
-
PDFBorder
public PDFBorder(short style, double width)Creates a border using the predefined styles in PDFAnnot.Note: Do not use PDFAnnot.DASHED with this method. Use the other constructor.
- Parameters:
style- The style of the borderwidth- The width of the border- See Also:
PDFAnnot
-
PDFBorder
public PDFBorder(double width, double[] dash)Creates a border of style PDFAnnot.DASHED- Parameters:
width- The width of the borderdash- The line pattern definition
-
-
Method Detail
-
write
public void write(java.io.OutputStream os) throws java.io.IOExceptionDescription copied from class:PDFObjectWrites the object to the output stream. This method must be overidden.
Note: It should not write any other objects, even if they are it's Kids, as they will be written by the calling routine.
-
-