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, writeStart
public 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 borderPDFAnnot
public PDFBorder(double width, double[] dash)
width
- The width of the borderdash
- The line pattern definitionpublic void write(OutputStream os) throws IOException
PDFObject
Writes 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 PDFObject
os
- OutputStream to send the object toIOException
- on error