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, getName, getOpacity, getRectangle, 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, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPrintable, setReadOnly, setRectangle, setSubtype, setTriggerActions, shiftRectangle
 

Field Detail

LINE_ARROW

public static final String LINE_ARROW
See Also:
Constant Field Values

LINE_DIMENSION

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

getX1

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

Returns:
The origin's x coordinate.

getX2

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

Returns:
The endpoint's x coordinate.

getY1

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

Returns:
The origin's y coordinate.

getY2

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

Returns:
The endpoint's y coordinate.

setX1

public void setX1(double x1)

setX2

public void setX2(double x2)

setY1

public void setY1(double y1)

setY2

public void setY2(double y2)

getLineEndStyle

public int getLineEndStyle()

getLineStartStyle

public int getLineStartStyle()

setLineEndStyle

public void setLineEndStyle(String style)

setLineStartStyle

public void setLineStartStyle(String style)

revalidateRectangle

public void revalidateRectangle()

getIntent

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

Returns:
intent

isIntentArrow

public boolean isIntentArrow()

isIntentDimension

public boolean isIntentDimension()