public class DefaultDynamicModePagePlanner extends AbstractPagePlanner
PagePlanner.CanAddResult| Constructor and Description |
|---|
DefaultDynamicModePagePlanner() |
| 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.
|
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 altGrid) |
boolean |
canChangeGridForPage(PageModel page,
GridModel newGrid) |
boolean |
canChangePageMode(PageModel page,
PageMode newMode) |
void |
handleChangeAlternativeGridForPage(PageModel page,
GridModel altGrid)
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 |
handleChangePageMode(PageModel page,
PageMode newMode)
Sets the PageMode on the page and if needed truncates the data (Placements) to fit the new grid.
|
assignGridElementIdsToPlacements, getModelService, getOrginalValue, handleChangeGridMode, isPageStartLeft, removeCommentsMetadataFromPagesHigherThan, setModelServicepublic void handleChangePageMode(PageModel page, PageMode newMode)
PagePlannerpage - represents the page model, not necessarily a single page in the print outnewMode - PageMode to be setpublic boolean canChangePageMode(PageModel page, PageMode newMode)
page - represents the page model, not necessarily a single page in the print outnewMode - PageMode to be setpublic PagePlanner.CanAddResult canAddNewPlacement(PageModel page, int pageNo, int gridElementId)
PagePlannerpage - 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.CanAddResultpublic PagePlanner.CanAddResult canAddNewPlacements(PageModel page, int pageNo, int gridElementId, int noPlacements)
PagePlannernoPlacements 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.CanAddResultpublic PagePlanner.CanAddResult canAddNewPlacements(PageModel page, int pageNo, int gridElementId, int noPlacements, boolean overwrite)
PagePlannernoPlacements 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.CanAddResultpublic int addNewPlacement(PageModel page, PlacementModel placement, int pageNo, int gridElementId)
PagePlannerpage - 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 gridpublic int addNewPlacements(PageModel page, List<PlacementModel> placements, int pageNo, int gridElementId)
PagePlannerpage - 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 gridpublic boolean canChangeAlternativeGridForPage(PageModel page, GridModel altGrid)
page - represents the page model, not necessarily a single page in the print outaltGrid - GridModel to be setpublic void handleChangeGridForPage(PageModel page, GridModel newGrid)
PagePlannerpage - represents the page model, not necessarily a single page in the print outnewGrid - GridModel to be setpublic boolean canChangeGridForPage(PageModel page, GridModel newGrid)
page - represents the page model, not necessarily a single page in the print outnewGrid - GridModel to be setpublic void handleChangeAlternativeGridForPage(PageModel page, GridModel altGrid)
PagePlannerpage - represents the page model, not necessarily a single page in the print outaltGrid - GridModel to be setCopyright © 2017 SAP SE. All Rights Reserved.