congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
BezierPath.setClosed
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: net.imagej/ij-ui-swing

private boolean add(final BezierPath bezierPath, boolean isClosed) {
  bezierPath.setClosed(isClosed);
  BezierFigure figure = new BezierFigure(isClosed);
  figure.setBezierPath(bezierPath);
  return figures.add(figure);
}
origin: net.imagej/imagej-ui-swing

private boolean add(final BezierPath bezierPath, boolean isClosed) {
  bezierPath.setClosed(isClosed);
  BezierFigure figure = new BezierFigure(isClosed);
  figure.setBezierPath(bezierPath);
  return figures.add(figure);
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

@Override
public <T> void set(AttributeKey<T> key, T newValue) {
  if (key == PATH_CLOSED) {
    path.setClosed((Boolean) newValue);
  } else if (key == WINDING_RULE) {
    path.setWindingRule(newValue == AttributeKeys.WindingRule.EVEN_ODD ? Path2D.Double.WIND_EVEN_ODD : Path2D.Double.WIND_NON_ZERO);
  }
  super.set(key, newValue);
  invalidate();
}
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: org.opentcs.thirdparty.jhotdraw/jhotdraw

  bp.setClosed(false);
  bp.moveTo(coords[0], coords[1]);
  break;
  break;
case PathIterator.SEG_CLOSE:
  bp.setClosed(true);
  break;
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

path.setClosed(true);
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

path.setClosed(true);
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

  break;
case PathIterator.SEG_CLOSE:
  bp.setClosed(true);
  break;
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

cappedPath = (BezierPath) path.clone();
if (isClosed()) {
  cappedPath.setClosed(true);
} else {
  if (cappedPath.size() > 1) {
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

    break;
triangle.setClosed(true);
return triangle;
org.jhotdraw.geomBezierPathsetClosed

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
  • quadTo
    Adds a (at least) quadratic curve to the bezier path. If the previous node has no C2 control point t
  • 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

  • Creating JSON documents from java classes using gson
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JFrame (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 25 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