|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.stefanochizzolini.clown.objects.PdfObjectWrapper<PdfDictionary> it.stefanochizzolini.clown.documents.interaction.annotations.Annotation it.stefanochizzolini.clown.documents.interaction.annotations.Line
public class Line
Line annotation [PDF:1.6:8.4.5].
It displays displays a single straight line on the page. When opened, it displays a pop-up window containing the text of the associated note.
Nested Class Summary | |
---|---|
static class |
Line.LineEndStyleEnum
Line ending style [PDF:1.6:8.4.5]. |
Nested classes/interfaces inherited from class it.stefanochizzolini.clown.documents.interaction.annotations.Annotation |
---|
Annotation.FlagsEnum |
Constructor Summary | |
---|---|
Line(Page page,
Point2D startPoint,
Point2D endPoint)
|
|
Line(PdfDirectObject baseObject,
PdfIndirectObject container)
|
Method Summary | |
---|---|
Line |
clone(Document context)
Gets a clone of the object, registered inside the given document context. |
Point2D |
getEndPoint()
Gets the ending coordinates. |
Line.LineEndStyleEnum |
getEndStyle()
Gets the style of the ending line ending. |
DeviceRGBColor |
getFillColor()
Gets the color with which to fill the interior of the annotation's line endings. |
double |
getLeaderLineExtensionLength()
Gets the length of leader line extensions that extend in the opposite direction from the leader lines. |
double |
getLeaderLineLength()
Gets the length of leader lines that extend from each endpoint of the line perpendicular to the line itself. |
Point2D |
getStartPoint()
Gets the starting coordinates. |
Line.LineEndStyleEnum |
getStartStyle()
Gets the style of the starting line ending. |
boolean |
isCaptionVisible()
Gets whether the contents should be shown as a caption. |
void |
setCaptionVisible(boolean value)
|
void |
setEndPoint(Point2D value)
|
void |
setEndStyle(Line.LineEndStyleEnum value)
|
void |
setFillColor(DeviceRGBColor value)
|
void |
setLeaderLineExtensionLength(double value)
|
void |
setLeaderLineLength(double value)
|
void |
setStartPoint(Point2D value)
|
void |
setStartStyle(Line.LineEndStyleEnum value)
|
Methods inherited from class it.stefanochizzolini.clown.documents.interaction.annotations.Annotation |
---|
getAction, getActions, getAppearance, getBorder, getBox, getFlags, getModificationDate, getName, getPage, getText, isPrintable, isVisible, setAction, setActions, setAppearance, setBorder, setBox, setFlags, setModificationDate, setName, setPage, setPrintable, setText, setVisible, wrap, wrap |
Methods inherited from class it.stefanochizzolini.clown.objects.PdfObjectWrapper |
---|
delete, getBaseDataObject, getBaseObject, getContainer, getDocument, getFile, setBaseObject, setContainer, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Line(Page page, Point2D startPoint, Point2D endPoint)
public Line(PdfDirectObject baseObject, PdfIndirectObject container)
Method Detail |
---|
public Line clone(Document context)
PdfObjectWrapper
clone
in class Annotation
context
- Which document the clone has to be registered in.public Point2D getEndPoint()
public Line.LineEndStyleEnum getEndStyle()
public DeviceRGBColor getFillColor()
public double getLeaderLineExtensionLength()
public double getLeaderLineLength()
A positive value means that the leader lines appear in the direction that is clockwise when traversing the line from its starting point to its ending point; a negative value indicates the opposite direction.
public Point2D getStartPoint()
public Line.LineEndStyleEnum getStartStyle()
public boolean isCaptionVisible()
public void setCaptionVisible(boolean value)
isCaptionVisible()
public void setEndPoint(Point2D value)
getEndPoint()
public void setEndStyle(Line.LineEndStyleEnum value)
getEndStyle()
public void setFillColor(DeviceRGBColor value)
getFillColor()
public void setLeaderLineExtensionLength(double value)
getLeaderLineExtensionLength()
public void setLeaderLineLength(double value)
getLeaderLineLength()
public void setStartPoint(Point2D value)
getStartPoint()
public void setStartStyle(Line.LineEndStyleEnum value)
getStartStyle()
|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |