|
Gnostice PDFOne Java
|
||||||||
| 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.PdfSquareAnnot
com.gnostice.pdfone.PdfCircleAnnot
public class 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()
|
|
PdfCircleAnnot(PdfRect r,
Color c)
|
|
PdfCircleAnnot(PdfRect r,
int flags)
|
|
PdfCircleAnnot(PdfRect r,
int flags,
Color c)
|
|
PdfCircleAnnot(PdfRect r,
String subject,
String contents,
String title)
|
|
PdfCircleAnnot(PdfRect r,
String subject,
String contents,
String title,
Color c)
|
|
PdfCircleAnnot(PdfRect r,
String subject,
String contents,
String title,
int flags)
|
|
PdfCircleAnnot(PdfRect r,
String subject,
String contents,
String title,
int flags,
Color c)
|
|
| Method Summary | |
|---|---|
Object |
clone()
|
PdfAppearanceStream |
getDownAppearance()
Returns the appearance stream that needs to be used by a viewer application to display the annotation/form field when the user places the mouse pointer over the annotation/form field and holds down the mouse button. |
PdfAppearanceStream |
getNormalAppearance()
Returns the default appearance stream that needs to be used by a viewer application to display the annotation/form field (that is, when the user is not interacting with the annotation/form field). |
PdfPopUpAnnot |
getPopup()
Returns a popup annotation that needs to be used by a viewer application to display the popup window for this annotation. |
PdfAppearanceStream |
getRolloverAppearance()
Returns the appearance stream that needs to be used by a viewer application to display the annotation when the user places the mouse pointer over the annotation (and does not hold down the mouse button). |
void |
setDownAppearance(PdfAppearanceStream downAppearance)
Specifies the appearance stream that needs to be used by a viewer application to display the annotation/form field when the user places the mouse pointer over the annotation/form field and holds down the mouse button. |
void |
setNormalAppearance(PdfAppearanceStream normalAppearance)
Specifies the default appearance stream that needs to be used by a viewer application to display the annotation/form field (that is, when the user is not interacting with the annotation/form field). |
void |
setPopup(PdfPopUpAnnot popup,
boolean overridePopUpProperties)
Specifies a popup annotation that needs to be used by a viewer application to display the popup window for this annotation. |
void |
setRolloverAppearance(PdfAppearanceStream rolloverAppearance)
Specifies the appearance stream that needs to be used by a viewer application to display the annotation/form field when the user places the mouse pointer over the annotation/form field (and does not hold down the mouse button). |
| Methods inherited from class com.gnostice.pdfone.PdfSquareAnnot |
|---|
getCloudIntensity, getInteriorColor, isCloudy, setCloudIntensity, setCloudy, setInteriorColor |
| 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
IOException
PdfException
public PdfCircleAnnot(PdfRect r,
String subject,
String contents,
String title,
Color c)
throws IOException,
PdfException
IOException
PdfException
public PdfCircleAnnot(PdfRect r,
String subject,
String contents,
String title,
int flags)
throws IOException,
PdfException
IOException
PdfException
public PdfCircleAnnot(PdfRect r,
String subject,
String contents,
String title,
int flags,
Color c)
throws IOException,
PdfException
IOException
PdfException
public PdfCircleAnnot(PdfRect r,
int flags)
throws IOException,
PdfException
IOException
PdfException
public PdfCircleAnnot(PdfRect r,
int flags,
Color c)
throws IOException,
PdfException
IOException
PdfException
public PdfCircleAnnot(PdfRect r,
Color c)
throws IOException,
PdfException
IOException
PdfException| Method Detail |
|---|
public Object clone()
clone in class PdfSquareAnnotpublic PdfPopUpAnnot getPopup()
public void setPopup(PdfPopUpAnnot popup,
boolean overridePopUpProperties)
popup - popup annotation that needs to be used as the popup
windowoverridePopUpProperties - whether a viewer application should override the
properties of the popup annotation with those of
this annotationgetPopup()public PdfAppearanceStream getDownAppearance()
getNormalAppearance(),
getDownAppearance(),
setNormalAppearance(PdfAppearanceStream),
setRolloverAppearance(PdfAppearanceStream),
setDownAppearance(PdfAppearanceStream)public void setDownAppearance(PdfAppearanceStream downAppearance)
getNormalAppearance(),
getDownAppearance(),
getRolloverAppearance(),
setNormalAppearance(PdfAppearanceStream),
setRolloverAppearance(PdfAppearanceStream)public PdfAppearanceStream getNormalAppearance()
getDownAppearance(),
getRolloverAppearance(),
setNormalAppearance(PdfAppearanceStream),
setDownAppearance(PdfAppearanceStream),
setRolloverAppearance(PdfAppearanceStream)public void setNormalAppearance(PdfAppearanceStream normalAppearance)
normalAppearance - the specified appearance streamsetDownAppearance(PdfAppearanceStream),
setRolloverAppearance(PdfAppearanceStream),
getNormalAppearance(),
getDownAppearance(),
getRolloverAppearance()public PdfAppearanceStream getRolloverAppearance()
getNormalAppearance(),
getDownAppearance(),
setNormalAppearance(PdfAppearanceStream),
setDownAppearance(PdfAppearanceStream),
setRolloverAppearance(PdfAppearanceStream)public void setRolloverAppearance(PdfAppearanceStream rolloverAppearance)
rolloverAppearance - the specified appearance streamsetNormalAppearance(PdfAppearanceStream),
setDownAppearance(PdfAppearanceStream),
getNormalAppearance(),
getDownAppearance(),
getRolloverAppearance()
|
Std. Ed. v2.10 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||