Java™ Media APIs: Cross-Platform Imaging, Media, and Visualization
by Alejandro Terrazas, John Ostuni, Michael Barlow
Finding Out About Device Space
In the vast majority of cases, the programmer doesn't need to worry about device space. However, when you do need to know some details about device spaces and the characteristics of the available devices, the following three classes are invaluable:
GraphicsEnvironment
GraphicsDevice
GraphicsConfiguration
Objects generated by the GraphicsEnvironment return a list of all devices on a platform. This list includes the expected printers and video displays, but also lists memory buffers and fonts. Java supports a multimonitor environment that can be important for some imaging and virtual reality applications. More information on this topic is given in Chapter 13, “Working with Input and Output Devices.”
Objects instantiated ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access