Examples of scrollPointToVisible()


Examples of org.jgraph.JGraph.scrollPointToVisible()

          double y = (e.getY() - lastPoint.getY()) / scale;
          lastPoint = e.getPoint();
          x = rect.getX() + ((x > 0) ? rect.getWidth() : 0) + x;
          y = rect.getY() + ((y > 0) ? rect.getHeight() : 0) + y;
          Point2D pt = new Point2D.Double(x, y);
          graph.scrollPointToVisible(pt);
          navigatorPane.repaint();
        }
      }
    }
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.