org.openscience.cdk.renderer.elements.path
Class QuadTo

java.lang.Object
  extended by org.openscience.cdk.renderer.elements.path.PathElement
      extended by org.openscience.cdk.renderer.elements.path.QuadTo

@TestClass(value="org.openscience.cdk.renderer.elements.path.QuadToTest")
public class QuadTo
extends PathElement

Make a quadratic curve in the path.

Author:
Arvid
Belongs to CDK module:
renderbasic
Source code:
HEAD

Field Summary
 javax.vecmath.Point2d cp
          control point of the curve.
 javax.vecmath.Point2d ep
          end point of the curve.
 
Fields inherited from class org.openscience.cdk.renderer.elements.path.PathElement
type
 
Constructor Summary
QuadTo(javax.vecmath.Point2d cp, javax.vecmath.Point2d ep)
          Make a quad curve.
 
Method Summary
 float[] points()
          Get the points in the path.
 
Methods inherited from class org.openscience.cdk.renderer.elements.path.PathElement
type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cp

public final javax.vecmath.Point2d cp
control point of the curve.


ep

public final javax.vecmath.Point2d ep
end point of the curve.

Constructor Detail

QuadTo

@TestMethod(value="testConstructor")
public QuadTo(javax.vecmath.Point2d cp,
                              javax.vecmath.Point2d ep)
Make a quad curve.

Parameters:
cp - control point of the curve
ep - end point of the curve
Method Detail

points

@TestMethod(value="testPoints")
public float[] points()
Get the points in the path.

Specified by:
points in class PathElement
Returns:
a list of points