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; } }
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; } }