Examples of scaleAndTranslate()


Examples of com.mxgraph.view.mxGraphView.scaleAndTranslate()

        {
          mxGraphView graphView = graph.getView();
          final double scale = graphView.getScale();
          mxPoint translate = (centerPage) ? getPageTranslate(newScale)
              : new mxPoint();
          graphView.scaleAndTranslate(newScale, translate.getX(),
              translate.getY());

          // Causes two repaints, see zoomTo for more details
          final double factor = newScale / scale;
View Full Code Here

Examples of com.mxgraph.view.mxGraphView.scaleAndTranslate()

  @Override
  public void zoom(double newScale) {
    mxGraphView view = getGraph().getView();
    double oldScale = view.getScale();

    view.scaleAndTranslate(oldScale * newScale, view.getTranslate().getX(),
        view.getTranslate().getY());
    centerViewport(newScale);

    view.revalidate();
  }
View Full Code Here

Examples of com.mxgraph.view.mxGraphView.scaleAndTranslate()

        {
          mxGraphView graphView = graph.getView();
          final double scale = graphView.getScale();
          mxPoint translate = (centerPage) ? getPageTranslate(newScale)
              : new mxPoint();
          graphView.scaleAndTranslate(newScale, translate.getX(),
              translate.getY());

          // Causes two repaints, see zoomTo for more details
          final double factor = newScale / scale;
View Full Code Here

Examples of com.mxgraph.view.mxGraphView.scaleAndTranslate()

        {
          mxGraphView graphView = graph.getView();
          final double scale = graphView.getScale();
          mxPoint translate = (centerPage) ? getPageTranslate(newScale)
              : new mxPoint();
          graphView.scaleAndTranslate(newScale, translate.getX(),
              translate.getY());

          // Causes two repaints, see zoomTo for more details
          final double factor = newScale / scale;
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.