public class ColumnLayout extends VerticalLayout
VerticalLayout. See there for more details
on the possiblities.| Modifier and Type | Field and Description |
|---|---|
static ControlElement |
NEWCOLUMN
Triggers flip to the next column.
|
removeLeadingEmptyVerticalSpace| Constructor and Description |
|---|
ColumnLayout(int columnCount) |
ColumnLayout(int columnCount,
float columnSpacing) |
| Modifier and Type | Method and Description |
|---|---|
protected float |
getTargetWidth(RenderContext renderContext) |
protected boolean |
isPositionTopOfPage(RenderContext renderContext)
Indicates if the current position is the top of page.
|
void |
render(RenderContext renderContext,
Drawable drawable,
LayoutHint layoutHint) |
boolean |
render(RenderContext renderContext,
Element element,
LayoutHint layoutHint)
Renders an element.
|
protected void |
turnPage(RenderContext renderContext)
Flips to the next column
|
drawReletivePartAndMovePosition, isRemoveLeadingEmptyVerticalSpace, layoutAndDrawReleative, removeLeadingEmptyVerticalSpace, renderAbsolute, renderReleative, setRemoveLeadingEmptyVerticalSpacepublic static final ControlElement NEWCOLUMN
public ColumnLayout(int columnCount)
public ColumnLayout(int columnCount,
float columnSpacing)
protected float getTargetWidth(RenderContext renderContext)
getTargetWidth in class VerticalLayoutrenderContext - the render context.protected void turnPage(RenderContext renderContext) throws IOException
turnPage in class VerticalLayoutrenderContext - the render context.IOException - by pdfbox.public boolean render(RenderContext renderContext, Element element, LayoutHint layoutHint) throws IOException
Rendererrender in interface Rendererrender in class VerticalLayoutrenderContext - the render context.element - the element to draw.layoutHint - the associated layout hinttrue if the layout is able to render the element.IOException - by pdfboxpublic void render(RenderContext renderContext, Drawable drawable, LayoutHint layoutHint) throws IOException
render in class VerticalLayoutIOExceptionprotected boolean isPositionTopOfPage(RenderContext renderContext)
VerticalLayoutisPositionTopOfPage in class VerticalLayoutrenderContext - the render context.true if the current position is top of page.Copyright © 2021. All rights reserved.