public final class LineAnnotation extends MarkupAnnotation
Class representing line annotation.
_disableUpdateAppearance
Constructor and Description |
---|
LineAnnotation(IDocument document,
Point start,
Point end)
Constructor for using with Generator.
|
LineAnnotation(Page page,
Rectangle rect,
Point start,
Point end)
Creates new Line annotation on the specified page.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(AnnotationSelector visitor)
Accepts visitor to annotation processing.
|
int |
getAnnotationType()
Gets type of annotation.
|
Point |
getCaptionOffset()
Gets caption text offset from its normal position.
|
int |
getCaptionPosition()
Gets annotation caption position.
|
Point |
getEnding()
Gets line ending point.
|
int |
getEndingStyle()
Gets ending style for end point of line.
|
int |
getIntent()
Gets the intent of the line annotation.
|
Color |
getInteriorColor()
Gets interior color of the annotation.
|
double |
getLeaderLine()
Gets leader line length.
|
double |
getLeaderLineExtension()
Gets length of leader line extension.
|
double |
getLeaderLineOffset()
Gets leader line offset.
|
Measure |
getMeasure()
Measure units specifed for this annotation.
|
boolean |
getShowCaption()
Gets boolean flag which determinies is contents must be shown as caption.
|
Point |
getStarting()
Gets starting point of line.
|
int |
getStartingStyle()
Gets line ending style for line starting point.
|
void |
setCaptionOffset(Point value)
Sets caption text offset from its normal position.
|
void |
setCaptionPosition(int value)
Sets annotation caption position.
|
void |
setEnding(Point value)
Sets line ending point.
|
void |
setEndingStyle(int value)
Sets ending style for end point of line.
|
void |
setIntent(int value)
Sets the intent of the line annotation.
|
void |
setInteriorColor(Color value)
Sets interior color of the annotation.
|
void |
setLeaderLine(double value)
Sets leader line length.
|
void |
setLeaderLineExtension(double value)
Sets length of leader line extension.
|
void |
setLeaderLineOffset(double value)
Sets leader line offset.
|
void |
setMeasure(Measure value)
Measure units specifed for this annotation.
|
void |
setShowCaption(boolean value)
Sets boolean flag which determinies is contents must be shown as caption.
|
void |
setStarting(Point value)
Sets starting point of line.
|
void |
setStartingStyle(int value)
Sets line ending style for line starting point.
|
getCreationDate, getInReplyTo, getOpacity, getPopup, getReplyType, getRichText, getSubject, getTitle, setInReplyTo, setOpacity, setPopup, setReplyType, setRichText, setSubject, setTitle
createAnnotation, flatten, getActiveState, getAlignment, getAppearance, getBorder, getCharacteristics, getColor, getContents, getEngineDict, getEngineObj, getFlags, getFullName, getHeight, getHorizontalAlignment_Annotation_New, getModified, getModifiedInternal, getName, getNormalAppearance, getPage, getPageIndex, getPageIndex, getPdfActions, getRect, getRectangle, getStates, getTextHorizontalAlignment, getWidth, initialize, isUpdateAppearanceOnConvert, isUseFontSubset, setActiveState, setAlignment, setBorder, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setRect, setStructParent, setTextHorizontalAlignment, setUpdateAppearanceOnConvert, setUseFontSubset, setWidth
deepClone, getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndex
public LineAnnotation(IDocument document, Point start, Point end)
Constructor for using with Generator.
document
- Document where annotation will be created.start
- Starting point.end
- Ending point.public LineAnnotation(Page page, Rectangle rect, Point start, Point end)
Creates new Line annotation on the specified page.
page
- The document's page where annotation should be created.rect
- The annotation rectangle, defining the location of the annotation on the page.start
- A point, specifying the starting coordinate of the line.end
- A point, specifying the ending coordinate of the line.public Point getStarting()
Gets starting point of line.
public void setStarting(Point value)
Sets starting point of line.
value
- Point valuepublic int getStartingStyle()
Gets line ending style for line starting point.
LineEnding
public void setStartingStyle(int value)
Sets line ending style for line starting point.
value
- LineEnding elementLineEnding
public Point getEnding()
Gets line ending point.
public void setEnding(Point value)
Sets line ending point.
value
- Point valuepublic int getEndingStyle()
Gets ending style for end point of line.
LineEnding
public void setEndingStyle(int value)
Sets ending style for end point of line.
value
- LineEnding elementLineEnding
public Color getInteriorColor()
Gets interior color of the annotation.
public void setInteriorColor(Color value)
Sets interior color of the annotation.
value
- Color objectpublic double getLeaderLine()
Gets leader line length.
public void setLeaderLine(double value)
Sets leader line length.
value
- double valuepublic double getLeaderLineExtension()
Gets length of leader line extension.
public void setLeaderLineExtension(double value)
Sets length of leader line extension.
value
- double valuepublic boolean getShowCaption()
Gets boolean flag which determinies is contents must be shown as caption.
public void setShowCaption(boolean value)
Sets boolean flag which determinies is contents must be shown as caption.
value
- boolean valuepublic double getLeaderLineOffset()
Gets leader line offset.
public void setLeaderLineOffset(double value)
Sets leader line offset.
value
- double valuepublic Point getCaptionOffset()
Gets caption text offset from its normal position.
public void setCaptionOffset(Point value)
Sets caption text offset from its normal position.
value
- Point objectpublic int getCaptionPosition()
Gets annotation caption position.
CaptionPosition
public void setCaptionPosition(int value)
Sets annotation caption position.
value
- CaptionPosition elementCaptionPosition
public Measure getMeasure()
Measure units specifed for this annotation.
public void setMeasure(Measure value)
Measure units specifed for this annotation.
value
- Measure objectpublic void accept(AnnotationSelector visitor)
Accepts visitor to annotation processing.
accept
in class Annotation
visitor
- Visitor objectpublic int getIntent()
Gets the intent of the line annotation.
LineIntent
public void setIntent(int value)
Sets the intent of the line annotation.
value
- LineIntent elementLineIntent
public int getAnnotationType()
Gets type of annotation.
getAnnotationType
in class Annotation
AnnotationType