Examples of zoomTo()


Examples of com.mxgraph.swing.mxGraphComponent.zoomTo()

          }
        }

        if (scale > 0)
        {
          graphComponent.zoomTo(scale, graphComponent.isCenterZoom());
        }
      }
    }
  }
View Full Code Here

Examples of com.mxgraph.swing.mxGraphComponent.zoomTo()

            try
            {
              zoom = zoom.replace("%", "");
              double scale = Math.min(16, Math.max(0.01,
                  Double.parseDouble(zoom) / 100));
              graphComponent.zoomTo(scale, graphComponent
                  .isCenterZoom());
            }
            catch (Exception ex)
            {
              JOptionPane.showMessageDialog(editor, ex
View Full Code Here

Examples of com.mxgraph.swing.mxGraphComponent.zoomTo()

            try
            {
              zoom = zoom.replace("%", "");
              double scale = Math.min(16, Math.max(0.01,
                  Double.parseDouble(zoom) / 100));
              graphComponent.zoomTo(scale, graphComponent
                  .isCenterZoom());
            }
            catch (Exception ex)
            {
              JOptionPane.showMessageDialog(editor, ex
View Full Code Here

Examples of com.mxgraph.swing.mxGraphComponent.zoomTo()

          }
        }

        if (scale > 0)
        {
          graphComponent.zoomTo(scale, graphComponent.isCenterZoom());
        }
      }
    }
  }
View Full Code Here

Examples of org.andrewberman.ui.camera.Camera.zoomTo()

      double zoomRatio = downZoom / zoomTween.getPosition();
      // new distances from down point to center.
      float newX = (float) (downCameraX + dx - dx * zoomRatio);
      float newY = (float) (downCameraY + dy - dy * zoomRatio);
      Camera cam = getCamera();
      cam.zoomTo(zoomTween.getPosition());
      cam.nudgeTo(newX, newY);
      cam.fforward();
    }
  }

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.