Java™ Media APIs: Cross-Platform Imaging, Media, and Visualization
by Alejandro Terrazas, John Ostuni, Michael Barlow
The Pull Model
The basic idea of the renderable layer is that the data can be pulled through as needed for rendering, This is the basis for the name pull model that is central to the JAI. This imaging model is also called render on demand or just-in-time rendering.
As the name implies, whenever a rendering is needed, the pixel data can be pulled through the Renderable layer and output in a context dependent manner. Renderable imaging will be covered extensively in Chapter 6.
The consumer-producer model used in the AWT and maintained in Java 2D was also known as a push model because the consumer (or image sink) never requests the image but rather waits for it passively. This approach was good for displaying a few simple images via a Web browser, ...
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