/** * @return whether a run of text will be formatted as a subscript text. * Default is false. */ public boolean isSubscript() { return findDefinedProperty(props -> props.isSetBaseline(), props -> props.getBaseline()) .map(baseline -> baseline < 0) .orElse(false); }
/** * @return whether a run of text will be formatted as a superscript text. * Default is false. */ public boolean isSuperscript() { return findDefinedProperty(props -> props.isSetBaseline(), props -> props.getBaseline()) .map(baseline -> baseline > 0) .orElse(false); }
@Override public boolean fetch(CTTextCharacterProperties props){ if (props != null && props.isSetBaseline()) { setValue(props.getBaseline() > 0); return true; } return false; } };
@Override public boolean fetch(CTTextCharacterProperties props){ if (props != null && props.isSetBaseline()) { setValue(props.getBaseline() < 0); return true; } return false; } };
/** * @return whether a run of text will be formatted as a superscript text. Default is false. */ public boolean isSuperscript() { CTTextCharacterProperties rPr = getRPr(); if(rPr.isSetBaseline()){ return rPr.getBaseline() > 0; } return false; }
/** * @return whether a run of text will be formatted as a superscript text. Default is false. */ public boolean isSubscript() { CTTextCharacterProperties rPr = getRPr(); if(rPr.isSetBaseline()){ return rPr.getBaseline() < 0; } return false; }
/** * @return whether a run of text will be formatted as a superscript text. * Default is false. */ public boolean isSuperscript() { return findDefinedProperty(props -> props.isSetBaseline(), props -> props.getBaseline()) .map(baseline -> baseline > 0) .orElse(false); }
/** * @return whether a run of text will be formatted as a subscript text. * Default is false. */ public boolean isSubscript() { return findDefinedProperty(props -> props.isSetBaseline(), props -> props.getBaseline()) .map(baseline -> baseline < 0) .orElse(false); }
/** * @return whether a run of text will be formatted as a superscript text. Default is false. */ public boolean isSubscript() { CTTextCharacterProperties rPr = getRPr(); if(rPr.isSetBaseline()){ return rPr.getBaseline() < 0; } return false; }
@Override public boolean fetch(CTTextCharacterProperties props){ if (props != null && props.isSetBaseline()) { setValue(props.getBaseline() < 0); return true; } return false; } };
/** * @return whether a run of text will be formatted as a superscript text. Default is false. */ public boolean isSuperscript() { CTTextCharacterProperties rPr = getRPr(); if(rPr.isSetBaseline()){ return rPr.getBaseline() > 0; } return false; }
public boolean fetch(CTTextCharacterProperties props){ if(props.isSetBaseline()){ setValue(props.getBaseline() > 0); return true; } return false; } };
@Override public boolean fetch(CTTextCharacterProperties props){ if (props != null && props.isSetBaseline()) { setValue(props.getBaseline() > 0); return true; } return false; } };
public boolean fetch(CTTextCharacterProperties props){ if(props.isSetBaseline()){ setValue(props.getBaseline() < 0); return true; } return false; } };