Package aimax.osm.viewer

Examples of aimax.osm.viewer.MapViewPane.zoom()


  }

  public void actionPerformed(ActionEvent e) {
    MapViewPane view = frame.getView();
    if (e.getSource() == zoomInButton) {
      view.zoom(2, view.getWidth() / 2, view.getHeight() / 2);
    } else if (e.getSource() == zoomOutButton) {
      view.zoom(0.5f, view.getWidth() / 2, view.getHeight() / 2);
    } else if (e.getSource() == leftButton) {
      view.adjust((int) (0.3 * view.getWidth()), 0);
    } else if (e.getSource() == rightButton) {
View Full Code Here


  public void actionPerformed(ActionEvent e) {
    MapViewPane view = frame.getView();
    if (e.getSource() == zoomInButton) {
      view.zoom(2, view.getWidth() / 2, view.getHeight() / 2);
    } else if (e.getSource() == zoomOutButton) {
      view.zoom(0.5f, view.getWidth() / 2, view.getHeight() / 2);
    } else if (e.getSource() == leftButton) {
      view.adjust((int) (0.3 * view.getWidth()), 0);
    } else if (e.getSource() == rightButton) {
      view.adjust((int) (-0.3 * view.getWidth()), 0);
    else if (e.getSource() == upButton) {
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.