|
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.TaggablePageElement com.cete.dynamicpdf.pageelements.Line
public class Line
This class can be used to place lines of different length, width, color and patterns on a page.
Licensing:
This class is a DynamicPDF Generator Community Edition feature.
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.pageelements.TaggablePageElement |
---|
getTag, getTagOrder, setTag, setTagOrder |
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.
GeneratorException
- If Line width is less than or equal to zero.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.
value
- the line style of the line.LineStyle
public LineStyle getStyle()
LineStyle
object to use for the style of the line.
LineStyle
public void setCap(LineCap value)
LineCap
enumeration used to specify the line cap style of the line.
value
- the line cap of the line.LineCap
public LineCap getCap()
LineCap
enumeration used to specify the line cap style of the line.
LineCap
public void setWidth(float value)
GeneratorException
- If Line width is less than or equal to zero.value
- the width of the line.public float getWidth()
public void setColor(Color value)
Color
object to use for the line.
value
- the color of the line.Color
public Color getColor()
Color
object to use for the line.
Color
public void setX1(float value)
value
- the X1 coordinate of the line.public float getX1()
public void setY1(float value)
value
- the Y1 coordinate of the line.public float getY1()
public void setX2(float value)
value
- the X2 coordinate of the line.public float getX2()
public void setY2(float value)
value
- the Y2 coordinate of the line.public float getY2()
public void draw(PageWriter writer)
PageWriter
object.
draw
in class TaggablePageElement
writer
- 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 |