Examples of MoveCamera


Examples of org.malai.swing.action.library.MoveCamera

  public void centreViewport() {
    SwingUtilities.invokeLater(new Runnable() {
      @Override
      public void run() {
        final MoveCamera action = new MoveCamera();
        action.setScrollPane(getScrollpane());
        action.setPx(ORIGIN.getX()+page.getWidth()*IShape.PPC/2.);
        action.setPy(ORIGIN.getY()+getVisibleBound().getHeight()/2.-IShape.PPC);
        if(action.canDo())
          action.doIt();
        action.flush();
      }
    });
  }
 
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.