Package cz.vutbr.fit.layout.impl
Class PageBoxTreeBuilder
- java.lang.Object
-
- cz.vutbr.fit.layout.impl.BaseBoxTreeBuilder
-
- cz.vutbr.fit.layout.impl.PageBoxTreeBuilder
-
public class PageBoxTreeBuilder extends BaseBoxTreeBuilder
A simple box tree builder that takes another page as its input, re-builds the box tree according to the parametres and returns a new page.- Author:
- burgetr
-
-
Field Summary
-
Fields inherited from class cz.vutbr.fit.layout.impl.BaseBoxTreeBuilder
pageTitle, pageUrl, preserveAux, useVisualBounds
-
-
Constructor Summary
Constructors Constructor Description PageBoxTreeBuilder(boolean useVisualBounds, boolean preserveAux)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page
getPage()
The resulting page model.Page
processPage(Page input, String label, String creator, String creatorParams)
Creates the new page from an input page.-
Methods inherited from class cz.vutbr.fit.layout.impl.BaseBoxTreeBuilder
buildTree, computeBackgrounds, computeVisualBounds, contentEncloses, getMinimalVisualBounds, markChildNodes, markNodesInside, recomputeBounds, recomputeVisualBounds, recomputeVisualBounds, takeChildren, visuallyEncloses
-
-
-
-
Method Detail
-
processPage
public Page processPage(Page input, String label, String creator, String creatorParams)
Creates the new page from an input page.- Parameters:
input
- the input pagelabel
- the label to be set for the new pagecreator
- the creator ID to be set for the new pagecreatorParams
- the creator parametres to be set for the new page- Returns:
- the new page
-
getPage
public Page getPage()
Description copied from class:BaseBoxTreeBuilder
The resulting page model.- Specified by:
getPage
in classBaseBoxTreeBuilder
- Returns:
- the page
-
-