org.foray.ps
Class PsPathCurve

java.lang.Object
  extended by org.foray.ps.PsPathElement
      extended by org.foray.ps.PsPathCurve

public class PsPathCurve
extends PsPathElement

A Bezier cubic curve section in a path.


Constructor Summary
PsPathCurve(PsNumber control1X, PsNumber control1Y, PsNumber control2X, PsNumber control2Y, PsNumber control3X, PsNumber control3Y)
          Constructor.
 
Method Summary
 PsNumber getControl1X()
          Returns the "x" value for control point 1.
 PsNumber getControl1Y()
          Returns the "y" value for control point 1.
 PsNumber getControl2X()
          Returns the "x" value for control point 2.
 PsNumber getControl2Y()
          Returns the "y" value for control point 2.
 PsNumber getControl3X()
          Returns the "x" value for control point 3.
 PsNumber getControl3Y()
          Returns the "y" value for control point 3.
 PsNumber getEndX()
          Returns the "x" value of the end-point of this element.
 PsNumber getEndY()
          Returns the "y" value of the end-point of this element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PsPathCurve

public PsPathCurve(PsNumber control1X,
                   PsNumber control1Y,
                   PsNumber control2X,
                   PsNumber control2Y,
                   PsNumber control3X,
                   PsNumber control3Y)
Constructor.

Parameters:
control1X - Control point 1, x value.
control1Y - Control point 1, yx value.
control2X - Control point 2, x value.
control2Y - Control point 2, y value.
control3X - Control point 3, x value.
control3Y - Control point 3, y value.
Method Detail

getControl1X

public PsNumber getControl1X()
Returns the "x" value for control point 1.

Returns:
The "x" value for control point 1.

getControl1Y

public PsNumber getControl1Y()
Returns the "y" value for control point 1.

Returns:
The "y" value for control point 1.

getControl2X

public PsNumber getControl2X()
Returns the "x" value for control point 2.

Returns:
The "x" value for control point 2.

getControl2Y

public PsNumber getControl2Y()
Returns the "y" value for control point 2.

Returns:
The "y" value for control point 2.

getControl3X

public PsNumber getControl3X()
Returns the "x" value for control point 3.

Returns:
The "x" value for control point 3.

getControl3Y

public PsNumber getControl3Y()
Returns the "y" value for control point 3.

Returns:
The "y" value for control point 3.

getEndX

public PsNumber getEndX()
Description copied from class: PsPathElement
Returns the "x" value of the end-point of this element.

Specified by:
getEndX in class PsPathElement
Returns:
The "x" value of the end-point of this element.

getEndY

public PsNumber getEndY()
Description copied from class: PsPathElement
Returns the "y" value of the end-point of this element.

Specified by:
getEndY in class PsPathElement
Returns:
The "y" value of the end-point of this element.


Copyright © 2017. All rights reserved.