Examples of dataBounds()


Examples of ar.util.HasViewTransform.dataBounds()

    JComponent comp = (JComponent) e.getComponent();
    AffineTransform vt = canvas.viewTransform();

    if (c == 'c' || c == 'C') {
      Rectangle vb = comp.getBounds();
      Rectangle2D db = canvas.dataBounds();

      double xmargin = vb.width/vt.getScaleX()-db.getWidth();
      double ymargin = vb.height/vt.getScaleY()-db.getHeight();
      double tx = db.getMinX()-(xmargin/2);
      double ty = db.getMinY()-(ymargin/2);
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.