|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.cete.dynamicpdf.PageElement
|
+--com.cete.dynamicpdf.pageelements.RotatingPageElement
|
+--com.cete.dynamicpdf.pageelements.Rectangle
This class can be used to place rectangles of any size or color on a page.
View Example
| Constructor Summary | |
Rectangle(float x,
float y,
float width,
float height)
Initializes a new instance of the Rectangle class. |
|
Rectangle(float x,
float y,
float width,
float height,
Color borderColor)
Initializes a new instance of the Rectangle class. |
|
Rectangle(float x,
float y,
float width,
float height,
Color fillColor,
Apply apply)
Initializes a new instance of the Rectangle class. |
|
Rectangle(float x,
float y,
float width,
float height,
Color borderColor,
Color fillColor,
Apply apply)
Initializes a new instance of the Rectangle class. |
|
Rectangle(float x,
float y,
float width,
float height,
Color borderColor,
Color fillColor,
Apply apply,
float borderWidth)
Initializes a new instance of the Rectangle class. |
|
Rectangle(float x,
float y,
float width,
float height,
Color borderColor,
Color fillColor,
Apply apply,
float borderWidth,
LineStyle borderStyle)
Initializes a new instance of the Rectangle class. |
|
Rectangle(float x,
float y,
float width,
float height,
Color borderColor,
float borderWidth)
Initializes a new instance of the Rectangle class. |
|
Rectangle(float x,
float y,
float width,
float height,
Color borderColor,
float borderWidth,
LineStyle borderStyle)
Initializes a new instance of the Rectangle class. |
|
Rectangle(float x,
float y,
float width,
float height,
float borderWidth)
Initializes a new instance of the Rectangle class. |
|
Rectangle(float x,
float y,
float width,
float height,
float borderWidth,
LineStyle borderStyle)
Initializes a new instance of the Rectangle class. |
|
| Method Summary | |
protected void |
drawRotated(PageWriter writer)
Draws the rotated page element to the given PageWriterobject. |
Apply |
getApply()
Gets the Apply enumeration that specifies how color is
applied to the rectangle. |
Color |
getBorderColor()
Gets the Colorobject to use for the border of the rectangle. |
LineStyle |
getBorderStyle()
Gets the LineStyle object specifying the border style
of the rectangle. |
float |
getBorderWidth()
Gets the border width of the rectangle. |
float |
getCornerRadius()
Gets the corner radius of the rectangle. |
Color |
getFillColor()
Gets the Color object to use for the fill of the rectangle. |
float |
getWidth()
Gets the width of the rectangle. |
void |
setApply(Apply apply)
Sets the Apply enumeration that specifies how color is
applied to the rectangle. |
void |
setBorderColor(Color borderColor)
Sets the Colorobject to use for the border of the rectangle. |
void |
setBorderStyle(LineStyle borderStyle)
Sets the LineStyle object used to specify the border style
of the rectangle. |
void |
setBorderWidth(float borderWidth)
Sets the border width of the rectangle. |
void |
setCornerRadius(float cornerRadius)
Sets the corner radius of the rectangle. |
void |
setFillColor(Color fillColor)
Sets the Color object to use for the fill of the rectangle. |
void |
setWidth(float width)
Sets the width of the rectangle. |
| Methods inherited from class com.cete.dynamicpdf.pageelements.RotatingPageElement |
draw, getAngle, getHeight, getX, getY, setAngle, setHeight, setX, setY |
| Methods inherited from class com.cete.dynamicpdf.PageElement |
getRequiredLicenseLevel, getStrID, setRequiredLicenseLevel, setStrID |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.cete.dynamicpdf.pageelements.IArea |
getHeight, setHeight |
| Methods inherited from interface com.cete.dynamicpdf.pageelements.ICoordinate |
getX, getY, setX, setY |
| Constructor Detail |
public Rectangle(float x,
float y,
float width,
float height)
Rectangle class.
x - float value indicating X coordinate of the rectangle.y - float value indicating Y coordinate of the rectangle.width - float value indicating width of the rectangle.height - float value indicating height of the rectangle.
public Rectangle(float x,
float y,
float width,
float height,
Color borderColor)
Rectangle class.
x - float value indicating X coordinate of the rectangle.y - float value indicating Y coordinate of the rectangle.width - float value indicating width of the rectangle.height - float value indicating height of the rectangle.borderColor - Color of the border of the rectangle.
public Rectangle(float x,
float y,
float width,
float height,
float borderWidth)
Rectangle class.
x - float value indicating X coordinate of the rectangle.y - float value indicating Y coordinate of the rectangle.width - float value indicating width of the rectangle.height - float value indicating height of the rectangle.borderWidth - float value width of the border of the rectangle.
public Rectangle(float x,
float y,
float width,
float height,
Color borderColor,
float borderWidth)
Rectangle class.
x - float value indicating X coordinate of the rectangle.y - float value indicating Y coordinate of the rectangle.width - float value indicating width of the rectangle.height - float value indicating height of the rectangle.borderColor - Color of the border of the rectangle.borderWidth - float value width of the border of the rectangle.
public Rectangle(float x,
float y,
float width,
float height,
float borderWidth,
LineStyle borderStyle)
Rectangle class.
x - float value indicating X coordinate of the rectangle.y - float value indicating Y coordinate of the rectangle.width - float value indicating width of the rectangle.height - float value indicating height of the rectangle.borderWidth - float value width of the border of the rectangle.borderStyle - LineStyle of the border of the rectangle.
public Rectangle(float x,
float y,
float width,
float height,
Color fillColor,
Apply apply)
Rectangle class.
x - float value indicating X coordinate of the rectangle.y - float value indicating Y coordinate of the rectangle.width - float value indicating width of the rectangle.height - float value indicating height of the rectangle.fillColor - Color of the fill of the rectangle.apply - Specifies how color is applied to the rectangle.
public Rectangle(float x,
float y,
float width,
float height,
Color borderColor,
float borderWidth,
LineStyle borderStyle)
Rectangle class.
x - float value indicating X coordinate of the rectangle.y - float value indicating Y coordinate of the rectangle.width - float value indicating width of the rectangle.height - float value indicating height of the rectangle.borderColor - Color of the border of the rectangle.borderWidth - float value width of the border of the rectangle.borderStyle - LineStyle of the border of the rectangle.
public Rectangle(float x,
float y,
float width,
float height,
Color borderColor,
Color fillColor,
Apply apply)
Rectangle class.
x - float value indicating X coordinate of the rectangle.y - float value indicating Y coordinate of the rectangle.width - float value indicating width of the rectangle.height - float value indicating height of the rectangle.borderColor - Color of the border of the rectangle.fillColor - Color of the fill of the rectangle.apply - Specifies how color is applied to the rectangle.
public Rectangle(float x,
float y,
float width,
float height,
Color borderColor,
Color fillColor,
Apply apply,
float borderWidth)
Rectangle class.
x - float value indicating X coordinate of the rectangle.y - float value indicating Y coordinate of the rectangle.width - float value indicating width of the rectangle.height - float value indicating height of the rectangle.borderColor - Color of the border of the rectangle.fillColor - Color of the fill of the rectangle.apply - Specifies how color is applied to the rectangle.borderWidth - float value width of the border of the rectangle.
public Rectangle(float x,
float y,
float width,
float height,
Color borderColor,
Color fillColor,
Apply apply,
float borderWidth,
LineStyle borderStyle)
Rectangle class.
x - float value indicating X coordinate of the rectangle.y - float value indicating Y coordinate of the rectangle.width - float value indicating width of the rectangle.height - float value indicating height of the rectangle.borderColor - Color of the border of the rectangle.fillColor - Color of the fill of the rectangle.apply - Specifies how color is applied to the rectangle.borderWidth - float value width of the border of the rectangle.borderStyle - LineStyle of the border of the rectangle.| Method Detail |
public void setBorderStyle(LineStyle borderStyle)
LineStyle object used to specify the border style
of the rectangle.
borderStyle - LineStyle object used to set the border style of the
rectangle.LineStylepublic LineStyle getBorderStyle()
LineStyle object specifying the border style
of the rectangle.
LineStylepublic void setCornerRadius(float cornerRadius)
cornerRadius - the float value corner radius to be set.public float getCornerRadius()
public void setBorderWidth(float borderWidth)
borderWidth - the float value border width of the rectangle
to be set.public float getBorderWidth()
public void setBorderColor(Color borderColor)
Colorobject to use for the border of the rectangle.
borderColor - the Color object used to set the
border of the rectangle.Colorpublic Color getBorderColor()
Colorobject to use for the border of the rectangle.
Colorpublic void setFillColor(Color fillColor)
Color object to use for the fill of the rectangle.
fillColor - the Color object to use for the fill of the rectangle.Colorpublic Color getFillColor()
Color object to use for the fill of the rectangle.
Colorpublic void setWidth(float width)
setWidth in interface IAreawidth - the float width of the rectangle.public float getWidth()
getWidth in interface IAreapublic void setApply(Apply apply)
Apply enumeration that specifies how color is
applied to the rectangle.
apply - the Apply enumeration that specifies how to apply color
to the rectangle.Applypublic Apply getApply()
Apply enumeration that specifies how color is
applied to the rectangle.
Applyprotected void drawRotated(PageWriter writer)
RotatingPageElementPageWriterobject.
drawRotated in class RotatingPageElementwriter - PageWriter object to receive the page element's output.PageWriter
|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||