Examples of mxPoint


Examples of com.mxgraph.util.mxPoint

  public mxPoint snapScaledPoint(mxPoint pt, double dx, double dy)
  {
    if (pt != null)
    {
      double scale = graph.getView().getScale();
      mxPoint trans = graph.getView().getTranslate();

      pt.setX((graph.snap(pt.getX() / scale - trans.getX() + dx / scale) + trans
          .getX()) * scale - dx);
      pt.setY((graph.snap(pt.getY() / scale - trans.getY() + dy / scale) + trans
          .getY()) * scale - dy);
    }

    return pt;
  }
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.