All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.dynamicreports.report.base.style.DRParagraph Maven / Gradle / Ivy

Go to download

DynamicReports is an open source Java reporting library based on JasperReports. It allows to create dynamic report designs and it doesn't need a visual report designer. You can very quickly create reports and produce documents that can be displayed, printed or exported into many popular formats such as PDF, Excel, Word and others.

There is a newer version: 6.20.1
Show newest version
/*
 * DynamicReports - Free Java reporting library for creating reports dynamically
 *
 * Copyright (C) 2010 - 2018 Ricardo Mariaca and the Dynamic Reports Contributors
 * http://www.dynamicreports.org
 *
 * This file is part of DynamicReports.
 *
 * DynamicReports is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * DynamicReports is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with DynamicReports. If not, see .
 */
package net.sf.dynamicreports.report.base.style;

import net.sf.dynamicreports.report.constant.Constants;
import net.sf.dynamicreports.report.constant.LineSpacing;
import net.sf.dynamicreports.report.definition.style.DRIParagraph;
import net.sf.dynamicreports.report.definition.style.DRITabStop;

import java.util.ArrayList;
import java.util.List;

/**
 * 

DRParagraph class.

* * @author Ricardo Mariaca ([email protected]) * @version $Id: $Id */ public class DRParagraph implements DRIParagraph { private static final long serialVersionUID = Constants.SERIAL_VERSION_UID; private LineSpacing lineSpacing; private Float lineSpacingSize; private Integer firstLineIndent; private Integer leftIndent; private Integer rightIndent; private Integer spacingBefore; private Integer spacingAfter; private Integer tabStopWidth; private List tabStops; /** *

Constructor for DRParagraph.

*/ public DRParagraph() { tabStops = new ArrayList(); } /** {@inheritDoc} */ @Override public LineSpacing getLineSpacing() { return lineSpacing; } /** *

Setter for the field lineSpacing.

* * @param lineSpacing a {@link net.sf.dynamicreports.report.constant.LineSpacing} object. */ public void setLineSpacing(LineSpacing lineSpacing) { this.lineSpacing = lineSpacing; } /** {@inheritDoc} */ @Override public Float getLineSpacingSize() { return lineSpacingSize; } /** *

Setter for the field lineSpacingSize.

* * @param lineSpacingSize a {@link java.lang.Float} object. */ public void setLineSpacingSize(Float lineSpacingSize) { this.lineSpacingSize = lineSpacingSize; } /** {@inheritDoc} */ @Override public Integer getFirstLineIndent() { return firstLineIndent; } /** *

Setter for the field firstLineIndent.

* * @param firstLineIndent a {@link java.lang.Integer} object. */ public void setFirstLineIndent(Integer firstLineIndent) { this.firstLineIndent = firstLineIndent; } /** {@inheritDoc} */ @Override public Integer getLeftIndent() { return leftIndent; } /** *

Setter for the field leftIndent.

* * @param leftIndent a {@link java.lang.Integer} object. */ public void setLeftIndent(Integer leftIndent) { this.leftIndent = leftIndent; } /** {@inheritDoc} */ @Override public Integer getRightIndent() { return rightIndent; } /** *

Setter for the field rightIndent.

* * @param rightIndent a {@link java.lang.Integer} object. */ public void setRightIndent(Integer rightIndent) { this.rightIndent = rightIndent; } /** {@inheritDoc} */ @Override public Integer getSpacingBefore() { return spacingBefore; } /** *

Setter for the field spacingBefore.

* * @param spacingBefore a {@link java.lang.Integer} object. */ public void setSpacingBefore(Integer spacingBefore) { this.spacingBefore = spacingBefore; } /** {@inheritDoc} */ @Override public Integer getSpacingAfter() { return spacingAfter; } /** *

Setter for the field spacingAfter.

* * @param spacingAfter a {@link java.lang.Integer} object. */ public void setSpacingAfter(Integer spacingAfter) { this.spacingAfter = spacingAfter; } /** {@inheritDoc} */ @Override public Integer getTabStopWidth() { return tabStopWidth; } /** *

Setter for the field tabStopWidth.

* * @param tabStopWidth a {@link java.lang.Integer} object. */ public void setTabStopWidth(Integer tabStopWidth) { this.tabStopWidth = tabStopWidth; } /** {@inheritDoc} */ @Override public List getTabStops() { return tabStops; } /** *

Setter for the field tabStops.

* * @param tabStops a {@link java.util.List} object. */ public void setTabStops(List tabStops) { this.tabStops = tabStops; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy