DynamicPDF by ceTe Software

com.cete.dynamicpdf.pageelements
Class CurveToSubPath

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

public class CurveToSubPath
extends SubPath

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

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
CurveToSubPath(float x, float y, float destinationControlPointX, float destinationControlPointY)
          Initializes a new instance of the CurveToSubPath class.
 
Method Summary
 void draw(PageWriter writer)
          Draws the sub path to the given PageWriter object.
 float getDestinationControlPointX()
          Gets the X coordinate of the destinations control point.
 float getDestinationControlPointY()
          Gets the Y coordinate of the destinations control point.
 float getX()
          Gets the X coordinate of the destination.
 float getY()
          Gets the Y coordinate of the destination.
 void setDestinationControlPointX(float value)
          Sets the X coordinate of the destinations control point.
 void setDestinationControlPointY(float value)
          Sets the Y coordinate of the destinations 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

CurveToSubPath

public CurveToSubPath(float x,
                      float y,
                      float destinationControlPointX,
                      float destinationControlPointY)
Initializes a new instance of the CurveToSubPath class.

Parameters:
x - X coordinate of the destination.
y - Y coordinate of the destination.
destinationControlPointX - X coordinate of the destinations control point.
destinationControlPointY - Y coordinate of the destinations control point.
See Also:
CurveToSubPath
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.

setDestinationControlPointX

public void setDestinationControlPointX(float value)
Sets the X coordinate of the destinations control point.

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

getDestinationControlPointX

public float getDestinationControlPointX()
Gets the X coordinate of the destinations control point.

Returns:
the X coordinate of the destinations control point.

setDestinationControlPointY

public void setDestinationControlPointY(float value)
Sets the Y coordinate of the destinations control point.

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

getDestinationControlPointY

public float getDestinationControlPointY()
Gets the Y coordinate of the destinations control point.

Returns:
the Y coordinate of the destinations 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.04 for Java generated on September 25, 2019
© Copyright 2019, ceTe Software