Ticket #763 (assigned enhancement)

Opened 8 years ago

Last modified 6 years ago

Add Sizing Constraint of Windows on Desktop/Workspace

Reported by: gharris Owned by: bdezonia
Priority: major Milestone: imagej2-unscheduled
Component: UI Framework Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1629

Description (last modified by gharris) (diff)

Account for the bounds of the desktop/workspace when sizing the window appropriately.

Follow-on to #626

Change History

comment:1 Changed 8 years ago by gharris

  • Description modified (diff)
  • Summary changed from Add Sizing and Location of Windows on Desktop/Workspace to Add Sizing Constraint of Windows on Desktop/Workspace

comment:2 Changed 7 years ago by curtis

  • Owner changed from gharris to curtis

comment:3 Changed 7 years ago by curtis

  • Owner changed from curtis to bdezonia
  • Status changed from new to assigned
  • Milestone changed from imagej-2.0-beta1 to imagej-2.0-beta3

This may already be working. Verify later.

comment:4 Changed 7 years ago by bdezonia

SwingDisplayPanel has initial scaling code that does verify desktop bounds. But I'm not sure that is what this ticket refers to. Maybe Grant meant at all times when windows are sized make sure they aren't made too big. Must get clarification from here.

comment:5 Changed 7 years ago by gharris

I think that currently, in SwingDisplayPanel, findFullyVisibleScale() decides using StaticSwingUtils.getWorkSpaceBounds(), which returns GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();

So, this assumes that the UI is SDI, using the entire desktop (and I'm not sure about how it handles a multi-monitor situation). In an MDI environment, this would need to function differently, basing the decision on the size of the JFrame with the desktop containing the JInternalFrames.

Perhaps a getWorkSpaceBounds() method should be added to UserInterface to deal with this.

comment:6 Changed 7 years ago by bdezonia

  • Blocking 1325 added

comment:7 Changed 7 years ago by curtis

  • Milestone changed from imagej-2.0.0-beta4 to imagej-2.0.0-beta5

comment:8 Changed 7 years ago by curtis

  • Blocking 1358 added

comment:9 Changed 7 years ago by curtis

  • Blocking 1325 removed

(In #1325) Pushing some tickets to beta5; see #1358.

comment:10 Changed 6 years ago by bdezonia

  • Blocking 1629 added; 1358 removed

comment:11 Changed 6 years ago by bdezonia

  • Milestone changed from imagej2-b7-ndim-data to imagej2-unscheduled
Note: See TracTickets for help on using tickets.