public interface PagePlanner
| Modifier and Type | Interface and Description |
|---|---|
static class |
PagePlanner.CanAddResult
Result class for several
PagePlanner methods. |
| Modifier and Type | Method and Description |
|---|---|
int |
addNewPlacement(PageModel page,
PlacementModel placement,
int pageNo,
int gridElementId)
Adds a new placement on a given page and position.
|
int |
addNewPlacements(PageModel page,
List<PlacementModel> placements,
int pageNo,
int gridElementId)
Adds new placements starting from the given page and position.
|
void |
assignGridElementIdsToPlacements(PageModel page)
Assigns proper gridElementIds and page numbers to placements, based on their order in collection
|
PagePlanner.CanAddResult |
canAddNewPlacement(PageModel page,
int pageNo,
int gridElementId)
Determines if a single placement can be put on the given page and grid element on the page.
|
PagePlanner.CanAddResult |
canAddNewPlacements(PageModel page,
int pageNo,
int gridElementId,
int noPlacements)
Determines if
noPlacements can be put on the given page and grid element on the page. |
PagePlanner.CanAddResult |
canAddNewPlacements(PageModel page,
int pageNo,
int gridElementId,
int noPlacements,
boolean overwrite)
Determines if
noPlacements can be put on the given page and grid element on the page. |
boolean |
canChangeAlternativeGridForPage(PageModel page,
GridModel newGrid) |
boolean |
canChangeGridForPage(PageModel page,
GridModel newGrid) |
boolean |
canChangePageMode(PageModel page,
PageMode newMode) |
void |
handleChangeAlternativeGridForPage(PageModel page,
GridModel newGrid)
Sets the GridModel on the page as an alternative grid and if needed truncates the data (Placements) to fit the new grid.
|
void |
handleChangeGridForPage(PageModel page,
GridModel newGrid)
Sets the GridModel on the page and if needed truncates the data (Placements) to fit the new grid.
|
void |
handleChangeGridMode(PageModel page,
GridMode newGridMode)
Changes GridMode for the given page and assigns proper page numbers / grid element id's if needed.
|
void |
handleChangePageMode(PageModel page,
PageMode newMode)
Sets the PageMode on the page and if needed truncates the data (Placements) to fit the new grid.
|
boolean |
isPageStartLeft(PageModel page)
Determines whether the first page is a left page (in the meaning of two page printout).
|
PagePlanner.CanAddResult canAddNewPlacement(PageModel page, int pageNo, int gridElementId)
page - represents the page model, not necessarily a single page in the print outpageNo - 0-based page number in the print outgridElementId - 1-based slot number on the page's gridPagePlanner.CanAddResultPagePlanner.CanAddResult canAddNewPlacements(PageModel page, int pageNo, int gridElementId, int noPlacements)
noPlacements can be put on the given page and grid element on the page.page - represents the page model, not necessarily a single page in the print outpageNo - 0-based page number in the print outgridElementId - 1-based slot number on the page's gridnoPlacements - number of placements to be addedPagePlanner.CanAddResultPagePlanner.CanAddResult canAddNewPlacements(PageModel page, int pageNo, int gridElementId, int noPlacements, boolean overwrite)
noPlacements can be put on the given page and grid element on the page.page - represents the page model, not necessarily a single page in the print outpageNo - 0-based page number in the print outgridElementId - 1-based slot number on the page's gridnoPlacements - number of placements to be addedoverwrite - if placements are dropped in insert modePagePlanner.CanAddResultint addNewPlacement(PageModel page, PlacementModel placement, int pageNo, int gridElementId)
page - represents the page model, not necessarily a single page in the print outplacement - placement to be addedpageNo - 0-based page number in the print outgridElementId - 1-based slot number on the page's gridint addNewPlacements(PageModel page, List<PlacementModel> placements, int pageNo, int gridElementId)
page - represents the page model, not necessarily a single page in the print outplacements - placements to be addedpageNo - 0-based page number in the print outgridElementId - 1-based slot number on the page's gridboolean canChangeGridForPage(PageModel page, GridModel newGrid)
page - represents the page model, not necessarily a single page in the print outnewGrid - GridModel to be setvoid handleChangeGridForPage(PageModel page, GridModel newGrid)
page - represents the page model, not necessarily a single page in the print outnewGrid - GridModel to be setboolean canChangePageMode(PageModel page, PageMode newMode)
page - represents the page model, not necessarily a single page in the print outnewMode - PageMode to be setvoid handleChangePageMode(PageModel page, PageMode newMode)
page - represents the page model, not necessarily a single page in the print outnewMode - PageMode to be setboolean canChangeAlternativeGridForPage(PageModel page, GridModel newGrid)
page - represents the page model, not necessarily a single page in the print outnewGrid - GridModel to be setvoid handleChangeAlternativeGridForPage(PageModel page, GridModel newGrid)
page - represents the page model, not necessarily a single page in the print outnewGrid - GridModel to be setboolean isPageStartLeft(PageModel page)
page - represents the page model, not necessarily a single page in the print outvoid handleChangeGridMode(PageModel page, GridMode newGridMode)
page - represents the page model, not necessarily a single page in the print outnewGridMode - GridMode to be setvoid assignGridElementIdsToPlacements(PageModel page)
page - represents page modelCopyright © 2017 SAP SE. All Rights Reserved.