net.refractions.udig.project.render
Interface IRenderManager


public interface IRenderManager

Used by the map viewers/editors to manage the rendering process. Responsibilities:

Since:
0.1
Author:
jeichar

Method Summary
 void clearSelection(ILayer layer)
          Clears selection from the specified layer.
 java.awt.image.RenderedImage getImage()
          Returns the most recently rendered Image.
 IMap getMap()
          Returns the Map associated with the current renderManager.
 IMapDisplay getMapDisplay()
          Gets the ViewportPane for the current RenderManager.
 java.util.List<IRenderer> getRenderers()
          Returns the root Renderer Executor.
 void refresh(Envelope bounds)
          Forces the area in all layers to be re-rendered.
 void refresh(ILayer layer, Envelope bounds)
          Forces layer to be re-rendered.
 void refreshSelection(ILayer layer, Envelope bounds)
          Forces the selection in the area to be re-rendered.
 void stopRendering()
          Stops the current rendering process if currently rendering.
 

Method Detail

getMap

IMap getMap()
Returns the Map associated with the current renderManager.

Returns:
the Map associated with the current renderManager.

getRenderers

java.util.List<IRenderer> getRenderers()
Returns the root Renderer Executor.

Returns:
the root

getMapDisplay

IMapDisplay getMapDisplay()
Gets the ViewportPane for the current RenderManager.

Returns:
the ViewportPane for the current RenderManager

refresh

void refresh(Envelope bounds)
Forces the area in all layers to be re-rendered.

Depending on the renderer the entire viewport may be re-rendered.

Parameters:
bounds - the area to be re-rendered
See Also:
refresh(ILayer, Envelope), refreshSelection(ILayer, Envelope)

refreshSelection

void refreshSelection(ILayer layer,
                      Envelope bounds)
Forces the selection in the area to be re-rendered.

Depending on the renderer the entire viewport may be re-rendered.

If layer is null no layers will be rendered.

Parameters:
layer - the layer whose selection layer should be rerendered
the - area that will be rerendered
See Also:
refresh(Envelope), refreshSelection(ILayer, Envelope)

clearSelection

void clearSelection(ILayer layer)
Clears selection from the specified layer. It is used when the Filter.ALL is set as a filter to the layer and the old selection should be cleared.

Parameters:
layer - the layer whose selection should be cleared

refresh

void refresh(ILayer layer,
             Envelope bounds)
Forces layer to be re-rendered. Depending on the renderer the entire viewport may be re-rendered.

If layer is null no layers will be rendered.

Parameters:
layer - the layer that will be re-rendered.
bounds - the area the re-render
See Also:
refresh(Envelope), refresh(ILayer, Envelope)

stopRendering

void stopRendering()
Stops the current rendering process if currently rendering.


getImage

java.awt.image.RenderedImage getImage()
Returns the most recently rendered Image.

Returns:
Returns the most recently rendered Image. May return null if the none of the refresh() methods has been called previously.