COSObjectable
public class FDFAnnotationLine extends FDFAnnotation
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
SUBTYPE |
COS Model value for SubType entry.
|
annot
Constructor | Description |
---|---|
FDFAnnotationLine() |
Default constructor.
|
FDFAnnotationLine(COSDictionary a) |
Constructor.
|
FDFAnnotationLine(org.w3c.dom.Element element) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
getCaption() |
This will retrieve if the contents are shown as a caption or not.
|
float |
getCaptionHorizontalOffset() |
This will retrieve the horizontal offset of the caption.
|
java.lang.String |
getCaptionStyle() |
This will retrieve the caption positioning.
|
float |
getCaptionVerticalOffset() |
This will retrieve the vertical offset of the caption.
|
java.lang.String |
getEndPointEndingStyle() |
This will retrieve the line ending style for the end point, possible values shown in the LE_ constants section.
|
java.awt.Color |
getInteriorColor() |
This will retrieve the interior color of the line endings defined in the LE entry.
|
float |
getLeaderExtend() |
This will retrieve the length of the leader line extensions.
|
float |
getLeaderLength() |
This will retrieve the length of the leader line.
|
float |
getLeaderOffset() |
This will retrieve the length of the leader line offset.
|
float[] |
getLine() |
This will retrieve the start and end coordinates of the line (or leader line if LL entry is set).
|
java.lang.String |
getStartPointEndingStyle() |
This will retrieve the line ending style for the start point, possible values shown in the LE_ constants section.
|
void |
setCaption(boolean cap) |
This will set if the contents are shown as a caption to the line.
|
void |
setCaptionHorizontalOffset(float offset) |
This will set the horizontal offset of the caption.
|
void |
setCaptionStyle(java.lang.String captionStyle) |
This will set the caption positioning.
|
void |
setCaptionVerticalOffset(float offset) |
This will set the vertical offset of the caption.
|
void |
setEndPointEndingStyle(java.lang.String style) |
This will set the line ending style for the end point, see the LE_ constants for the possible values.
|
void |
setInteriorColor(java.awt.Color color) |
This will set interior color of the line endings defined in the LE entry.
|
void |
setLeaderExtend(float leaderExtend) |
This will set the length of the leader line extensions.
|
void |
setLeaderLength(float leaderLength) |
This will set the length of the leader line.
|
void |
setLeaderOffset(float leaderOffset) |
This will set the length of the leader line offset.
|
void |
setLine(float[] line) |
This will set start and end coordinates of the line (or leader line if LL entry is set).
|
void |
setStartPointEndingStyle(java.lang.String style) |
This will set the line ending style for the start point, see the LE_ constants for the possible values.
|
create, getBorderEffect, getBorderStyle, getColor, getContents, getCOSObject, getCreationDate, getDate, getIntent, getName, getOpacity, getPage, getRectangle, getRichContents, getStringOrStream, getSubject, getTitle, isHidden, isInvisible, isLocked, isNoRotate, isNoView, isNoZoom, isPrinted, isReadOnly, isToggleNoView, setBorderEffect, setBorderStyle, setColor, setContents, setCreationDate, setDate, setHidden, setIntent, setInvisible, setLocked, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPage, setPrinted, setReadOnly, setRectangle, setRichContents, setSubject, setTitle, setToggleNoView
public static final java.lang.String SUBTYPE
public FDFAnnotationLine()
public FDFAnnotationLine(COSDictionary a)
a
- An existing FDF Annotation.public FDFAnnotationLine(org.w3c.dom.Element element) throws java.io.IOException
element
- An XFDF element.java.io.IOException
- If there is an error extracting information from the element.public void setLine(float[] line)
line
- array of 4 floats [x1, y1, x2, y2] line start and end points in default user space.public float[] getLine()
public void setStartPointEndingStyle(java.lang.String style)
style
- The new style.public java.lang.String getStartPointEndingStyle()
public void setEndPointEndingStyle(java.lang.String style)
style
- The new style.public java.lang.String getEndPointEndingStyle()
public void setInteriorColor(java.awt.Color color)
color
- The interior color of the line endings.public java.awt.Color getInteriorColor()
public void setCaption(boolean cap)
cap
- Boolean value.public boolean getCaption()
public float getLeaderLength()
public void setLeaderLength(float leaderLength)
leaderLength
- length of the leader linepublic float getLeaderExtend()
public void setLeaderExtend(float leaderExtend)
leaderExtend
- length of the leader line extensionspublic float getLeaderOffset()
public void setLeaderOffset(float leaderOffset)
leaderOffset
- length of the leader line offsetpublic java.lang.String getCaptionStyle()
public void setCaptionStyle(java.lang.String captionStyle)
captionStyle
- caption positioningpublic void setCaptionHorizontalOffset(float offset)
offset
- the horizontal offset of the captionpublic float getCaptionHorizontalOffset()
public void setCaptionVerticalOffset(float offset)
offset
- vertical offset of the captionpublic float getCaptionVerticalOffset()
Copyright © 2002–2018. All rights reserved.