VELEMENT
- public interface EMFFormsRendererService<VELEMENT extends VElement>
AbstractSWTRenderer
.Modifier and Type | Field and Description |
---|---|
static double |
NOT_APPLICABLE
Constant for
isApplicable(VElement, ViewModelContext) to indicate, that the EMFFormsRendererService
cannot provide a
fitting renderer for the provided VElement. |
Modifier and Type | Method and Description |
---|---|
AbstractSWTRenderer<VELEMENT> |
getRendererInstance(VELEMENT vElement,
ViewModelContext viewModelContext)
Returns a renderer.
|
double |
isApplicable(VElement vElement,
ViewModelContext viewModelContext)
Check whether the provided
VElement can be rendered by the AbstractSWTRenderer provided by
getRendererInstance(VElement, ViewModelContext) . |
static final double NOT_APPLICABLE
isApplicable(VElement, ViewModelContext)
to indicate, that the EMFFormsRendererService
cannot provide a
fitting renderer for the provided VElement.double isApplicable(VElement vElement, ViewModelContext viewModelContext)
VElement
can be rendered by the AbstractSWTRenderer
provided by
getRendererInstance(VElement, ViewModelContext)
.vElement
- The VElement
to checkviewModelContext
- The ViewModelContext
to use for the renderer instanceNOT_APPLICABLE
if the renderer doesn't fit, a positive value otherwiseAbstractSWTRenderer<VELEMENT> getRendererInstance(VELEMENT vElement, ViewModelContext viewModelContext)
vElement
- The VElement
to create the renderer instance forviewModelContext
- The ViewModelContext
to use for the renderer instanceCopyright © 2016. All rights reserved.