"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "debugger/src/main/java/org/apache/pdfbox/debugger/pagepane/PagePane.java" between
pdfbox-2.0.23-src.zip and pdfbox-2.0.24-src.zip

About: Apache PDFBox is a Java PDF library tool that allows creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents.

PagePane.java  (pdfbox-2.0.23-src):PagePane.java  (pdfbox-2.0.24-src)
skipping to change at line 329 skipping to change at line 329
} }
/** /**
* Catch mouse event to display cursor position in PDF coordinates in the st atus bar. * Catch mouse event to display cursor position in PDF coordinates in the st atus bar.
* *
* @param e mouse event with position * @param e mouse event with position
*/ */
@Override @Override
public void mouseMoved(MouseEvent e) public void mouseMoved(MouseEvent e)
{ {
float height = page.getCropBox().getHeight(); PDRectangle cropBox = page.getCropBox();
float width = page.getCropBox().getWidth(); float height = cropBox.getHeight();
float offsetX = page.getCropBox().getLowerLeftX(); float width = cropBox.getWidth();
float offsetY = page.getCropBox().getLowerLeftY(); float offsetX = cropBox.getLowerLeftX();
float offsetY = cropBox.getLowerLeftY();
float zoomScale = zoomMenu.getPageZoomScale(); float zoomScale = zoomMenu.getPageZoomScale();
float x = e.getX() / zoomScale * (float) defaultTransform.getScaleX(); float x = e.getX() / zoomScale * (float) defaultTransform.getScaleX();
float y = e.getY() / zoomScale * (float) defaultTransform.getScaleY(); float y = e.getY() / zoomScale * (float) defaultTransform.getScaleY();
int x1; int x1;
int y1; int y1;
switch ((RotationMenu.getRotationDegrees() + page.getRotation()) % 360) switch ((RotationMenu.getRotationDegrees() + page.getRotation()) % 360)
{ {
case 90: case 90:
x1 = (int) (y + offsetX); x1 = (int) (y + offsetX);
y1 = (int) (x + offsetY); y1 = (int) (x + offsetY);
 End of changes. 1 change blocks. 
4 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)