net.sf.nervalreports.generators.PDFBlockInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pdf-generator Show documentation
Show all versions of pdf-generator Show documentation
This is the PDF generator package of NervalReports (a lightweight report creation library),
used to generate a report directly to a .pdf file.
The newest version!
/** This file is part of nervalreports.
*
* nervalreports 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.
*
* nervalreports 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 nervalreports. If not, see . */
package net.sf.nervalreports.generators;
/** Interface for block construction informations. */
/* default */ abstract class PDFBlockInfo {
enum Type {
PDF_TABLE_INFO,
PDF_GROUP_INFO
};
/** The block type */
private final Type type;
/* default */ PDFBlockInfo(Type type) {
this.type = type;
}
/** @return maximum width a child of the block could have. */
/* default */ abstract float getChildMaxWidth();
/** @return X coordinate where should init a new line inner the block. */
/* default */ abstract float getCurrentInitialX();
/** @return {@link #type}. */
/* default */ Type getType() {
return type;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy