public abstract class AbstractReportElement extends java.lang.Object implements ReportElement
Base class all report elements.
IMPORTANT: Although this class is publicly visible, it is subject to change and may not be implemented by clients!
| Constructor and Description |
|---|
AbstractReportElement() |
| Modifier and Type | Method and Description |
|---|---|
float |
getFirstSegmentHeight(float allowedWidth)
in case isSplitable is true, this method will be called.
|
float |
getHeightOfElementToSplit(float allowedWidth,
float allowedHeight)
For splittable elements returns the current height of the element that needs to be split.
|
java.util.Collection<ReportImage.ImagePrintIntent> |
getImageIntents()
Returns all the images that should have been printed by this element
|
boolean |
isSplitable()
In case the element may be split over pages, this method should return true
|
AbstractReportElement[] |
split(float allowedWidth)
If the element my be split this method should return two elements.
|
ReportElement[] |
split(float allowedWidth,
float allowedHeight)
Will split the report element, so the height of the first segment will the maximum value less or equal to the allowed height value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHeight, printpublic boolean isSplitable()
ReportElementisSplitable in interface ReportElementpublic float getFirstSegmentHeight(float allowedWidth)
ReportElementgetFirstSegmentHeight in interface ReportElementallowedWidth - the maximum allowed width for this elementpublic AbstractReportElement[] split(float allowedWidth)
ReportElementsplit in interface ReportElementallowedWidth - allowed with of the segmentpublic ReportElement[] split(float allowedWidth, float allowedHeight)
ReportElementsplit in interface ReportElementallowedWidth - width of report elementallowedHeight - max height of first segment.public float getHeightOfElementToSplit(float allowedWidth,
float allowedHeight)
ReportElementgetHeightOfElementToSplit in interface ReportElementallowedWidth - width of report elementallowedHeight - max height of first segment.public java.util.Collection<ReportImage.ImagePrintIntent> getImageIntents()
ReportElementgetImageIntents in interface ReportElement