Skip to content

Commit

Permalink
more debugging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Meech committed Jul 21, 2024
1 parent d66f0a6 commit 560c265
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/de/embl/schwab/crosshair/utils/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,13 @@ public static void spaceOutWindows( JFrame frame, BdvHandle bdvHandle, Image3DUn

System.out.println(screenSize);
System.out.println(frame.getLocationOnScreen().x + frame.getWidth());
System.out.println(frame.getLocationOnScreen().y);
System.out.println(viewFrame.getLocationOnScreen().x);
System.out.println(viewFrame.getLocationOnScreen().x + viewFrame.getWidth());
System.out.println(viewFrame.getLocationOnScreen().y);
System.out.println(universe.getWindow().getLocationOnScreen().x);
System.out.println(universe.getWindow().getLocationOnScreen().x + universe.getWindow().getWidth());
System.out.println(universe.getWindow().getLocationOnScreen().y);

// Make sure bigdataviewer + 3D viewer aren't taller than the screen
int viewHeight = viewFrame.getHeight();
Expand All @@ -84,10 +87,13 @@ public static void spaceOutWindows( JFrame frame, BdvHandle bdvHandle, Image3DUn

System.out.println(screenSize);
System.out.println(frame.getLocationOnScreen().x + frame.getWidth());
System.out.println(frame.getLocationOnScreen().y);
System.out.println(viewFrame.getLocationOnScreen().x);
System.out.println(viewFrame.getLocationOnScreen().x + viewFrame.getWidth());
System.out.println(viewFrame.getLocationOnScreen().y);
System.out.println(universe.getWindow().getLocationOnScreen().x);
System.out.println(universe.getWindow().getLocationOnScreen().x + universe.getWindow().getWidth());
System.out.println(universe.getWindow().getLocationOnScreen().y);

// Fill any remaining width between the controls and 3D viewer with the bdv window
viewFrame.setLocation(
Expand All @@ -102,10 +108,13 @@ public static void spaceOutWindows( JFrame frame, BdvHandle bdvHandle, Image3DUn

System.out.println(screenSize);
System.out.println(frame.getLocationOnScreen().x + frame.getWidth());
System.out.println(frame.getLocationOnScreen().y);
System.out.println(viewFrame.getLocationOnScreen().x);
System.out.println(viewFrame.getLocationOnScreen().x + viewFrame.getWidth());
System.out.println(viewFrame.getLocationOnScreen().y);
System.out.println(universe.getWindow().getLocationOnScreen().x);
System.out.println(universe.getWindow().getLocationOnScreen().x + universe.getWindow().getWidth());
System.out.println(universe.getWindow().getLocationOnScreen().y);
}

public static void resetCrossPlatformSwingLookAndFeel() {
Expand Down

0 comments on commit 560c265

Please sign in to comment.