public int getFontSize() { if (rpr.isSetSz()) return rpr.getSz().getVal().intValue() / 2; return -1; } }
/** * Specifies the font size which shall be applied to all non complex script * characters in the contents of this run when displayed. * * @return value representing the font size */ @Override public int getFontSize() { CTRPr pr = getRunProperties(false); return (pr != null && pr.isSetSz()) ? pr.getSz().getVal().divide(new BigInteger("2")).intValue() : -1; }
@Override public int getKerning() { CTRPr pr = getRunProperties(false); if (pr == null || !pr.isSetKern()) { return 0; } return pr.getKern().getVal().intValue(); }
public int getFontSize() { if (rpr.isSetSz()) return rpr.getSz().getVal().intValue() / 2; return -1; } }
/** * Specifies the font size which shall be applied to all non complex script * characters in the contents of this run when displayed. * * @return value representing the font size */ @Override public int getFontSize() { CTRPr pr = getRunProperties(false); return (pr != null && pr.isSetSz()) ? pr.getSz().getVal().divide(new BigInteger("2")).intValue() : -1; }
/** * Specifies the font size which shall be applied to all non complex script * characters in the contents of this run when displayed. * * @return value representing the font size */ public int getFontSize() { CTRPr pr = run.getRPr(); return (pr != null && pr.isSetSz()) ? pr.getSz().getVal().divide(new BigInteger("2")).intValue() : -1; }
@Override public Float getValue( CTParaRPr pr, XWPFStylesDocument document ) { return ( pr != null && pr.isSetSz() ) ? pr.getSz().getVal().divide( new BigInteger( "2" ) ).floatValue() : null; } }
@Override public Float getValue( CTRPr pr, XWPFStylesDocument document ) { return ( pr != null && pr.isSetSz() ) ? pr.getSz().getVal().divide( new BigInteger( "2" ) ).floatValue() : null; }
@Override public Float getValue( CTParaRPr pr, XWPFStylesDocument document ) { return ( pr != null && pr.isSetSz() ) ? pr.getSz().getVal().divide( new BigInteger( "2" ) ).floatValue() : null; } }
@Override public Float getValue( CTRPr pr, XWPFStylesDocument stylesDocument ) { return ( pr != null && pr.isSetSz() ) ? pr.getSz().getVal().divide( new BigInteger( "2" ) ).floatValue() : null; }
@Override public Float getValue( CTRPr pr, XWPFStylesDocument document ) { return ( pr != null && pr.isSetSz() ) ? pr.getSz().getVal().divide( new BigInteger( "2" ) ).floatValue() : null; }
@Override public Float getValue( CTRPr pr, XWPFStylesDocument stylesDocument ) { return ( pr != null && pr.isSetSz() ) ? pr.getSz().getVal().divide( new BigInteger( "2" ) ).floatValue() : null; }
@Override public int getKerning() { CTRPr pr = getRunProperties(false); if (pr == null || !pr.isSetKern()) { return 0; } return pr.getKern().getVal().intValue(); }