/** * Sets the right inset. * * @see #getRightInset() * * @param margin * the right margin */ public void setRightInset(double margin) { if (margin == -1) { _textBody.getBodyProperties().setRightInset(null); } else { _textBody.getBodyProperties().setRightInset(margin); } }
/** * Returns the distance (in points) between the bottom of the text frame and * the bottom of the inscribed rectangle of the shape that contains the * text. * * @return the bottom inset in points */ public double getBottomInset() { Double inset = _textBody.getBodyProperties().getBottomInset(); if (inset == null) { // If this attribute is omitted, then a value of 0.05 inches is // implied return 3.6; } else { return inset; } }
/** * Sets the bottom inset. * * @see #getBottomInset() * * @param margin * the bottom margin */ public void setBottomInset(double margin) { if (margin == -1) { _textBody.getBodyProperties().setBottomInset(null); } else { _textBody.getBodyProperties().setBottomInset(margin); } }
/** * Sets the left inset. * * @see #getLeftInset() * * @param margin * the left margin */ public void setLeftInset(double margin) { if (margin == -1) { _textBody.getBodyProperties().setLeftInset(null); } else { _textBody.getBodyProperties().setLeftInset(margin); } }
/** * Sets the top inset. * * @see #getTopInset() * * @param margin * the top margin */ public void setTopInset(double margin) { if (margin == -1) { _textBody.getBodyProperties().setTopInset(null); } else { _textBody.getBodyProperties().setTopInset(margin); } }
/** * Returns the distance (in points) between the top of the text frame and * the top of the inscribed rectangle of the shape that contains the text. * * @return the top inset in points */ public double getTopInset() { Double inset = _textBody.getBodyProperties().getTopInset(); if (inset == null) { // If this attribute is omitted, then a value of 0.05 inches is // implied return 3.6; } else { return inset; } }
/** * Returns the distance (in points) between the left edge of the text frame * and the left edge of the inscribed rectangle of the shape that contains * the text. * * @return the left inset in points */ public double getLeftInset() { Double inset = _textBody.getBodyProperties().getLeftInset(); if (inset == null) { // If this attribute is omitted, then a value of 0.05 inches is // implied return 3.6; } else { return inset; } }
/** * Returns the distance (in points) between the right edge of the text frame * and the right edge of the inscribed rectangle of the shape that contains * the text. * * @return the right inset in points */ public double getRightInset() { Double inset = _textBody.getBodyProperties().getRightInset(); if (inset == null) { // If this attribute is omitted, then a value of 0.05 inches is // implied return 3.6; } else { return inset; } }
public XDDFTextParagraph initialize() { _body.addNewLstStyle(); _body.addNewBodyPr(); XDDFBodyProperties bp = getBodyProperties(); bp.setAnchoring(AnchorType.TOP); bp.setRightToLeft(false); XDDFTextParagraph p = addNewParagraph(); p.setTextAlignment(TextAlignment.LEFT); XDDFRunProperties end = p.addAfterLastRunProperties(); end.setLanguage(Locale.US); end.setFontSize(11.0); return p; }
/** * Sets the top inset. * * @see #getTopInset() * * @param margin * the top margin */ public void setTopInset(double margin) { if (margin == -1) { _textBody.getBodyProperties().setTopInset(null); } else { _textBody.getBodyProperties().setTopInset(margin); } }
/** * Sets the right inset. * * @see #getRightInset() * * @param margin * the right margin */ public void setRightInset(double margin) { if (margin == -1) { _textBody.getBodyProperties().setRightInset(null); } else { _textBody.getBodyProperties().setRightInset(margin); } }
/** * Sets the bottom inset. * * @see #getBottomInset() * * @param margin * the bottom margin */ public void setBottomInset(double margin) { if (margin == -1) { _textBody.getBodyProperties().setBottomInset(null); } else { _textBody.getBodyProperties().setBottomInset(margin); } }
/** * Sets the left inset. * * @see #getLeftInset() * * @param margin * the left margin */ public void setLeftInset(double margin) { if (margin == -1) { _textBody.getBodyProperties().setLeftInset(null); } else { _textBody.getBodyProperties().setLeftInset(margin); } }
/** * Returns the distance (in points) between the top of the text frame and * the top of the inscribed rectangle of the shape that contains the text. * * @return the top inset in points */ public double getTopInset() { Double inset = _textBody.getBodyProperties().getTopInset(); if (inset == null) { // If this attribute is omitted, then a value of 0.05 inches is // implied return 3.6; } else { return inset; } }
/** * Returns the distance (in points) between the right edge of the text frame * and the right edge of the inscribed rectangle of the shape that contains * the text. * * @return the right inset in points */ public double getRightInset() { Double inset = _textBody.getBodyProperties().getRightInset(); if (inset == null) { // If this attribute is omitted, then a value of 0.05 inches is // implied return 3.6; } else { return inset; } }
/** * Returns the distance (in points) between the bottom of the text frame and * the bottom of the inscribed rectangle of the shape that contains the * text. * * @return the bottom inset in points */ public double getBottomInset() { Double inset = _textBody.getBodyProperties().getBottomInset(); if (inset == null) { // If this attribute is omitted, then a value of 0.05 inches is // implied return 3.6; } else { return inset; } }
/** * Returns the distance (in points) between the left edge of the text frame * and the left edge of the inscribed rectangle of the shape that contains * the text. * * @return the left inset in points */ public double getLeftInset() { Double inset = _textBody.getBodyProperties().getLeftInset(); if (inset == null) { // If this attribute is omitted, then a value of 0.05 inches is // implied return 3.6; } else { return inset; } }
public XDDFTextParagraph initialize() { _body.addNewLstStyle(); _body.addNewBodyPr(); XDDFBodyProperties bp = getBodyProperties(); bp.setAnchoring(AnchorType.TOP); bp.setRightToLeft(false); XDDFTextParagraph p = addNewParagraph(); p.setTextAlignment(TextAlignment.LEFT); XDDFRunProperties end = p.addAfterLastRunProperties(); end.setLanguage(Locale.US); end.setFontSize(11.0); return p; }