com.ontimize.util.gis.client.viewer
Class ParallelThreadEditionGisViewer.InternalEditionRenderer

java.lang.Object
  extended by com.ontimize.util.gis.client.viewer.ParallelThreadEditionGisViewer.InternalEditionRenderer
All Implemented Interfaces:
IGisInternalRenderer
Enclosing class:
ParallelThreadEditionGisViewer

 class ParallelThreadEditionGisViewer.InternalEditionRenderer
extends java.lang.Object
implements IGisInternalRenderer


Field Summary
(package private)  java.lang.Thread paintThread
           
(package private)  IGisViewer parentViewer
           
 
Constructor Summary
ParallelThreadEditionGisViewer.InternalEditionRenderer(IGisViewer parentViewer)
           
 
Method Summary
 void cancelActualRendering()
          Cancel the actual rendering process.
 boolean isRendering()
          Check if the thread is actually rendering the map
 void render(java.awt.image.BufferedImage image, com.vividsolutions.jts.geom.Envelope bbox)
          Internal method used by the Gis viewer panel internal rendering threads
 void stopRenderThread()
          Forces the rendering thread to stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parentViewer

IGisViewer parentViewer

paintThread

java.lang.Thread paintThread
Constructor Detail

ParallelThreadEditionGisViewer.InternalEditionRenderer

public ParallelThreadEditionGisViewer.InternalEditionRenderer(IGisViewer parentViewer)
Method Detail

stopRenderThread

public void stopRenderThread()
Description copied from interface: IGisInternalRenderer
Forces the rendering thread to stop

Specified by:
stopRenderThread in interface IGisInternalRenderer

render

public void render(java.awt.image.BufferedImage image,
                   com.vividsolutions.jts.geom.Envelope bbox)
Description copied from interface: IGisInternalRenderer
Internal method used by the Gis viewer panel internal rendering threads

Specified by:
render in interface IGisInternalRenderer
Parameters:
image - Image to paint on
bbox - Area of the given image

isRendering

public boolean isRendering()
Description copied from interface: IGisInternalRenderer
Check if the thread is actually rendering the map

Specified by:
isRendering in interface IGisInternalRenderer
Returns:
Rendering process state

cancelActualRendering

public void cancelActualRendering()
Description copied from interface: IGisInternalRenderer
Cancel the actual rendering process. This causes the rendering thread to stop its actual rendering work and to throw away the renderer images.

Specified by:
cancelActualRendering in interface IGisInternalRenderer