| net.refractions.udig.project.render.IRenderManager
IRenderManager | public interface IRenderManager (Code) | | Used by the map viewers/editors to manage the rendering process. Responsibilities:
- Respond to model change events and start rendering processes depending on the event. For
example: If the Map CRS is changed then all layers must be rerendered with the new CRS.
- Create Renderers when a map editor is opened.
- Create and remove renderers when renderers are added or removed
author: jeichar since: 0.1 |
Method Summary | |
public void | clearSelection(ILayer layer) Clears selection from the specified layer. | public RenderedImage | getImage() Returns the most recently rendered Image.
Returns the most recently rendered Image. | public IMap | getMap() Returns the Map associated with the current renderManager. | public IMapDisplay | getMapDisplay() Gets the ViewportPane for the current RenderManager. | List<IRenderer> | getRenderers() Returns the root Renderer Executor. | public void | refresh(Envelope bounds) Forces the area in all layers to be re-rendered. | public void | refresh(ILayer layer, Envelope bounds) Forces layer to be re-rendered. | public void | refreshSelection(ILayer layer, Envelope bounds) Forces the selection in the area to be re-rendered. | public void | stopRendering() Stops the current rendering process if currently rendering. |
clearSelection | public void clearSelection(ILayer layer)(Code) | | 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 |
getImage | public RenderedImage getImage()(Code) | | Returns the most recently rendered Image.
Returns the most recently rendered Image. May return null if the none of the refresh() methodshas been called previously. |
getMap | public IMap getMap()(Code) | | Returns the Map associated with the current renderManager.
the Map associated with the current renderManager. |
getMapDisplay | public IMapDisplay getMapDisplay()(Code) | | Gets the ViewportPane for the current RenderManager.
the ViewportPane for the current RenderManager |
refreshSelection | public void refreshSelection(ILayer layer, Envelope bounds)(Code) | | 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 Parameters: the - area that will be rerendered See Also: IRenderManager.refresh(Envelope) See Also: IRenderManager.refreshSelection(ILayer,Envelope) |
stopRendering | public void stopRendering()(Code) | | Stops the current rendering process if currently rendering.
|
|
|