|
DynamicPDF by ceTe Software | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cete.dynamicpdf.PageElement
com.cete.dynamicpdf.pageelements.TaggablePageElement
com.cete.dynamicpdf.pageelements.Path
public class Path
This class can be used to specify a collection of sub paths which will be used to complete your path. Sub paths that can be added are CurveFromSubPath, CurveSubPath, CurveToSubPath and LineSubPath.
Licensing:
This class is a DynamicPDF Generator Professional Edition
feature. One of the following licenses is required for non-evaluation usage:
| Constructor Summary | |
|---|---|
Path(float x,
float y)
Initializes a new instance of the Path class. |
|
Path(float x,
float y,
Color lineColor)
Initializes a new instance of the Path class. |
|
Path(float x,
float y,
Color lineColor,
Color fillColor)
Initializes a new instance of the Path class. |
|
Path(float x,
float y,
Color lineColor,
Color fillColor,
float lineWidth,
LineStyle lineStyle,
boolean closePath)
Initializes a new instance of the Path class. |
|
Path(float x,
float y,
Color lineColor,
float lineWidth,
LineStyle lineStyle)
Initializes a new instance of the Path class. |
|
Path(float x,
float y,
Color lineColor,
float lineWidth,
LineStyle lineStyle,
boolean closePath)
Initializes a new instance of the Path class. |
|
| Method Summary | |
|---|---|
void |
draw(PageWriter writer)
Draws the path to the given PageWriter object. |
boolean |
getClosePath()
Gets a value specifying if the path should be closed. |
Color |
getFillColor()
Gets the Color object to use for the fill of the path. |
LineCap |
getLineCap()
Gets the LineCap enumeration used to specify the line cap
style of the path's lines. |
Color |
getLineColor()
Gets the Color object to use for the path's lines. |
LineJoin |
getLineJoin()
Gets the LineJoin enumeration used to specify the line join
style of the path's lines. |
LineStyle |
getLineStyle()
Gets the LineStyle object used to specify the style
of the path's lines. |
float |
getLineWidth()
Gets the width of the path's lines. |
float |
getMiterLimit()
Gets the miter limit of the path's lines. |
SubPathList |
getSubPaths()
Gets SubPathList that contains a collection of
SubPath objects. |
float |
getX()
Gets the X coordinate of the path. |
float |
getY()
Gets the Y coordinate of the path. |
void |
setClosePath(boolean value)
Sets a value specifying if the path should be closed. |
void |
setFillColor(Color value)
Sets the Color object to use for the fill of the path. |
void |
setLineCap(LineCap value)
Sets the LineCap enumeration used to specify the line cap
style of the path's lines. |
void |
setLineColor(Color value)
Sets the Color object to use for the path's lines. |
void |
setLineJoin(LineJoin value)
Sets the LineJoin enumeration used to specify the line join
style of the path's lines. |
void |
setLineStyle(LineStyle value)
Sets the LineStyle object used to specify the style
of the path's lines. |
void |
setLineWidth(float value)
Sets the width of the path's lines. |
void |
setMiterLimit(float value)
Sets the miter limit of the path's lines. |
void |
setX(float value)
Set the X coordinate of the path. |
void |
setY(float value)
Sets the Y coordinate of the path. |
| 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 Path(float x,
float y)
Path class.
x - X coordinate of the path.y - Y coordinate of the path.Path
public Path(float x,
float y,
Color lineColor)
Path class.
x - X coordinate of the path.y - Y coordinate of the path.lineColor - Color of the lines of the path.Path
public Path(float x,
float y,
Color lineColor,
Color fillColor)
Path class.
x - X coordinate of the path.y - Y coordinate of the path.lineColor - Color of the lines of the path.fillColor - Color of the fill of the path.Path
public Path(float x,
float y,
Color lineColor,
float lineWidth,
LineStyle lineStyle)
Path class.
x - X coordinate of the path.y - Y coordinate of the path.lineColor - Color of the lines of the path.lineWidth - Width of the lines of the path.lineStyle - Style of the lines of the path.Path
public Path(float x,
float y,
Color lineColor,
float lineWidth,
LineStyle lineStyle,
boolean closePath)
Path class.
x - X coordinate of the path.y - Y coordinate of the path.lineColor - Color of the lines of the path.lineWidth - Width of the lines of the path.lineStyle - Style of the lines of the path.closePath - Specifies if the path should be closed.Path
public Path(float x,
float y,
Color lineColor,
Color fillColor,
float lineWidth,
LineStyle lineStyle,
boolean closePath)
Path class.
x - X coordinate of the path.y - Y coordinate of the path.lineColor - Color of the lines of the path.fillColor - Color of the fill of the path.lineWidth - Width of the lines of the path.lineStyle - Style of the lines of the path.closePath - Specifies if the path should be closed.Path| Method Detail |
|---|
public void setLineStyle(LineStyle value)
LineStyle object used to specify the style
of the path's lines.
value - the line style of the path's lines.LineStylepublic LineStyle getLineStyle()
LineStyle object used to specify the style
of the path's lines.
LineStylepublic void setLineCap(LineCap value)
LineCap enumeration used to specify the line cap
style of the path's lines.
value - the line cap of the path's lines.LineCappublic LineCap getLineCap()
LineCap enumeration used to specify the line cap
style of the path's lines.
LineCappublic void setLineJoin(LineJoin value)
LineJoin enumeration used to specify the line join
style of the path's lines.
value - the line join
style of the path's lines.LineJoinpublic LineJoin getLineJoin()
LineJoin enumeration used to specify the line join
style of the path's lines.
LineJoinpublic void setMiterLimit(float value)
value - the miter limit of the path's lines.public float getMiterLimit()
public SubPathList getSubPaths()
SubPathList that contains a collection of
SubPath objects.
SubPathList,
SubPathpublic void setLineWidth(float value)
value - the width of the path's lines.public float getLineWidth()
public void setLineColor(Color value)
Color object to use for the path's lines.
value - the line color of the path's lines.Colorpublic Color getLineColor()
Color object to use for the path's lines.
Colorpublic void setFillColor(Color value)
Color object to use for the fill of the path.
value - the fill color of the path's lines.Colorpublic Color getFillColor()
Color object to use for the fill of the path.
Colorpublic void setX(float value)
setX in interface ICoordinatevalue - the x coordinate of the path's lines.public float getX()
getX in interface ICoordinatepublic void setY(float value)
setY in interface ICoordinatevalue - the y coordinate of the path's lines.public float getY()
getY in interface ICoordinatepublic void setClosePath(boolean value)
value - specifying if the path should be closed.public boolean getClosePath()
public void draw(PageWriter writer)
PageWriter object.
draw in class TaggablePageElementwriter - PageWriter object to receive the sub path's output.PageWriter
|
DynamicPDF by ceTe Software | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||