use of org.kie.workbench.common.stunner.core.client.preferences.StunnerTextPreferences in project kie-wb-common by kiegroup.
the class BPMNShapeFactory method getFontHandler.
private <W extends BPMNViewDefinition, V extends ShapeView> FontHandler.Builder<W, V> getFontHandler() {
final String definitionSetId = definitionUtils.getDefinitionSetId(BPMNDefinitionSet.class);
final StunnerTextPreferences preferences = preferencesRegistries.get(definitionSetId, StunnerTextPreferences.class);
return new BPMNShapeViewHandlers.FontHandlerBuilder<W, V>().alpha(c -> preferences.getTextAlpha()).fontFamily(c -> preferences.getTextFontFamily()).fontSize(c -> preferences.getTextFontSize()).fontColor(c -> preferences.getTextFillColor()).strokeColor(c -> preferences.getTextStrokeColor()).strokeSize(c -> preferences.getTextStrokeWidth()).strokeAlpha(c -> getStrokeAlpha(preferences.getTextStrokeWidth()));
}
Aggregations