/** * @return typeface of the minor font to use in a document. * Typically the monor font is used for normal text or paragraph areas. * */ @SuppressWarnings("WeakerAccess") public String getMinorFont(){ return _theme.getThemeElements().getFontScheme().getMinorFont().getLatin().getTypeface(); } }
/** * Create a new, empty ThemesTable */ public ThemesTable() { super(); theme = ThemeDocument.Factory.newInstance(); theme.addNewTheme().addNewThemeElements(); }
/** * @return typeface of the major font to use in a document. * Typically the major font is used for heading areas of a document. * */ @SuppressWarnings("WeakerAccess") public String getMajorFont(){ return _theme.getThemeElements().getFontScheme().getMajorFont().getLatin().getTypeface(); }
/** * Sets the line style. * * @param lineStyle */ public void setLineStyle( int lineStyle ) { CTShapeProperties props = getShapeProperties(); CTLineProperties ln = props.isSetLn() ? props.getLn() : props.addNewLn(); CTPresetLineDashProperties dashStyle = CTPresetLineDashProperties.Factory.newInstance(); dashStyle.setVal(STPresetLineDashVal.Enum.forInt(lineStyle+1)); ln.setPrstDash(dashStyle); }
static CTTableCell prototype() { CTTableCell cell = CTTableCell.Factory.newInstance(); CTTableCellProperties pr = cell.addNewTcPr(); pr.addNewLnL().addNewNoFill(); pr.addNewLnR().addNewNoFill(); pr.addNewLnT().addNewNoFill(); pr.addNewLnB().addNewNoFill(); return cell; }
@Override public void setFillColor(int red, int green, int blue) { CTShapeProperties props = getShapeProperties(); CTSolidColorFillProperties fill = props.isSetSolidFill() ? props.getSolidFill() : props.addNewSolidFill(); CTSRgbColor rgb = CTSRgbColor.Factory.newInstance(); rgb.setVal(new byte[]{(byte)red, (byte)green, (byte)blue}); fill.setSrgbClr(rgb); }
public void removeAdjustValue(int index) { if (geometry.isSetAvLst()) { geometry.getAvLst().removeGd(index); } }
public void removeGuide(int index) { if (geometry.isSetGdLst()) { geometry.getGdLst().removeGd(index); } }
public void removeGradientStop(int index) { if (props.isSetGsLst()) { props.getGsLst().removeGs(index); } }
public int countGradientStops() { if (props.isSetGsLst()) { return props.getGsLst().sizeOfGsArray(); } else { return 0; } }
public void removeAdjustValue(int index) { if (geometry.isSetAvLst()) { geometry.getAvLst().removeGd(index); } }
public void removePolarAdjustHandle(int index) { if (geometry.isSetAhLst()) { geometry.getAhLst().removeAhPolar(index); } }
public void removeDashStop(int index) { if (props.isSetCustDash()) { props.getCustDash().removeDs(index); } }
public void removeXYAdjustHandle(int index) { if (geometry.isSetAhLst()) { geometry.getAhLst().removeAhXY(index); } }
public void removeConnectionSite(int index) { if (geometry.isSetCxnLst()) { geometry.getCxnLst().removeCxn(index); } }