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

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

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

origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

@Override
public Rectangle2D.Double getBounds() {
  Rectangle2D.Double bounds = path.getBounds2D();
  return bounds;
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

@Override
public Rectangle getBounds() {
  return getBounds2D().getBounds();
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

@Override
public Rectangle2D.Double getDrawingArea() {
  if (cachedDrawingArea == null) {
    if (get(TRANSFORM) == null) {
      cachedDrawingArea = path.getBounds2D();
    } else {
      BezierPath p2 = (BezierPath) path.clone();
      p2.transform(get(TRANSFORM));
      cachedDrawingArea = p2.getBounds2D();
    }
  }
  return (Rectangle2D.Double) cachedDrawingArea.clone();
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

@Override
public Rectangle2D.Double getDrawingArea() {
  if (cachedDrawingArea == null) {
    if (get(TRANSFORM) == null) {
      cachedDrawingArea = path.getBounds2D();
    } else {
      BezierPath p2 = (BezierPath) path.clone();
      p2.transform(get(TRANSFORM));
      cachedDrawingArea = p2.getBounds2D();
    }
    double strokeTotalWidth = AttributeKeys.getStrokeTotalWidth(this);
    double width = strokeTotalWidth / 2d;
    if (get(STROKE_JOIN) == BasicStroke.JOIN_MITER) {
      width *= get(STROKE_MITER_LIMIT);
    } else if (get(STROKE_CAP) != BasicStroke.CAP_BUTT) {
      width += strokeTotalWidth * 2;
    }
    Geom.grow(cachedDrawingArea, width, width);
  }
  return (Rectangle2D.Double) cachedDrawingArea.clone();
}
org.jhotdraw.geomBezierPathgetBounds2D

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
  • 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
  • addAll,
  • addPolyline,
  • arcTo,
  • chop,
  • clear,
  • clone,
  • contains,
  • findSegment,
  • get

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
  • 14 Best Plugins for Eclipse
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