org.icepdf.ri.common.views
Class AbstractPageViewComponent.PageImageCaptureTask

java.lang.Object
  extended by org.icepdf.ri.common.views.AbstractPageViewComponent.PageImageCaptureTask
All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Object>, java.util.EventListener, org.icepdf.core.events.PaintPageListener
Enclosing class:
AbstractPageViewComponent

public class AbstractPageViewComponent.PageImageCaptureTask
extends java.lang.Object
implements java.util.concurrent.Callable<java.lang.Object>, org.icepdf.core.events.PaintPageListener

The worker of any successful page paint. The worker takes a snapshot of the given page state and paint the desired image to buffer. One completed the the new buffer is stuffed into the pageBufferStore instance with properties so that it can be painted in the correct thread when the component is repainted.


Constructor Summary
AbstractPageViewComponent.PageImageCaptureTask(javax.swing.JComponent parent, java.awt.Rectangle imageLocation, java.awt.Rectangle imageClipLocation, float zoom, float rotation)
           
 
Method Summary
 java.lang.Object call()
           
 void paintPage(org.icepdf.core.events.PaintPageEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPageViewComponent.PageImageCaptureTask

public AbstractPageViewComponent.PageImageCaptureTask(javax.swing.JComponent parent,
                                                      java.awt.Rectangle imageLocation,
                                                      java.awt.Rectangle imageClipLocation,
                                                      float zoom,
                                                      float rotation)
Method Detail

call

public java.lang.Object call()
                      throws java.lang.Exception
Specified by:
call in interface java.util.concurrent.Callable<java.lang.Object>
Throws:
java.lang.Exception

paintPage

public void paintPage(org.icepdf.core.events.PaintPageEvent event)
Specified by:
paintPage in interface org.icepdf.core.events.PaintPageListener