congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Updating database using SQL prepared statement
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • setRequestProperty (URLConnection)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JFileChooser (javax.swing)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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