Package visad

Examples of visad.ProjectionControl


  @Override
  public void mouseWheelMoved(final MouseWheelEvent e) {

    // Zoom in/out.
    try {
      final ProjectionControl pControl = display.getProjectionControl();
      pControl.setMatrix(MouseBehaviorJ3D.static_multiply_matrix(
          e.getWheelRotation() < 0 ? ZOOM_IN_MATRIX : ZOOM_OUT_MATRIX,
          pControl.getMatrix()));
    } catch (VisADException ex) {
      LOG.log(Level.WARNING, "Unable to zoom", ex);
    } catch (RemoteException ex) {
      LOG.log(Level.WARNING, "Unable to zoom", ex);
    }
View Full Code Here

TOP

Related Classes of visad.ProjectionControl

Copyright © 2018 www.massapicom. 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.