|
Gnostice PDFOne
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gnostice.pdfone.PdfAnnot
com.gnostice.pdfone.PdfProAnnot
com.gnostice.pdfone.PdfSquareAnnot
com.gnostice.pdfone.PdfCircleAnnot
This class represents a circle annotation. A circle annotation can also oval in shape.
// Create a PDF page PdfPage page1 = new PdfPage(); // Create a PDF font PdfFont fontHelvetica = PdfFont.create("Helvetica", 15,PdfEncodings.WINANSI); fontHelvetica.setColor(Color.BLUE); page.writeText("Circle Annotations", fontHelvetica, 80, 280); // Create a circle annotation and set its properties PdfCircleAnnot circleAnnot1 = new PdfCircleAnnot(new PdfRect(100, 320, 120, 80), Color.RED); circleAnnot1.setSubject("Annotation Subject"); circleAnnot1.setTitle("Title"); circleAnnot1.setContents("This is a Circle Annotation"); circleAnnot1.setBorderStyle(PdfCircleAnnot.BORDERSTYLE_DASHED); circleAnnot1.setBorderWidth(3); circleAnnot1.setColor(Color.RED); // Add the annotation to the page page1.addAnnotation(circleAnnot1);
| Field Summary |
| Constructor Summary | |
PdfCircleAnnot()
Zero-argument default constructor. |
|
PdfCircleAnnot(PdfRect r,
Color c)
Constructs a circle annotation with specified rectangle, flags, and color. |
|
PdfCircleAnnot(PdfRect r,
int flags)
Constructs a circle annotation with specified rectangle and flags. |
|
PdfCircleAnnot(PdfRect r,
int flags,
Color c)
Constructs a circle annotation with specified rectangle, flags, and color. |
|
PdfCircleAnnot(PdfRect r,
String subject,
String contents,
String title)
Constructs a circle annotation with specified rectangle and popup window subject, contents, and title. |
|
PdfCircleAnnot(PdfRect r,
String subject,
String contents,
String title,
Color c)
Constructs a circle annotation with specified rectangle, color, and popup window subject, contents and title. |
|
PdfCircleAnnot(PdfRect r,
String subject,
String contents,
String title,
int flags)
Constructs a circle annotation with specified rectangle, flags, and popup window subject, contents and title. |
|
PdfCircleAnnot(PdfRect r,
String subject,
String contents,
String title,
int flags,
Color c)
Constructs a circle annotation with specified rectangle, flags, color and popup window subject, contents and title. |
|
| Method Summary | |
Object |
clone()
|
| Methods inherited from class com.gnostice.pdfone.PdfSquareAnnot |
getCloudIntensity, getDownAppearance, getInteriorColor, getNormalAppearance, getPopup, getRolloverAppearance, isCloudy, setCloudIntensity, setCloudy, setDownAppearance, setInteriorColor, setNormalAppearance, setPopup, setRolloverAppearance |
| Methods inherited from class com.gnostice.pdfone.PdfAnnot |
getAnnotName, getBorderStyle, getBorderWidth, getBottom, getColor, getContents, getDashPattern, getFlags, getLeft, getRect, getRight, getSubject, getTitle, getTop, getType, hashCode, isShowRect, setAnnotName, setBorderStyle, setBorderWidth, setColor, setContents, setDashPattern, setFlags, setRect, setRect, setRect, setRect, setRect, setShowRect, setSubject, setTitle |
| Methods inherited from class java.lang.Object |
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PdfCircleAnnot()
public PdfCircleAnnot(PdfRect r,
String subject,
String contents,
String title)
throws IOException,
PdfException
r - annotation
rectanglesubject - text displayed in the subject line of the annotation's
popup windowcontents - text displayed as the contents of the annotation's
popup windowtitle - text displayed in the title in the annotation's
popup window
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
public PdfCircleAnnot(PdfRect r,
String subject,
String contents,
String title,
Color c)
throws IOException,
PdfException
r - annotation
rectanglesubject - text displayed in the subject line of the
annotation's popup windowcontents - text displayed as the contents of the annotation's
popup windowtitle - text displayed as the contents of the annotation's
popup windowc - color of the circle
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
public PdfCircleAnnot(PdfRect r,
String subject,
String contents,
String title,
int flags)
throws IOException,
PdfException
r - annotation
rectanglesubject - text displayed in the subject line of the
annotation's popup windowcontents - text displayed as the contents of the annotation's
popup windowtitle - text displayed in the title in the annotation's
popup windowflags - annotation attributes
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
public PdfCircleAnnot(PdfRect r,
String subject,
String contents,
String title,
int flags,
Color c)
throws IOException,
PdfException
r - annotation
rectanglesubject - text displayed in the subject line of the
annotation's popup windowcontents - text displayed as the contents of the annotation's
popup windowtitle - text displayed in the title in the annotation's
popup windowflags - annotation attributesc - color of the circle
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
public PdfCircleAnnot(PdfRect r,
int flags)
throws IOException,
PdfException
r - annotation
rectangleflags - annotation attributes
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
public PdfCircleAnnot(PdfRect r,
int flags,
Color c)
throws IOException,
PdfException
r - annotation
rectangleflags - annotation attributesc - color of the circle
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
public PdfCircleAnnot(PdfRect r,
Color c)
throws IOException,
PdfException
r - annotation
rectanglec - color of the circle
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.| Method Detail |
public Object clone()
clone in class PdfSquareAnnot
|
Free |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||