I believe that you are looking for PlayN.graphics().screenHeight() and PlayN.graphics().screenWidth() .
Copied from Graphics.java file:
- screenWidth () - Gets the width of the available screen real estate in pixels.
- screenHeight () - Gets the height of the available screen real estate in pixels.
- width () - Gets the width of the painted surface in pixels.
- height () - Gets the height of the drawn surface in pixels.
As described in the description, screenHeight () and screenWidth () provide the actual height / width of the screen. Using these values, you can adjust the size or scale of your game to fit the screen.
source share