public static XDDFFont unsetFontForGroup(FontGroup group) { return new XDDFFont(group, null); }
public void setFonts(XDDFFont[] fonts) { for (XDDFFont font : fonts) { CTTextFont xml = font.getXmlObject(); switch (font.getGroup()) { case COMPLEX_SCRIPT: if (xml == null) {
public void setBulletFont(XDDFFont font) { if (props.isSetBuFontTx()) { props.unsetBuFontTx(); } if (font == null) { if (props.isSetBuFont()) { props.unsetBuFont(); } } else { props.setBuFont(font.getXmlObject()); } }
public void setFonts(XDDFFont[] fonts) { for (XDDFFont font : fonts) { CTTextFont xml = font.getXmlObject(); switch (font.getGroup()) { case COMPLEX_SCRIPT: if (xml == null) {
public void setBulletFont(XDDFFont font) { if (props.isSetBuFontTx()) { props.unsetBuFontTx(); } if (font == null) { if (props.isSetBuFont()) { props.unsetBuFont(); } } else { props.setBuFont(font.getXmlObject()); } }
public XDDFFont[] getFonts() { LinkedList<XDDFFont> list = new LinkedList<>(); findDefinedProperty(props -> props.isSetCs(), props -> props.getCs()) .map(font -> new XDDFFont(FontGroup.COMPLEX_SCRIPT, font)) .ifPresent(font -> list.add(font)); findDefinedProperty(props -> props.isSetEa(), props -> props.getEa()) .map(font -> new XDDFFont(FontGroup.EAST_ASIAN, font)) .ifPresent(font -> list.add(font)); findDefinedProperty(props -> props.isSetLatin(), props -> props.getLatin()) .map(font -> new XDDFFont(FontGroup.LATIN, font)) .ifPresent(font -> list.add(font)); findDefinedProperty(props -> props.isSetSym(), props -> props.getSym()) .map(font -> new XDDFFont(FontGroup.SYMBOL, font)) .ifPresent(font -> list.add(font)); return list.toArray(new XDDFFont[list.size()]); }
public XDDFFont getBulletFont() { if (props.isSetBuFont()) { return new XDDFFont(FontGroup.SYMBOL, props.getBuFont()); } else { return null; } }
public static XDDFFont unsetFontForGroup(FontGroup group) { return new XDDFFont(group, null); }
public XDDFFont[] getFonts() { LinkedList<XDDFFont> list = new LinkedList<>(); findDefinedProperty(props -> props.isSetCs(), props -> props.getCs()) .map(font -> new XDDFFont(FontGroup.COMPLEX_SCRIPT, font)) .ifPresent(font -> list.add(font)); findDefinedProperty(props -> props.isSetEa(), props -> props.getEa()) .map(font -> new XDDFFont(FontGroup.EAST_ASIAN, font)) .ifPresent(font -> list.add(font)); findDefinedProperty(props -> props.isSetLatin(), props -> props.getLatin()) .map(font -> new XDDFFont(FontGroup.LATIN, font)) .ifPresent(font -> list.add(font)); findDefinedProperty(props -> props.isSetSym(), props -> props.getSym()) .map(font -> new XDDFFont(FontGroup.SYMBOL, font)) .ifPresent(font -> list.add(font)); return list.toArray(new XDDFFont[list.size()]); }
public XDDFFont getBulletFont() { if (props.isSetBuFont()) { return new XDDFFont(FontGroup.SYMBOL, props.getBuFont()); } else { return null; } }