public interface ViewTemplateSupplier
ViewTemplateSupplier
collects and provides any number of VTViewTemplates
.
This interface may be implemented by clients to implement custom logic to provide VTViewTemplates and/or
VTStyleProperties
for given VElements
.
Modifier and Type | Method and Description |
---|---|
Map<VTStyleProperty,Double> |
getStyleProperties(VElement vElement,
ViewModelContext viewModelContext)
Return all
StyleProperties which are applicable to the provided VElement . |
Set<VTViewTemplate> |
getViewTemplates()
Returns a copy of the view templates known to this supplier.
|
Map<VTStyleProperty,Double> getStyleProperties(VElement vElement, ViewModelContext viewModelContext)
StyleProperties
which are applicable to the provided VElement
.
The keys of the map are the StyleProperties
and the values the corresponding
specificities.
The returned values might be cached by the caller. Therefore, for the same arguments, the
ViewTemplateSupplier
is expected to return the same map of StyleProperties
and
specificities.
vElement
- the VElement
to get the StyleProperties
forviewModelContext
- the ViewModelContext
currently in useStyleProperties
and their specificities for the given
VElement
or an empty mapSet<VTViewTemplate> getViewTemplates()
ViewTemplateSupplier
VTViewTemplates
or an empty setCopyright © 2019. All rights reserved.