/** * Creates and returns a {@link RowSpec} that represents a gap with the * specified {@link ConstantSize}. * * @param gapHeight a <code>ConstantSize</code> that specifies the gap * @return a <code>RowSpec</code> that describes a vertical gap * * @deprecated Replaced by {@link RowSpec#createGap(ConstantSize)}. * This method will be removed from the Forms 2.0 API. */ public static RowSpec createGapRowSpec(ConstantSize gapHeight) { return RowSpec.createGap(gapHeight); }
/** * Sets the size of gaps between paragraphs using the given * constant size.<p> * * <strong>Examples:</strong><pre> * builder.setParagraphGapSize(Sizes.DLUY14); * builder.setParagraphGapSize(Sizes.dluY(22)); * builder.setParagraphGapSize(Sizes.pixel(42)); * </pre> * * @param paragraphGapSize the {@code ConstantSize} that describes * the size of the gaps between paragraphs */ public void setParagraphGapSize(ConstantSize paragraphGapSize) { RowSpec rowSpec = RowSpec.createGap(paragraphGapSize); this.paragraphGapSpec = rowSpec; }
/** * Sets the size of gaps between component lines using the given * constant size.<p> * * <strong>Examples:</strong><pre> * builder.setLineGapSize(Sizes.ZERO); * builder.setLineGapSize(Sizes.DLUY9); * builder.setLineGapSize(Sizes.pixel(1)); * </pre> * * @param lineGapSize the <code>ConstantSize</code> that describes * the size of the gaps between component lines */ public void setLineGapSize(ConstantSize lineGapSize) { RowSpec rowSpec = RowSpec.createGap(lineGapSize); this.lineGapSpec = rowSpec; }
/** * Sets the size of gaps between paragraphs using the given * constant size.<p> * * <strong>Examples:</strong><pre> * builder.setParagraphGapSize(Sizes.DLUY14); * builder.setParagraphGapSize(Sizes.dluY(22)); * builder.setParagraphGapSize(Sizes.pixel(42)); * </pre> * * @param paragraphGapSize the <code>ConstantSize</code> that describes * the size of the gaps between paragraphs */ public void setParagraphGapSize(ConstantSize paragraphGapSize) { RowSpec rowSpec = RowSpec.createGap(paragraphGapSize); this.paragraphGapSpec = rowSpec; }
/** * Sets the size of gaps between component lines using the given * constant size.<p> * * <strong>Examples:</strong><pre> * builder.setLineGapSize(Sizes.ZERO); * builder.setLineGapSize(Sizes.DLUY9); * builder.setLineGapSize(Sizes.pixel(1)); * </pre> * * @param lineGapSize the {@code ConstantSize} that describes * the size of the gaps between component lines */ public void setLineGapSize(ConstantSize lineGapSize) { RowSpec rowSpec = RowSpec.createGap(lineGapSize); this.lineGapSpec = rowSpec; }