Package ar.util

Examples of ar.util.HasViewTransform.zoomFit()


  @Override
  public void mouseClicked(MouseEvent e) {
    if (e.getClickCount() == 2) {
        HasViewTransform canvas = (HasViewTransform) e.getComponent();
      canvas.zoomFit();
    }
  }
 
  @Override
  /**When the 'c' key is pressed, pan so the center of the data is at the center of the screen.
View Full Code Here


      canvas.viewTransform(vt, false);
    } else if (c == '-' || c == '_') {
      vt.scale(.5,.5);
      canvas.viewTransform(vt, false);
    } else if (c == 'z' || c == 'Z') {
      canvas.zoomFit();
    }
  }

 
  public void mouseEntered(MouseEvent e) {/*Ignored.*/}
 
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.