Codota Logo
BezierPath.setClosed
Code IndexAdd Codota 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)

  • Common ways to obtain BezierPath
private void myMethod () {
BezierPath b =
  • Codota Iconnew BezierPath()
  • Smart code suggestions by Codota
}
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

  • Running tasks concurrently on multiple threads
  • findViewById (Activity)
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now