public class PageLayoutSettings extends AbstractListenableRenderSettings
The following settings are available:
PageLayoutSettings.HorizontalAlignment
PageLayoutSettings.VerticalAlignment
(not applied in continuous layout)Modifier and Type | Class and Description |
---|---|
static class |
PageLayoutSettings.HorizontalAlignment
The HorizontalAlignment sets whether the document is centered, left or right bounded.
|
static class |
PageLayoutSettings.ShowCoverPage
Show cover page setting for 2 page spread layout.
|
static class |
PageLayoutSettings.VerticalAlignment
The VerticalAlignment sets whether the document is centered, top or bottom bounded.
|
Modifier and Type | Field and Description |
---|---|
static String |
PAGE_LAYOUT_ALIGNMENT_HORIZONTAL
Setting name for the horizontal alignment.
|
static String |
PAGE_LAYOUT_ALIGNMENT_VERTICAL
Setting name for the vertical alignment.
|
static String |
PAGE_LAYOUT_SHOW_COVER_PAGE |
Constructor and Description |
---|
PageLayoutSettings()
Default constructor.
|
PageLayoutSettings(PageLayoutSettings.HorizontalAlignment horizontalAlignment,
PageLayoutSettings.VerticalAlignment verticalAlignment)
Full args constructor mainly used for testing.
|
Modifier and Type | Method and Description |
---|---|
PageLayoutSettings |
createSnapshot()
Create a snapshot copy of this instance.
|
boolean |
equals(Object obj) |
PageLayoutSettings.HorizontalAlignment |
getHorizontalAlignment() |
PageLayoutSettings.ShowCoverPage |
getShowCoverPage()
Returns current show cover page setting.
|
PageLayoutSettings.VerticalAlignment |
getVerticalAlignment() |
int |
hashCode() |
void |
setHorizontalAlignment(PageLayoutSettings.HorizontalAlignment horizontalAlignment) |
void |
setShowCoverPage(PageLayoutSettings.ShowCoverPage showCoverPage)
Set show cover page behavior.
|
void |
setVerticalAlignment(PageLayoutSettings.VerticalAlignment verticalAlignment) |
String |
toString() |
void |
update(String propertyName,
RenderSettings other,
Object... details)
Updates this instance property specified by given property name with the value provided by the
other processing setting.
|
fireChanged, getSettingsChangeHandler, setSettingsChangeHandler
public static final String PAGE_LAYOUT_ALIGNMENT_HORIZONTAL
public static final String PAGE_LAYOUT_ALIGNMENT_VERTICAL
public static final String PAGE_LAYOUT_SHOW_COVER_PAGE
public PageLayoutSettings()
ProcessingControls.getSettings(Class)
.public PageLayoutSettings(PageLayoutSettings.HorizontalAlignment horizontalAlignment, PageLayoutSettings.VerticalAlignment verticalAlignment)
ProcessingControls.getSettings(Class)
.horizontalAlignment
- verticalAlignment
- public PageLayoutSettings.HorizontalAlignment getHorizontalAlignment()
public void setHorizontalAlignment(PageLayoutSettings.HorizontalAlignment horizontalAlignment)
public void update(String propertyName, RenderSettings other, Object... details)
RenderSettings
propertyName
- the name of the property to update. Update supported properties have unique
property identifier provided by the specific render settings implementation.other
- the processing setting which provide the new property value. Therefore the other
processing setting have to be of the same type as this instance.details
- (optional) if some describing details are necessary to do a specific update, the
details parameter will transport this informationspublic PageLayoutSettings createSnapshot()
ProcessingSettings
public PageLayoutSettings.VerticalAlignment getVerticalAlignment()
public void setVerticalAlignment(PageLayoutSettings.VerticalAlignment verticalAlignment)
public PageLayoutSettings.ShowCoverPage getShowCoverPage()
public void setShowCoverPage(PageLayoutSettings.ShowCoverPage showCoverPage)
showCoverPage
- Copyright © 2024 levigo holding gmbh. All rights reserved.