|
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.PDFPolygon
This class represents PDF Polygon 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 | |
PDFPolygon(int[] x,
int[] y,
int npoints)
Constructs a PDFPolygon object with default line color and default fill color and default line width |
|
PDFPolygon(int[] x,
int[] y,
int npoints,
int w,
java.awt.Color outLineColor,
java.awt.Color fillColor)
Constructs a PDFPolygon object with and default line width specified line color and specified fill color |
|
| Method Summary | |
java.lang.Object |
clone()
Returns the clone of this object |
boolean |
getFillMode()
Method which returns the state of fill mode |
int |
getJoinStyle()
Method which returns the value of join style for lines of polygon |
int |
getOutlineWidth()
Method which returns the outline width of polygon |
PDFPattern |
getPattern()
Returns the PDFPattern which is used to fill to this object |
int |
getPoints()
Method which returns the no of points of polygon |
int[] |
getXCoordinates()
Method which returns the value of x coordinates for polygon |
int[] |
getYCoordinates()
Method which returns the value of y coordinates for polygon |
void |
setFillColor(java.awt.Color fillColor)
Method which sets the fill color of polygon |
void |
setFillMode(boolean flag)
Method which sets the state of fill mode |
void |
setJoinStyle(int style)
Method which sets the value of join style for lines of polygon |
void |
setOutlineColor(java.awt.Color outLineColor)
Method which sets the outline color of polygon |
void |
setOutlineWidth(int width)
Method which sets the outline width of polygon |
void |
setPattern(PDFPattern pattern)
Sets the PDFPattern to fill this object |
void |
setPoints(int points)
Method which sets the no of points of polygon |
void |
setXCoordinates(int[] x)
Method which sets the value of x coordinates for polygon |
void |
setYCoordinates(int[] y)
Method which sets the value of y coordinates for polygon |
| 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 PDFPolygon(int[] x,
int[] y,
int npoints)
x - The array of integer specifying x coordinates value of pointsy - The array of integer specifying y coordinates value of pointsnpoints - The no of points for polygon
public PDFPolygon(int[] x,
int[] y,
int npoints,
int w,
java.awt.Color outLineColor,
java.awt.Color fillColor)
x - The array of integer specifying x coordinates value of pointsy - The array of integer specifying y coordinates value of pointsnpoints - The no of points for polygonw - The width of the outline of polygonoutLineColor - The outline color of the polygonfillColor - The fill color of the polygon| Method Detail |
public void setXCoordinates(int[] x)
x - the integer array of value of x coordinates for polygonpublic int[] getXCoordinates()
public void setYCoordinates(int[] y)
y - the integer array of value of y coordinates for polygonpublic int[] getYCoordinates()
public void setPoints(int points)
points - the no of points of polygonpublic int getPoints()
public void setOutlineWidth(int width)
width - the outline width of polygonpublic int getOutlineWidth()
public void setJoinStyle(int style)
style - The value of join style for lines of polygon
possible values are PDFGraphicsObject.MITER_JOINS,
PDFGraphicsObject.ROUND_JOINS, PDFGraphicsObject.BEVEL_JOINSpublic int getJoinStyle()
public void setFillMode(boolean flag)
flag - the state of fill mode
if true, polygon will be filled with fill colorpublic boolean getFillMode()
public void setOutlineColor(java.awt.Color outLineColor)
outLineColor - The out line color of polygonpublic void setFillColor(java.awt.Color fillColor)
fillColor - The fill color of polygonpublic 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 | |||||||||