public class PDFBorder extends PDFObject
A border around an annotation
| Constructor and Description | 
|---|
PDFBorder(double width,
         double[] dash)
Creates a border of style PDFAnnot.DASHED 
 | 
PDFBorder(short style,
         double width)
Creates a border using the predefined styles in PDFAnnot. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
write(OutputStream os)
 Writes the object to the output stream. 
 | 
getGeneration, getName, getPDFDocument, getSerialID, getType, setName, toArray, toString, writeEnd, writeStartpublic PDFBorder(short style,
                 double width)
Note: Do not use PDFAnnot.DASHED with this method. Use the other constructor.
style - The style of the borderwidth - The width of the borderPDFAnnotpublic PDFBorder(double width,
                 double[] dash)
width - The width of the borderdash - The line pattern definitionpublic void write(OutputStream os) throws IOException
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.
write in class PDFObjectos - OutputStream to send the object toIOException - on error