Examples of recomputeBounds()


Examples of com.cburch.logisim.instance.Instance.recomputeBounds()

          halign, valign);
      newBds = Bounds.create(bdsOut).expand(4);
    }
    if (attrs.setOffsetBounds(newBds)) {
      Instance instance = painter.getInstance();
      if (instance != null) instance.recomputeBounds();
    }
       
    g.setFont(old);
  }
View Full Code Here

Examples of com.cburch.logisim.instance.Instance.recomputeBounds()

    FontMetrics fm = g.getFontMetrics();
    Bounds bds = computeBounds(attrs, fm.stringWidth(label),
        fm.getAscent() + fm.getDescent(), g, label);
    if (attrs.setOffsetBounds(bds)) {
      Instance instance = painter.getInstance();
      if (instance != null) instance.recomputeBounds();
    }
   
    int x0 = bds.getX();
    int y0 = bds.getY();
    int x1 = x0 + bds.getWidth();
View Full Code Here

Examples of com.cburch.logisim.instance.Instance.recomputeBounds()

            newBds = Bounds.create(bdsOut).expand(4);
        }
        if (attrs.setOffsetBounds(newBds)) {
            Instance instance = painter.getInstance();
            if (instance != null) {
                instance.recomputeBounds();
            }

        }

        g.setFont(old);
View Full Code Here

Examples of com.cburch.logisim.instance.Instance.recomputeBounds()

        Bounds bds = computeBounds(attrs, fm.stringWidth(label),
                fm.getAscent() + fm.getDescent(), g, label);
        if (attrs.setOffsetBounds(bds)) {
            Instance instance = painter.getInstance();
            if (instance != null) {
                instance.recomputeBounds();
            }

        }

        int x0 = bds.getX();
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.