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

public class QuadTo extends PathElement
Make a quadratic curve in the path.
Author:
Arvid
Source code:
main
Belongs to CDK module:
renderbasic
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final double[]
    Coordinates of control point and end point.

    Fields inherited from class org.openscience.cdk.renderer.elements.path.PathElement

    type
  • Constructor Summary

    Constructors
    Constructor
    Description
    QuadTo(double[] coords)
    Make a quad curve path element.
    QuadTo(double cpx, double cpy, double epx, double epy)
    Make a quad curve path element.
    QuadTo(javax.vecmath.Point2d cp, javax.vecmath.Point2d ep)
    Make a quad curve.
  • Method Summary

    Modifier and Type
    Method
    Description
    float[]
    Get the points in the path.
    void
    points(double[] coords)
    Load the provided array with the specified coordinates of this path element.

    Methods inherited from class org.openscience.cdk.renderer.elements.path.PathElement

    type

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • coords

      public final double[] coords
      Coordinates of control point and end point.
  • Constructor Details

    • QuadTo

      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
    • QuadTo

      public QuadTo(double[] coords)
      Make a quad curve path element.
      Parameters:
      coords - [0,1] : control point 1, [2,3] : control point 2, [4,5] end point
    • QuadTo

      public QuadTo(double cpx, double cpy, double epx, double epy)
      Make a quad curve path element.
      Parameters:
      cpx - control point in the cubic x coord
      cpy - control point in the cubic y coord
      epx - end point of the cubic x coord
      epy - end point of the cubic y coord
  • Method Details

    • points

      public float[] points()
      Get the points in the path.
      Specified by:
      points in class PathElement
      Returns:
      a list of points
    • points

      public void points(double[] coords)
      Load the provided array with the specified coordinates of this path element.
      Specified by:
      points in class PathElement
      Parameters:
      coords - coordinates (length = 6)