Search in sources :

Example 1 with FontFamily

use of org.kie.workbench.common.stunner.bpmn.definition.property.font.FontFamily in project kie-wb-common by kiegroup.

the class BasePropertyReader method getFontSet.

@Override
public FontSet getFontSet() {
    final FontFamily fontFamily = new FontFamily();
    final FontColor fontColor = new FontColor(optionalAttribute("fontcolor").orElse(colorsDefaultFont()));
    final FontSize fontSize = new FontSize(optionalAttribute("fontsize").map(Double::parseDouble).orElse(null));
    final FontBorderSize fontBorderSize = new FontBorderSize();
    final FontBorderColor fontBorderColor = new FontBorderColor();
    return new FontSet(fontFamily, fontColor, fontSize, fontBorderSize, fontBorderColor);
}
Also used : FontFamily(org.kie.workbench.common.stunner.bpmn.definition.property.font.FontFamily) FontSet(org.kie.workbench.common.stunner.bpmn.definition.property.font.FontSet) FontSize(org.kie.workbench.common.stunner.bpmn.definition.property.font.FontSize) FontColor(org.kie.workbench.common.stunner.bpmn.definition.property.font.FontColor) FontBorderColor(org.kie.workbench.common.stunner.bpmn.definition.property.font.FontBorderColor) FontBorderSize(org.kie.workbench.common.stunner.bpmn.definition.property.font.FontBorderSize)

Aggregations

FontBorderColor (org.kie.workbench.common.stunner.bpmn.definition.property.font.FontBorderColor)1 FontBorderSize (org.kie.workbench.common.stunner.bpmn.definition.property.font.FontBorderSize)1 FontColor (org.kie.workbench.common.stunner.bpmn.definition.property.font.FontColor)1 FontFamily (org.kie.workbench.common.stunner.bpmn.definition.property.font.FontFamily)1 FontSet (org.kie.workbench.common.stunner.bpmn.definition.property.font.FontSet)1 FontSize (org.kie.workbench.common.stunner.bpmn.definition.property.font.FontSize)1