|
ElegantJ PDF Library Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.elegantj.pdf.PDFObject
com.elegantj.pdf.PDFGraphicsObject
com.elegantj.pdf.PDFLine
This class represents PDF Line object
| Field Summary |
| Fields inherited from class com.elegantj.pdf.PDFGraphicsObject |
BEVEL_JOINS, BUTT_CAPS, MITER_JOINS, ROUND_CAPS, ROUND_JOINS, SQUARE_CAPS |
| Constructor Summary | |
PDFLine()
Constructs a PDFLine object with default start point, end point, line color and default width |
|
PDFLine(int x1,
int y1,
int x2,
int y2)
Constructs a PDFLine object with default line color and default width |
|
PDFLine(int x1,
int y1,
int x2,
int y2,
int w)
Constructs a PDFLine object with specified width and default line color |
|
PDFLine(int x1,
int y1,
int x2,
int y2,
int w,
java.awt.Color lineColor)
Constructs a PDFLine object with specified width and specified line color |
|
| Method Summary | |
java.lang.Object |
clone()
Returns the clone of this object |
int |
getCapStyle()
Method which returns the value of cap style for line |
int |
getDashLength()
Method which returns the value of dash length for line |
int |
getEndX()
Method which returns the value of x coordinate of end point |
int |
getEndY()
Method which returns the value of y coordinate of end point |
int |
getGapLength()
Method which returns the value of gap length for line |
int |
getJoinStyle()
Method which returns the value of join style for line |
int |
getLineWidth()
Method which returns the value of width of the line |
int |
getStartX()
Method which returns the value of x coordinate of start point |
int |
getStartY()
Method which returns the value of y coordinate of start point |
void |
setCapStyle(int style)
Method which sets the value of cap style for line |
void |
setDashPattern(int dashLen,
int gapLen)
Method which sets the dash pattern for line |
void |
setEndX(int x2)
Method which sets the value of x coordinate of end point |
void |
setEndY(int y2)
Method which sets the value of y coordinate of end point |
void |
setJoinStyle(int style)
Method which sets the value of join style for line |
void |
setLineColor(java.awt.Color lineColor)
Method which sets the line color |
void |
setLineWidth(int width)
Method which sets the value of width of the line |
void |
setStartX(int x1)
Method which sets the value of x coordinate of start point |
void |
setStartY(int y1)
Method which sets the value of y coordinate of start point |
| Methods inherited from class com.elegantj.pdf.PDFObject |
getPDFObjectID, getPDFObjectRefStr, getPDFObjectType, setPDFObjectID, setPDFObjectType |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PDFLine()
public PDFLine(int x1,
int y1,
int x2,
int y2)
x1 - The x coordinate value for start pointy1 - The y coordinate value for end pointx2 - The x coordinate value for start pointy2 - The y coordinate value for end point
public PDFLine(int x1,
int y1,
int x2,
int y2,
int w)
x1 - The x coordinate value for start pointy1 - The y coordinate value for end pointx2 - The x coordinate value for start pointy2 - The y coordinate value for end pointw - The width of the line
public PDFLine(int x1,
int y1,
int x2,
int y2,
int w,
java.awt.Color lineColor)
x1 - The x coordinate value for start pointy1 - The y coordinate value for end pointx2 - The x coordinate value for start pointy2 - The y coordinate value for end pointw - The width of the linelineColor - The line color of the line| Method Detail |
public void setStartX(int x1)
x1 - The value of x coordinate of start pointpublic int getStartX()
public void setStartY(int y1)
y1 - The value of y coordinate of start pointpublic int getStartY()
public void setEndX(int x2)
public int getEndX()
public void setEndY(int y2)
public int getEndY()
public void setLineWidth(int width)
width - The value of width of the linepublic int getLineWidth()
public void setCapStyle(int style)
style - The value of cap style for line
possible values are PDFGraphicsObject.BUTT_CAPS,
PDFGraphicsObject.ROUND_CAPS, PDFGraphicsObject.SQUARE_CAPSpublic int getCapStyle()
public void setJoinStyle(int style)
style - The value of join style for line
possible values are PDFGraphicsObject.MITER_JOINS,
PDFGraphicsObject.ROUND_JOINS, PDFGraphicsObject.BEVEL_JOINSpublic int getJoinStyle()
public void setDashPattern(int dashLen,
int gapLen)
dashLen - The length of dashgapLen - The length of gappublic int getDashLength()
public int getGapLength()
public void setLineColor(java.awt.Color lineColor)
lineColor - The line colorpublic java.lang.Object clone()
|
ElegantJ PDF Library Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||