com.qoppa.pdf.annotations
Interface Line

All Superinterfaces:
Annotation, ShapeAnnotation

public interface Line
extends ShapeAnnotation

Interface representing a Line annotation in a PDF document. Line annotations are displayed as a line and can be double-clicked to display its content.

Author:
Qoppa Software

Field Summary
static String LINE_ARROW
           
static String LINE_DIMENSION
           
 
Fields inherited from interface com.qoppa.pdf.annotations.ShapeAnnotation
LE_BUTT, LE_BUTT_STR, LE_CIRCLE, LE_CIRCLE_STR, LE_CLOSEDARROW, LE_CLOSEDARROW_STR, LE_DIAMOND, LE_DIAMOND_STR, LE_NONE, LE_NONE_STR, LE_OPENARROW, LE_OPENARROW_STR, LE_SQUARE, LE_SQUARE_STR
 
Fields inherited from interface com.qoppa.pdf.annotations.Annotation
BORDERSTYLE_BEVELED, BORDERSTYLE_DASHED, BORDERSTYLE_INSETS, BORDERSTYLE_SOLID, BORDERSTYLE_UNDERLINE, FLAGS_HIDDEN, FLAGS_INVISIBLE, FLAGS_LOCKED, FLAGS_NOROTATE, FLAGS_NOVIEW, FLAGS_NOZOOM, FLAGS_PRINTABLE, FLAGS_READONLY
 
Method Summary
 String getIntent()
          Returns the description of the intent of the Line Annotation
 int getLineEndStyle()
           
 int getLineStartStyle()
           
 double getX1()
          Returns the x coordinate of the origin of this line.
 double getX2()
          Returns the x coordinate of the endpoint of this line.
 double getY1()
          Returns the y coordinate of the origin of this line.
 double getY2()
          Returns the y coordinate of the endpoint of this line.
 boolean isIntentArrow()
           
 boolean isIntentDimension()
           
 void revalidateRectangle()
           
 void setLineEndStyle(String style)
           
 void setLineStartStyle(String style)
           
 void setX1(double x1)
           
 void setX2(double x2)
           
 void setY1(double y1)
           
 void setY2(double y2)
           
 
Methods inherited from interface com.qoppa.pdf.annotations.ShapeAnnotation
getContents, getInternalColor, getStroke, setContents, setInternalColor, setStroke
 
Methods inherited from interface com.qoppa.pdf.annotations.Annotation
getActions, getBorderStyle, getBorderWidth, getColor, getComponent, getCreationDate, getCreator, getFlags, getModifiedDate, getName, getOpacity, getRectangle, getSubject, getSubtype, getTriggerActions, isHidden, isInvisible, isLocked, isNoRotate, isNoView, isNoZoom, isPrintable, isReadOnly, paint, paint, print, revalidate, setActions, setBorderStyle, setBorderWidth, setColor, setComponent, setComponentVisible, setCreationDate, setCreator, setFlags, setHidden, setInvisible, setLayer, setLocked, setModifiedDate, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPrintable, setReadOnly, setRectangle, setSubject, setSubtype, setTriggerActions, shiftRectangle
 

Field Detail

LINE_ARROW

static final String LINE_ARROW
See Also:
Constant Field Values

LINE_DIMENSION

static final String LINE_DIMENSION
See Also:
Constant Field Values
Method Detail

getX1

double getX1()
Returns the x coordinate of the origin of this line.

Returns:
The origin's x coordinate.

getX2

double getX2()
Returns the x coordinate of the endpoint of this line.

Returns:
The endpoint's x coordinate.

getY1

double getY1()
Returns the y coordinate of the origin of this line.

Returns:
The origin's y coordinate.

getY2

double getY2()
Returns the y coordinate of the endpoint of this line.

Returns:
The endpoint's y coordinate.

setX1

void setX1(double x1)

setX2

void setX2(double x2)

setY1

void setY1(double y1)

setY2

void setY2(double y2)

getLineEndStyle

int getLineEndStyle()

getLineStartStyle

int getLineStartStyle()

setLineEndStyle

void setLineEndStyle(String style)

setLineStartStyle

void setLineStartStyle(String style)

revalidateRectangle

void revalidateRectangle()

getIntent

String getIntent()
Returns the description of the intent of the Line Annotation

Returns:
intent

isIntentArrow

boolean isIntentArrow()

isIntentDimension

boolean isIntentDimension()