Tabnine Logo
BezierPath.quadTo
Code IndexAdd Tabnine to your IDE (free)

How to use
quadTo
method
in
org.jhotdraw.geom.BezierPath

Best Java code snippets using org.jhotdraw.geom.BezierPath.quadTo (Showing top 8 results out of 315)

origin: net.imagej/imagej-ui-swing

public static BezierPath toBezierPath(final PathIterator iterator) {
  final BezierPath path = new BezierPath();
  final double[] segment = new double[6];
  for (; !iterator.isDone(); iterator.next()) {
    final int type = iterator.currentSegment(segment);
    switch (type) {
      case PathIterator.SEG_MOVETO:
        path.moveTo(segment[0], segment[1]);
        break;
      case PathIterator.SEG_LINETO:
        path.lineTo(segment[0], segment[1]);
        break;
      case PathIterator.SEG_QUADTO:
        path.quadTo(segment[0], segment[1], segment[2], segment[3]);
        break;
      case PathIterator.SEG_CUBICTO:
        path.curveTo(segment[0], segment[1], segment[2], segment[3],
          segment[4], segment[5]);
        break;
      case PathIterator.SEG_CLOSE:
        path.setClosed(true);
        break;
    }
  }
  return path;
}
origin: net.imagej/ij-ui-swing

  break;
case PathIterator.SEG_QUADTO:
  bezierPath.quadTo(segment[0], segment[1], segment[2], segment[3]);
  break;
case PathIterator.SEG_CUBICTO:
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

quadTo(coords[0], coords[1], coords[2], coords[3]);
break;
origin: net.imagej/imagej-ui-swing

  break;
case PathIterator.SEG_QUADTO:
  bezierPath.quadTo(segment[0], segment[1], segment[2], segment[3]);
  break;
case PathIterator.SEG_CUBICTO:
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

path.quadTo(c1.x, c1.y, p.x, p.y);
nextCommand = 'Q';
path.quadTo(c1.x, c1.y, p.x, p.y);
nextCommand = 'q';
path.quadTo(c1.x, c1.y, p.x, p.y);
nextCommand = 'T';
path.quadTo(c1.x, c1.y, p.x, p.y);
nextCommand = 's';
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

  bp.quadTo(coords[0], coords[1], coords[2], coords[3]);
  break;
case PathIterator.SEG_CUBICTO:
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

path.quadTo(c1.x, c1.y, p.x, p.y);
nextCommand = 'Q';
path.quadTo(c1.x, c1.y, p.x, p.y);
nextCommand = 'q';
path.quadTo(c1.x, c1.y, p.x, p.y);
nextCommand = 'T';
path.quadTo(c1.x, c1.y, p.x, p.y);
nextCommand = 's';
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

  bp.quadTo(coords[0], coords[1], coords[2], coords[3]);
  break;
case PathIterator.SEG_CUBICTO:
org.jhotdraw.geomBezierPathquadTo

Javadoc

Adds a (at least) quadratic curve to the bezier path.

If the previous node has no C2 control point the line will be quadratic otherwise the line will be cubic.

This is a convenience method for adding a node with control point C0 and C1 (incoming curve) to the bezier path.

The bezier path must already have at least one node.

Popular methods of BezierPath

  • <init>
    Creates a new instance.
  • curveTo
    Adds a cubic curve to the bezier path. This is a convenience method for adding a node with control p
  • lineTo
    Adds a (at least) linear 'curve' to the bezier path. If the previous node has no C2 control point th
  • moveTo
    Adds the first node to the bezier path. This is a convenience method for adding the first node with
  • setClosed
  • size
  • transform
    Transforms the BezierPath.
  • toGeneralPath
    Converts the BezierPath into a Path2D.Double.
  • add
  • addAll
  • addPolyline
    Adds a set of nodes to the path. Convenience method for adding multiple nodes with a single control
  • arcTo
    Adds an elliptical arc, defined by two radii, an angle from the x-axis, a flag to choose the large a
  • addPolyline,
  • arcTo,
  • chop,
  • clear,
  • clone,
  • contains,
  • findSegment,
  • get,
  • getBounds2D

Popular in Java

  • Finding current android device location
  • getSystemService (Context)
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JList (javax.swing)
  • JTextField (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now