Examples of zoomFit()


Examples of ar.app.display.AggregatingDisplay.zoomFit()

    final AggregatingDisplay panel = new AggregatingDisplay(aggregator, transfer, dataset, r);
    frame2.add(panel, BorderLayout.CENTER);
    frame2.setVisible(true);
    frame2.revalidate();
    frame2.validate();
    SwingUtilities.invokeAndWait(new Runnable() {public void run() {panel.zoomFit();}});
  }
}
View Full Code Here

Examples of ar.app.display.AggregatingDisplay.zoomFit()

    frame.setLayout(new BorderLayout());
    frame.add(p, BorderLayout.CENTER);
   
    frame.setSize(500, 500);
    frame.invalidate();
    p.zoomFit();
   
    frame.setVisible(true);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  }
}
View Full Code Here

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

Examples of ar.util.HasViewTransform.zoomFit()

      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

Examples of java.awt.image.BufferedImage.zoomFit()

    final ARComponent.Aggregating img = display;
    try {
      SwingUtilities.invokeAndWait(
        new Runnable() {
          public void run() {
            img.zoomFit();
            img.renderAgain();
          }
        }
      );
    } catch (InvocationTargetException | InterruptedException e1) {}
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.