|
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.Line
This class can be used to place lines of different length, width, color and patterns on a page.
View Example
| Constructor Summary | |
Line(float x1,
float y1,
float x2,
float y2)
Initializes a new instance of the Line class. |
|
Line(float x1,
float y1,
float x2,
float y2,
Color color)
Initializes a new instance of the Line class. |
|
Line(float x1,
float y1,
float x2,
float y2,
float width)
Initializes a new instance of the Line class. |
|
Line(float x1,
float y1,
float x2,
float y2,
float width,
Color color)
Initializes a new instance of the Line class. |
|
Line(float x1,
float y1,
float x2,
float y2,
float width,
Color color,
LineStyle style)
Initializes a new instance of the Line class. |
|
| Method Summary | |
void |
draw(PageWriter writer)
Draws the line to the given PageWriter object. |
LineCap |
getCap()
Gets the LineCap enumeration used to specify the line cap style of the line. |
Color |
getColor()
Gets the Color object to use for the line. |
LineStyle |
getStyle()
Gets the LineStyle object to use for the style of the line. |
float |
getWidth()
Gets the width of the line. |
float |
getX1()
Gets the X1 coordinate of the line. |
float |
getX2()
Gets the X2 coordinate of the line. |
float |
getY1()
Gets the Y1 coordinate of the line. |
float |
getY2()
Gets the Y2 coordinate of the line. |
void |
setCap(LineCap value)
Sets the LineCap enumeration used to specify the line cap style of the line. |
void |
setColor(Color value)
Sets the Color object to use for the line. |
void |
setStyle(LineStyle value)
Sets the LineStyle object to use for the style of the line. |
void |
setWidth(float value)
Sets the width of the line. |
void |
setX1(float value)
Sets the X1 coordinate of the line. |
void |
setX2(float value)
Sets the X2 coordinate of the line. |
void |
setY1(float value)
Sets the Y1 coordinate of the line. |
void |
setY2(float value)
Sets the Y2 coordinate of the line. |
| 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 |
| Constructor Detail |
public Line(float x1,
float y1,
float x2,
float y2)
Line class.
x1 - X1 coordinate of the line.y1 - Y1 coordinate of the line.x2 - X2 coordinate of the line.y2 - Y2 coordinate of the line.Line
public Line(float x1,
float y1,
float x2,
float y2,
float width)
Line class.
x1 - X1 coordinate of the line.y1 - Y1 coordinate of the line.x2 - X2 coordinate of the line.y2 - Y2 coordinate of the line.width - Width of the line.Line
public Line(float x1,
float y1,
float x2,
float y2,
Color color)
Line class.
x1 - X1 coordinate of the line.y1 - Y1 coordinate of the line.x2 - X2 coordinate of the line.y2 - Y2 coordinate of the line.color - Color of the line.Line
public Line(float x1,
float y1,
float x2,
float y2,
float width,
Color color)
Line class.
x1 - X1 coordinate of the line.y1 - Y1 coordinate of the line.x2 - X2 coordinate of the line.y2 - Y2 coordinate of the line.width - Width of the line.color - Color of the line.Line
public Line(float x1,
float y1,
float x2,
float y2,
float width,
Color color,
LineStyle style)
Line class.
x1 - X1 coordinate of the line.y1 - Y1 coordinate of the line.x2 - X2 coordinate of the line.y2 - Y2 coordinate of the line.width - Width of the line.color - Color of the line.style - Style of the line.Line| Method Detail |
public void setStyle(LineStyle value)
LineStyle object to use for the style of the line.
LineStylepublic LineStyle getStyle()
LineStyle object to use for the style of the line.
LineStylepublic void setCap(LineCap value)
LineCap enumeration used to specify the line cap style of the line.
LineCappublic LineCap getCap()
LineCap enumeration used to specify the line cap style of the line.
LineCappublic void setWidth(float value)
public float getWidth()
public void setColor(Color value)
Color object to use for the line.
Colorpublic Color getColor()
Color object to use for the line.
Colorpublic void setX1(float value)
public float getX1()
public void setY1(float value)
public float getY1()
public void setX2(float value)
public float getX2()
public void setY2(float value)
public float getY2()
public void draw(PageWriter writer)
PageWriter object.
draw in class PageElementwriter - PageWriter object to receive the line's output.PageWriter
|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||