DynamicPDF by ceTe Software

com.cete.dynamicpdf.pageelements
Class CurveFromSubPath

java.lang.Object
  extended by com.cete.dynamicpdf.pageelements.SubPath
      extended by com.cete.dynamicpdf.pageelements.CurveFromSubPath

public class CurveFromSubPath
extends SubPath

This class, when added to a Path, is used to create a B�zier curve from the CurveToSubPath's specified location back to the last point in the Path.

Licensing:
This class is a DynamicPDF Generator Professional Edition feature. One of the following licenses is required for non-evaluation usage:

View Example


Constructor Summary
CurveFromSubPath(float x, float y, float sourceControlPointX, float sourceControlPointY)
          Initializes a new instance of the CurveFromSubPath class.
 
Method Summary
 void draw(PageWriter writer)
          Draws the sub path to the given PageWriter object.
 float getSourceControlPointX()
          Gets the X coordinate of the sources control point.
 float getSourceControlPointY()
          Gets the Y coordinate of the sources control point.
 float getX()
          Gets the X coordinate of the destination.
 float getY()
          Gets the Y coordinate of the destination.
 void setSourceControlPointX(float value)
          Sets the X coordinate of the sources control point.
 void setSourceControlPointY(float value)
          Sets the Y coordinate of the sources control point.
 void setX(float value)
          Sets the X coordinate of the destination.
 void setY(float value)
          Sets the Y coordinate of the destination.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurveFromSubPath

public CurveFromSubPath(float x,
                        float y,
                        float sourceControlPointX,
                        float sourceControlPointY)
Initializes a new instance of the CurveFromSubPath class.

Parameters:
x - X coordinate of the destination.
y - Y coordinate of the destination.
sourceControlPointX - X coordinate of the sources control point.
sourceControlPointY - Y coordinate of the sources control point.
See Also:
CurveFromSubPath
Method Detail

setX

public void setX(float value)
Sets the X coordinate of the destination.

Parameters:
value - the X coordinate of the destination.

getX

public float getX()
Gets the X coordinate of the destination.

Returns:
the X coordinate of the destination.

setY

public void setY(float value)
Sets the Y coordinate of the destination.

Parameters:
value - the Y coordinate of the destination.

getY

public float getY()
Gets the Y coordinate of the destination.

Returns:
the Y coordinate of the destination.

setSourceControlPointX

public void setSourceControlPointX(float value)
Sets the X coordinate of the sources control point.

Parameters:
value - the X coordinate of the sources control point.

getSourceControlPointX

public float getSourceControlPointX()
Gets the X coordinate of the sources control point.

Returns:
the X coordinate of the sources control point.

setSourceControlPointY

public void setSourceControlPointY(float value)
Sets the Y coordinate of the sources control point.

Parameters:
value - the Y coordinate of the sources control point.

getSourceControlPointY

public float getSourceControlPointY()
Gets the Y coordinate of the sources control point.

Returns:
the Y coordinate of the sources control point.

draw

public void draw(PageWriter writer)
Draws the sub path to the given PageWriter object.

Specified by:
draw in class SubPath
Parameters:
writer - PageWriter object to receive the sub path's output.
See Also:
PageWriter

DynamicPDF by ceTe Software

API Reference for DynamicPDF v10.07 for Java generated on Aug 12, 2020
© Copyright 2020, ceTe Software