Class BoxTreeBuilder
- java.lang.Object
-
- cz.vutbr.fit.layout.impl.BaseBoxTreeBuilder
-
- cz.vutbr.fit.layout.puppeteer.impl.BoxTreeBuilder
-
public class BoxTreeBuilder extends BaseBoxTreeBuilder
- Author:
- burgetr
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_FONT_FAMILYstatic floatDEFAULT_FONT_SIZE-
Fields inherited from class cz.vutbr.fit.layout.impl.BaseBoxTreeBuilder
pageTitle, pageUrl, preserveAux, useVisualBounds
-
-
Constructor Summary
Constructors Constructor Description BoxTreeBuilder(int width, int height, boolean useVisualBounds, boolean preserveAux)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PagegetPage()The resulting page model.voidparse(String urlstring)voidparse(URL url)protected voidparseInputFile(InputFile input, URL url)voidparseJSON(String path)voidsetAcquireImages(boolean acquireImages)voidsetIncludeScreenshot(boolean includeScreenshot)voidsetPersist(int persist)-
Methods inherited from class cz.vutbr.fit.layout.impl.BaseBoxTreeBuilder
buildTree, computeBackgrounds, computeVisualBounds, contentEncloses, getMinimalVisualBounds, markChildNodes, markNodesInside, recomputeBounds, recomputeVisualBounds, recomputeVisualBounds, takeChildren, visuallyEncloses
-
-
-
-
Field Detail
-
DEFAULT_FONT_FAMILY
public static final String DEFAULT_FONT_FAMILY
- See Also:
- Constant Field Values
-
DEFAULT_FONT_SIZE
public static final float DEFAULT_FONT_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setPersist
public void setPersist(int persist)
-
setAcquireImages
public void setAcquireImages(boolean acquireImages)
-
setIncludeScreenshot
public void setIncludeScreenshot(boolean includeScreenshot)
-
parse
public void parse(String urlstring) throws MalformedURLException, IOException, InterruptedException
-
parse
public void parse(URL url) throws IOException, InterruptedException
- Throws:
IOExceptionInterruptedException
-
parseJSON
public void parseJSON(String path) throws IOException
- Throws:
IOException
-
parseInputFile
protected void parseInputFile(InputFile input, URL url) throws IOException
- Throws:
IOException
-
getPage
public Page getPage()
Description copied from class:BaseBoxTreeBuilderThe resulting page model.- Specified by:
getPagein classBaseBoxTreeBuilder- Returns:
- the page
-
-