MCPcopy Index your code
hub / github.com/processing/processing / getDisplaySpan

Method getDisplaySpan

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

Get the bounds rectangle for all displays.

()

Source from the content-addressed store, hash-verified

1058
1059 /** Get the bounds rectangle for all displays. */
1060 static Rectangle getDisplaySpan() {
1061 Rectangle bounds = new Rectangle();
1062 GraphicsEnvironment environment =
1063 GraphicsEnvironment.getLocalGraphicsEnvironment();
1064 for (GraphicsDevice device : environment.getScreenDevices()) {
1065 for (GraphicsConfiguration config : device.getConfigurations()) {
1066 Rectangle2D.union(bounds, config.getBounds(), bounds);
1067 }
1068 }
1069 return bounds;
1070 }
1071
1072
1073 /*

Callers 1

initFrameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected