Package com.cburch.logisim.data

Examples of com.cburch.logisim.data.Bounds.expand()


      if (y < y0) y0 = y;
      if (y > y1) y1 = y;
    }
    Bounds bds = Bounds.create(x0, y0, x1 - x0 + 1, y1 - y0 + 1);
    int stroke = getStrokeWidth();
    bounds = stroke < 2 ? bds : bds.expand(stroke / 2);
  }

  private GeneralPath getPath() {
    GeneralPath p = path;
    if (p == null) {
View Full Code Here


            }

        }
        Bounds bds = Bounds.create(x0, y0, x1 - x0 + 1, y1 - y0 + 1);
        int stroke = getStrokeWidth();
        bounds = stroke < 2 ? bds : bds.expand(stroke / 2);
    }

    private GeneralPath getPath() {
        GeneralPath p = path;
        if (p == null) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.