MCPcopy Create free account
hub / github.com/benfry/processing4 / getDisplaySpan

Method getDisplaySpan

core/src/processing/awt/PSurfaceAWT.java:916–926  ·  view source on GitHub ↗

Get the bounds rectangle for all displays.

()

Source from the content-addressed store, hash-verified

914
915 /** Get the bounds rectangle for all displays. */
916 static Rectangle getDisplaySpan() {
917 Rectangle bounds = new Rectangle();
918 GraphicsEnvironment environment =
919 GraphicsEnvironment.getLocalGraphicsEnvironment();
920 for (GraphicsDevice device : environment.getScreenDevices()) {
921 for (GraphicsConfiguration config : device.getConfigurations()) {
922 Rectangle2D.union(bounds, config.getBounds(), bounds);
923 }
924 }
925 return bounds;
926 }
927
928
929 /*

Callers 1

initFrameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected