PdfPolyGeomAnnotation extends PdfMarkupAnnotation { public static PdfPolyGeomAnnotation createPolyLine(Rectangle rect, float[] vertices) { return new PdfPolylineAnnotation(rect, vertices); } PdfPolyGeomAnnotation(Rectangle rect, float[] vertices); protected  PdfPolyGeomAnnotation(PdfDictionary pdfObject); static PdfPolyGeomAnnotation createPolygon(Rectangle rect, float[] vertices); static PdfPolyGeomAnnotation createPolyLine(Rectangle rect, float[] vertices); PdfArray getVertices(); PdfPolyGeomAnnotation setVertices(PdfArray vertices); PdfPolyGeomAnnotation setVertices(float[] vertices); PdfArray getLineEndingStyles(); PdfPolyGeomAnnotation setLineEndingStyles(PdfArray lineEndingStyles); PdfDictionary getMeasure(); PdfPolyGeomAnnotation setMeasure(PdfDictionary measure); PdfArray getPath(); PdfPolyGeomAnnotation setPath(PdfArray path); PdfDictionary getBorderStyle(); PdfPolyGeomAnnotation setBorderStyle(PdfDictionary borderStyle); PdfPolyGeomAnnotation setBorderStyle(PdfName style); PdfPolyGeomAnnotation setDashPattern(PdfArray dashPattern); PdfDictionary getBorderEffect(); PdfPolyGeomAnnotation setBorderEffect(PdfDictionary borderEffect); Color getInteriorColor(); PdfPolyGeomAnnotation setInteriorColor(PdfArray interiorColor); PdfPolyGeomAnnotation setInteriorColor(float[] interiorColor); @Deprecated
    static final PdfName Polygon; @Deprecated
    static final PdfName PolyLine; }
@Test public void createPolylineTest() { Rectangle rect = new Rectangle(10, 10); float[] vertices = new float[]{1, 1, 1, 1}; PdfPolyGeomAnnotation pdfPolyGeomAnnotation = PdfPolyGeomAnnotation.createPolyLine(rect, vertices); Assert.assertTrue("Rectangles are not equal", pdfPolyGeomAnnotation.getRectangle().toRectangle().equalsWithEpsilon(rect)); Assert.assertArrayEquals(vertices, pdfPolyGeomAnnotation.getVertices().toFloatArray(), FLOAT_EPSILON_COMPARISON); }