|
jPod PDF library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.intarsys.pdf.pd.PDAnnotationTools
public class PDAnnotationTools
Tool class for common tasks with PDAnnotation objects.
| Field Summary | |
|---|---|
static String |
CAPTION_CHECK
|
static String |
CAPTION_CIRCLE
|
static String |
CAPTION_CROSS
|
static String |
CAPTION_DIAMOND
|
static String |
CAPTION_SQUARE
|
static String |
CAPTION_STAR
|
| Method Summary | |
|---|---|
static PDAppearance |
getAppearance(PDAnnotation annotation)
The PDAppearance for annotation. |
static float[] |
getBorderColor(PDWidgetAnnotation annotation)
|
static float[] |
getBorderColorNegative(PDWidgetAnnotation annotation)
|
static float[] |
getFillColor(PDWidgetAnnotation annotation)
|
static float[] |
getFillColorNegative(PDWidgetAnnotation annotation)
|
static PDAnnotation |
getNextAnnotation(PDAnnotation annotation)
Returns the next annotation following annotation on the
same page. |
static PDAnnotation |
getNextAnnotationAllPages(PDAnnotation annotation)
Returns the next annotation following annotation in the
whole document. |
static PDPage |
getPage(PDAnnotation annotation)
|
static PDAnnotation |
getPreviousAnnotation(PDAnnotation annotation)
Returns the annotation preceding annotation on the same
page. |
static PDAnnotation |
getPreviousAnnotationAllPages(PDAnnotation annotation)
Returns the annotation preceding annotation in the whole
document. |
static COSName |
getStateChecked(PDWidgetAnnotation annotation)
Lookup the state that is used to represent "not off" in annotation. |
static boolean |
isAnnotationSpec14(COSDictionary dict)
Checks a COSDictionary for being a subtyped known annotation as of Spec PDF 1.4 |
static boolean |
isStateChecked(COSName state)
true if state represents a state that is
not "/Off". |
static void |
transform(CDSRectangle rect,
CDSMatrix matrix,
int rotation)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CAPTION_CHECK
public static final String CAPTION_CIRCLE
public static final String CAPTION_CROSS
public static final String CAPTION_DIAMOND
public static final String CAPTION_SQUARE
public static final String CAPTION_STAR
| Method Detail |
|---|
public static PDAppearance getAppearance(PDAnnotation annotation)
PDAppearance for annotation. If no PDAppearance is
yet available, a new one is created but NOT associated with the
annotation. This behavior is intended to allow for dynamic appearance
creation when rendering without changing the document itself.
PDAppearance for annotation.public static float[] getBorderColor(PDWidgetAnnotation annotation)
public static float[] getBorderColorNegative(PDWidgetAnnotation annotation)
public static float[] getFillColor(PDWidgetAnnotation annotation)
public static float[] getFillColorNegative(PDWidgetAnnotation annotation)
public static PDAnnotation getNextAnnotation(PDAnnotation annotation)
annotation on the
same page. Returns null if no annotation following
annotation could be found or annotation is
the last one on the page.
annotation -
nullpublic static PDAnnotation getNextAnnotationAllPages(PDAnnotation annotation)
annotation in the
whole document. Returns null if no annotation following
annotation could be found in the document.
annotation -
nullpublic static PDPage getPage(PDAnnotation annotation)
public static PDAnnotation getPreviousAnnotation(PDAnnotation annotation)
annotation on the same
page. Returns null if no annotation preceding
annotation could be found or annotation is
the first one on the page.
annotation -
nullpublic static PDAnnotation getPreviousAnnotationAllPages(PDAnnotation annotation)
annotation in the whole
document. Returns null if no annotation preceding
annotation could be found in the document.
annotation -
nullpublic static COSName getStateChecked(PDWidgetAnnotation annotation)
annotation.
annotation - The annotation to inspect for its "not off" state.
annotation.public static boolean isAnnotationSpec14(COSDictionary dict)
dict -
true if known as of Spec PDF 1.4public static boolean isStateChecked(COSName state)
true if state represents a state that is
not "/Off". "/Off" is the only legal way to switch of a toggle button, so
anything else is "on".
state - The state to inspect if it is not "/Off".
true if state represents a state
that is not "/Off".
public static void transform(CDSRectangle rect,
CDSMatrix matrix,
int rotation)
|
jPod PDF library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||