|
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.PDFRectangle
This class represents PDF Rectangle 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 | |
PDFRectangle(int x,
int y,
int width,
int height)
Constructs a PDFRectangle object with default outline width, default outline color and fill color |
|
PDFRectangle(int x,
int y,
int width,
int height,
int outlineWidth,
java.awt.Color outLineColor,
java.awt.Color fillColor)
Constructs a PDFRectangle object with specified outline color, outline width and fill color |
|
| Method Summary | |
java.lang.Object |
clone()
Returns the clone of this object, here is PDFRectangle |
boolean |
getFillMode()
Method which returns the state of fill mode |
int |
getHeight()
Method which returns the value of height of the rectangle |
int |
getJoinStyle()
Method which returns the value of join style for lines of rectangle |
int |
getOutlineWidth()
Method which returns the outline width of rectangle |
PDFPattern |
getPattern()
Returns the PDFPattern which is used to fill to this object |
int |
getWidth()
Method which returns the value of width of the rectangle |
int |
getX()
Method which returns the value of x coordinate |
int |
getY()
Method which returns the value of y coordinate |
void |
setFillColor(java.awt.Color fillColor)
Method which sets the fill color of PDFRectangle |
void |
setFillMode(boolean flag)
Method which sets the state of fill mode |
void |
setHeight(int height)
Method which sets the value of height of the rectangle |
void |
setJoinStyle(int style)
Method which sets the value of join style for lines of rectangle |
void |
setOutlineColor(java.awt.Color outLineColor)
Method which sets the outline color of rectangle |
void |
setOutlineWidth(int width)
Method which sets the outline width of rectangle |
void |
setPattern(PDFPattern pattern)
Sets the PDFPattern to fill this object |
void |
setWidth(int width)
Method which sets the value of width of the rectangle |
void |
setX(int x)
Method which sets the value of x coordinate |
void |
setY(int y)
Method which sets the value of y coordinate |
| 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 PDFRectangle(int x,
int y,
int width,
int height)
x - The x coordinate valuey - The y coordinate valuewidth - The width of the rectangleheight - The height of the rectangle
public PDFRectangle(int x,
int y,
int width,
int height,
int outlineWidth,
java.awt.Color outLineColor,
java.awt.Color fillColor)
x - The x coordinate valuey - The y coordinate valuewidth - The width of the rectangleheight - The height of the rectangleoutlineWidth - The out line width of the rectangleoutLineColor - The outline color of the rectanglefillColor - The fill color of the rectangle| Method Detail |
public void setX(int x)
x - The value of x coordinatepublic int getX()
public void setY(int y)
y - The value of y coordinatepublic int getY()
public void setWidth(int width)
width - The value of width of the rectanglepublic int getWidth()
public void setHeight(int height)
height - The value of height of the rectanglepublic int getHeight()
public void setOutlineWidth(int width)
width - the outline width of rectanglepublic int getOutlineWidth()
public void setJoinStyle(int style)
style - The value of join style for lines of rectangle
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, rectangle will be filled with fill colorpublic boolean getFillMode()
public void setFillColor(java.awt.Color fillColor)
fillColor - The specified fill color for the PDFRectanglepublic void setOutlineColor(java.awt.Color outLineColor)
outLineColor - The specified outline color for the PDFRectanglepublic 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 | |||||||||