java.net: Wiki

The Source for Java Technology Collaboration


 <<O>>  Difference Topic JAI_SampleCode (2 - 20 Mar 2007 - Main.rummyr)
Line: 1 to 1
 
META TOPICPARENT name="JAI"
Home | Help | Changes | Index | Search | Go
<-- This creates the navigation links to :  Home | Help | Index | etc.  -->
Line: 12 to 12
 Asynchronous Display of Tiled Images This source code demonstrates a swing component that will display a RenderedImage?. In contrast to DisplayJAI? it computes each tile in the visible area on a separate thread from the EventDispatcher? making it more pleasant to use in a JScrollPane?. If your image is not tiled this class is probably not worth the effort, use DisplayJAI? instead. If on the other hand your image is tiled and at the end of a compute heavy render chain then this method can help improve responsiveness.
Added:
>
>
Rendered Image Proxy This source code creates a "proxy" for a Rendered Image, it uses a soft reference to the actual image to allow it to be garbage collected, when a reference is made to the image again it is reloaded. This class was originally written to allow a large number of Jpegs to be placed in a render chain ending in a mosaic without actually needing them all to be resident in memory at once. The jpegs are loaded/reloaded if the relevant part of the mosaic is actually rendered. How well this class will work for you depends on your specific requirements, it worked for me. Obviously there is a performance hit every time the image needs to be reloaded.
 
<-- put two horizontal ruled lines between article and discussion of it. -->


 <<O>>  Difference Topic JAI_SampleCode (1 - 30 Jan 2007 - Main.rummyr)
Line: 1 to 1
Added:
>
>
META TOPICPARENT name="JAI"
Home | Help | Changes | Index | Search | Go
<-- This creates the navigation links to :  Home | Help | Index | etc.  -->

JAI_SampleCode
<-- this automatically adds a header showing the name of this page -->

<-- Your Javapedia article goes here. Please try to include at least one sentence describing this topic. -->
<-- Also please try to include at least one sentence describing where each link goes. -->
<-- Please make sure some other page points to your new article so that others can find it! -->
<-- For more on how to write Javapedia articles please read the WritingArticles page. -->

Asynchronous Display of Tiled Images This source code demonstrates a swing component that will display a RenderedImage?. In contrast to DisplayJAI? it computes each tile in the visible area on a separate thread from the EventDispatcher? making it more pleasant to use in a JScrollPane?. If your image is not tiled this class is probably not worth the effort, use DisplayJAI? instead. If on the other hand your image is tiled and at the end of a compute heavy render chain then this method can help improve responsiveness.


<-- put two horizontal ruled lines between article and discussion of it. -->

<-- anchor to allow a link to the discussion about this article -->

Discussion about JAI_SampleCode
<-- generate a header for the discussion part of page -->


Topic JAI_SampleCode . { View | Diffs r2 < r1 | More }
 XML java.net RSS