|
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.PdfCaretAnnot
public class PdfCaretAnnot
This class represents a caret annotation. Caret annotations are identified by a caret (^) symbol and are typically used to visually indicate the presence of a text edit.
// Create a PDF page PdfPage page = new PdfPage(); // Create a PDF font PdfFont fontHelvetica = PdfFont.create("Helvetica", 15, PdfEncodings.WINANSI); fontHelvetica.setColor(Color.BLUE); page.writeText("Caret Annotation", fontHelvetica, 80, 520); page.writeText("Caret annotation displays the" + " missing information in the popup window.", fontHelvetica, 120, 550); // Create a caret annotation and set its properties PdfCaretAnnot caretAnnot = new PdfCaretAnnot(new PdfRect(367, 565, 8, 10), Color.red); caretAnnot.setTitle("Title"); caretAnnot.setContents("This is a Caret Annotation"); caretAnnot.setSubject("Annotation Subject"); // Add the caret annotation to the page page.addAnnotation(caretAnnot);
| Field Summary | |
|---|---|
static int |
SYMBOL_NONE
|
static int |
SYMBOL_PARAGRAPH
|
| Constructor Summary | |
|---|---|
PdfCaretAnnot()
|
|
PdfCaretAnnot(PdfRect r,
Color c)
|
|
PdfCaretAnnot(PdfRect r,
int flags)
|
|
PdfCaretAnnot(PdfRect r,
int flags,
Color c)
|
|
PdfCaretAnnot(PdfRect r,
String subject,
String contents,
String title)
|
|
PdfCaretAnnot(PdfRect r,
String subject,
String contents,
String title,
Color c)
|
|
PdfCaretAnnot(PdfRect r,
String subject,
String contents,
String title,
int flags)
|
|
PdfCaretAnnot(PdfRect r,
String subject,
String contents,
String title,
int flags,
Color c)
|
|
PdfCaretAnnot(PdfRect r,
String subject,
String contents,
String title,
int flags,
Color c,
int symbol)
|
|
| Method Summary | |
|---|---|
Object |
clone()
|
double |
getBottomRD()
|
PdfRect |
getDiffRect()
|
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. |
double |
getLeftRD()
|
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. |
double |
getRightRD()
|
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). |
int |
getSymbol()
|
double |
getTopRD()
|
void |
setBottomRD(float bottomRD)
|
void |
setDiffRect(PdfRect diffRect)
|
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 |
setLeftRD(float leftRD)
|
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 |
setRightRD(float rightRD)
|
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). |
void |
setSymbol(int symbol)
|
void |
setTopRD(float topRD)
|
| 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 |
| Field Detail |
|---|
public static final int SYMBOL_NONE
public static final int SYMBOL_PARAGRAPH
| Constructor Detail |
|---|
public PdfCaretAnnot()
public PdfCaretAnnot(PdfRect r,
String subject,
String contents,
String title,
int flags,
Color c,
int symbol)
throws IOException,
PdfException
IOException
PdfException
public PdfCaretAnnot(PdfRect r,
String subject,
String contents,
String title)
throws IOException,
PdfException
IOException
PdfException
public PdfCaretAnnot(PdfRect r,
String subject,
String contents,
String title,
Color c)
throws IOException,
PdfException
IOException
PdfException
public PdfCaretAnnot(PdfRect r,
String subject,
String contents,
String title,
int flags)
throws IOException,
PdfException
IOException
PdfException
public PdfCaretAnnot(PdfRect r,
String subject,
String contents,
String title,
int flags,
Color c)
throws IOException,
PdfException
IOException
PdfException
public PdfCaretAnnot(PdfRect r,
int flags)
throws IOException,
PdfException
IOException
PdfException
public PdfCaretAnnot(PdfRect r,
int flags,
Color c)
throws IOException,
PdfException
IOException
PdfException
public PdfCaretAnnot(PdfRect r,
Color c)
throws IOException,
PdfException
IOException
PdfException| Method Detail |
|---|
public Object clone()
public int getSymbol()
public void setSymbol(int symbol)
public PdfRect getDiffRect()
public void setDiffRect(PdfRect diffRect)
public double getBottomRD()
public void setBottomRD(float bottomRD)
public double getLeftRD()
public void setLeftRD(float leftRD)
public double getRightRD()
public void setRightRD(float rightRD)
public double getTopRD()
public void setTopRD(float topRD)
public 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 | ||||||||