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 String
DEFAULT_FONT_FAMILY
static float
DEFAULT_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 Page
getPage()
The resulting page model.void
parse(String urlstring)
void
parse(URL url)
protected void
parseInputFile(InputFile input, URL url)
void
parseJSON(String path)
void
setAcquireImages(boolean acquireImages)
void
setIncludeScreenshot(boolean includeScreenshot)
void
setPersist(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:
IOException
InterruptedException
-
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:BaseBoxTreeBuilder
The resulting page model.- Specified by:
getPage
in classBaseBoxTreeBuilder
- Returns:
- the page
-
-