Package org.eclipse.graphiti.platform.ga
Class RendererContext
- java.lang.Object
-
- org.eclipse.graphiti.platform.ga.RendererContext
-
- All Implemented Interfaces:
IDiagramTypeProviderHolder,IGraphicsAlgorithmHolder,IRendererContext
public class RendererContext extends java.lang.Object implements IRendererContext
The Class RendererContext.
-
-
Constructor Summary
Constructors Constructor Description RendererContext(PlatformGraphicsAlgorithm pga, IDiagramTypeProvider dtp)Creates a newRendererContext.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IDiagramTypeProvidergetDiagramTypeProvider()Gets the diagram type provider.GraphicsAlgorithmgetGraphicsAlgorithm()Returns the graphics algorithm.IMappingProvidergetMappingProvider()Gets the mapping provider.PlatformGraphicsAlgorithmgetPlatformGraphicsAlgorithm()Gets the platform graphics algorithm.
-
-
-
Constructor Detail
-
RendererContext
public RendererContext(PlatformGraphicsAlgorithm pga, IDiagramTypeProvider dtp)
Creates a newRendererContext.- Parameters:
pga- the platform graphics algorithmdtp- the diagram type provider
-
-
Method Detail
-
getMappingProvider
public IMappingProvider getMappingProvider()
Description copied from interface:IRendererContextGets the mapping provider.- Specified by:
getMappingProviderin interfaceIRendererContext- Returns:
- the mapping provider
-
getPlatformGraphicsAlgorithm
public PlatformGraphicsAlgorithm getPlatformGraphicsAlgorithm()
Description copied from interface:IRendererContextGets the platform graphics algorithm.- Specified by:
getPlatformGraphicsAlgorithmin interfaceIRendererContext- Returns:
- the platform graphics algorithm
-
getDiagramTypeProvider
public IDiagramTypeProvider getDiagramTypeProvider()
Description copied from interface:IDiagramTypeProviderHolderGets the diagram type provider.- Specified by:
getDiagramTypeProviderin interfaceIDiagramTypeProviderHolder- Returns:
- the diagram type provider
-
getGraphicsAlgorithm
public GraphicsAlgorithm getGraphicsAlgorithm()
Description copied from interface:IGraphicsAlgorithmHolderReturns the graphics algorithm.- Specified by:
getGraphicsAlgorithmin interfaceIGraphicsAlgorithmHolder- Returns:
- the graphics algorithm
-
-