|
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.PDFArc
This class represents PDF Arc 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 | |
PDFArc(int x1,
int y1,
int x2,
int y2,
int cx1,
int cy1,
int cx2,
int cy2)
Constructs the PDFArc object with default outline width, default outline color and fill color It constructs the PDFArc object with the specified two start point and the specified two control points |
|
PDFArc(int x1,
int y1,
int x2,
int y2,
int cx1,
int cy1,
int cx2,
int cy2,
int outlineWidth,
java.awt.Color outLineColor,
java.awt.Color fillColor)
Constructs the PDFArc object with default outline width, default outline color and fill color It constructs the PDFArc object with the specified start point, end point, two control points, outline width, line color and fill color |
|
| Method Summary | |
java.lang.Object |
clone()
Returns the clone of this object |
int |
getCX1()
Returns the X coordinate of the first control point of the arc |
int |
getCX2()
Returns the X coordinate of the second control point of the arc |
int |
getCY1()
Returns the Y coordinate of the first control point of the arc |
int |
getCY2()
Returns the Y coordinate of the second control point of the arc |
boolean |
getFillMode()
Method which returns the state of fill mode |
int |
getOutlineWidth()
Method which returns the outline width of arc |
PDFPattern |
getPattern()
Returns the PDFPattern which is used to fill to this object |
int |
getX1()
Returns the X coordinate of the first point of the arc |
int |
getX2()
Returns the X coordinate of the second point of the arc |
int |
getY1()
Returns the Y coordinate of the first point of the arc |
int |
getY2()
Returns the Y coordinate of the first point of the arc |
void |
setCX1(int cx)
Method which sets the X coordinate of the first control point of the arc |
void |
setCX2(int cx)
Method which sets the X coordinate of the second control point of the arc |
void |
setCY1(int cy)
Method which sets the Y coordinate of the first control point of the arc |
void |
setCY2(int cy)
Method which sets the Y coordinate of the second control point of the arc |
void |
setFillColor(java.awt.Color fillColor)
Method which sets the fill color of arc |
void |
setFillMode(boolean flag)
Method which sets the state of fill mode |
void |
setOutlineColor(java.awt.Color outLineColor)
Method which sets the outline color of arc |
void |
setOutlineWidth(int width)
Method which sets the outline width of arc |
void |
setPattern(PDFPattern pattern)
Sets the PDFPattern to fill this object |
void |
setX1(int x)
Method which sets the X coordinate of the first point of the arc |
void |
setX2(int x)
Method which sets the X coordinate of the second point of the arc |
void |
setY1(int y)
Method which sets the Y coordinate of the first point of the arc |
void |
setY2(int y)
Method which sets the Y coordinate of the second point of the arc |
| 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 PDFArc(int x1,
int y1,
int x2,
int y2,
int cx1,
int cy1,
int cx2,
int cy2)
x1 - The x coordinate of the start point of the arcy1 - The y coordinate of the start point of the arcx2 - The x coordinate of the end point of the arcy2 - The y coordinate of the end point of the arccx1 - The x coordinate of the first control pointcy1 - The y coordinate of the first control pointcx2 - The x coordinate of the second control pointcy2 - The y coordinate of the second control point
public PDFArc(int x1,
int y1,
int x2,
int y2,
int cx1,
int cy1,
int cx2,
int cy2,
int outlineWidth,
java.awt.Color outLineColor,
java.awt.Color fillColor)
x1 - The x coordinate of the start point of the arcy1 - The y coordinate of the start point of the arcx2 - The x coordinate of the end point of the arcy2 - The y coordinate of the end point of the arccx1 - The x coordinate of the first control point for the arccy1 - The y coordinate of the first control point for the arccx2 - The x coordinate of the second control point for the arccy2 - The y coordinate of the second control point for the arcoutlineWidth - The out line width of the arcoutLineColor - The out line color of the arcfillColor - The fill color of the arc| Method Detail |
public void setX1(int x)
x - The X coordinate of the first point of the arcpublic int getX1()
public void setY1(int y)
y - The Y coordinate of the first point of the arcpublic int getY1()
public void setX2(int x)
x - The X coordinate of the second point of the arcpublic int getX2()
public void setY2(int y)
y - The Y coordinate of the second point of the arcpublic int getY2()
public void setCX1(int cx)
cx - The X coordinate of the first control point of the arcpublic int getCX1()
public void setCY1(int cy)
cy - The Y coordinate of the first control point of the arcpublic int getCY1()
public void setCX2(int cx)
cx - The X coordinate of the second control point of the arcpublic int getCX2()
public void setCY2(int cy)
cy - The Y coordinate of the second control point of the arcpublic int getCY2()
public void setOutlineWidth(int width)
width - the outline width of arcpublic int getOutlineWidth()
public void setFillMode(boolean flag)
flag - the state of fill mode
if true, arc will be filled with fill colorpublic boolean getFillMode()
public void setFillColor(java.awt.Color fillColor)
fillColor - the fill color of arcpublic void setOutlineColor(java.awt.Color outLineColor)
outLineColor - The outline color of arcpublic void setPattern(PDFPattern pattern)
public PDFPattern getPattern()
public 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 | |||||||||