Bug 1130 - Add Mapping from AWT Component -> NEWT [Screen, MonitorDevice]
Summary: Add Mapping from AWT Component -> NEWT [Screen, MonitorDevice]
Status: RESOLVED FIXED
Alias: None
Product: Newt
Classification: JogAmp
Component: awt (show other bugs)
Version: 2.3.0
Hardware: All all
: --- enhancement
Assignee: Sven Gothel
URL:
Depends on:
Blocks: 1373
  Show dependency treegraph
 
Reported: 2015-02-17 06:03 CET by Sven Gothel
Modified: 2019-04-04 22:06 CEST (History)
0 users

See Also:
Type: FEATURE
SCM Refs:
3ec3d5cedd7902b2fe14dc56a3f845cfe0752905 a28e1610e1c29279847bce80e1aa80a947ff799e 37ec129f36097f41ed0d45cbccd7a93e493e2bb9
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2015-02-17 06:03:05 CET
The mapping AWT Component -> NEWT [Screen, MonitorDevice]
shall allow generic AWT applications to utilize NEWT's MonitorDevice
information like physical monitor-size and DPI.
Comment 1 Sven Gothel 2015-02-17 07:32:24 CET
3ec3d5cedd7902b2fe14dc56a3f845cfe0752905
  MonitorDevice: Add 'throws IllegalStateException' for [query|set]CurrentMode(..) if !screen.isNativeValid()

a28e1610e1c29279847bce80e1aa80a947ff799e
  NativeWindow: Refactor getLocationOnScreenSafe(..) and getLocationOnScreenNonBlocking(..) from JAWTWindow -> AWTMisc (to be reused)

37ec129f36097f41ed0d45cbccd7a93e493e2bb9
    - AWT-Component -> NEWT-Display:
      - NewtFactoryAWT.createDisplay
    
    - AWT-Component -> NEWT-Screen:
      - NewtFactoryAWT.createScreen
    
    - AWT-Component -> NEWT-MonitorMode:
      - NewtFactoryAWT.getMonitorDevice
    
    - NewtFactoryAWT.getMonitorDevice
      - If OSX, utilizing OSX's AWT Component -> MonitorDevice-Index mapping
      - Otherwise using the coverage to identify MonitorDevice
    
    See TestGearsES2GLJPanelAWT 'GetPixelScale',
    demonstrating the mapping while pressing 'p' (cached MonitorMode)
    and pressing SHIFT-'p' (non-cached MonitorMode).