public class ScriptableProcessor extends BaseProcessor
| Constructor and Description |
|---|
ScriptableProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(String operatorName,
Map<String,Object> params) |
org.fit.layout.model.LogicalAreaTree |
buildLogicalTree()
Runs the default logical tree builder with the default parameter values.
|
void |
drawToImage(String path)
Draws the current page to an image file.
|
void |
drawToImageWithAreas(String path,
String areaNames)
Draws the page to an image file and marks selected areas in the image.
|
boolean |
execCommand(String command) |
boolean |
execInternal(String scriptName) |
void |
flushIO() |
List<String> |
getAreaProviderIds() |
List<String> |
getBoxProviderIds() |
protected ScriptEngine |
getEngine() |
List<String> |
getLogicalProviderIds() |
List<String> |
getOperatorIds() |
org.fit.layout.model.AreaTree |
initAreaTree(String providerName,
Map<String,Object> params) |
org.fit.layout.model.LogicalAreaTree |
initLogicalTree(String providerName,
Map<String,Object> params) |
void |
put(String var,
Object obj) |
org.fit.layout.model.Page |
renderPage(String providerName,
Map<String,Object> params) |
org.fit.layout.model.AreaTree |
segmentPage()
Runs the default segmentation process with the default parameter values.
|
void |
setIO(Reader in,
Writer out,
Writer err) |
void |
setServiceParams(String serviceName,
Map<String,Object> params) |
apply, getAreaProviders, getAreaTree, getBoxProviders, getLogicalAreaTree, getLogicalProviders, getOperators, getPage, initAreaTree, initLogicalTree, renderPage, setAreaTree, setLogicalAreaTree, setPage, treesCompletedpublic org.fit.layout.model.Page renderPage(String providerName, Map<String,Object> params)
public org.fit.layout.model.AreaTree initAreaTree(String providerName, Map<String,Object> params)
public org.fit.layout.model.LogicalAreaTree initLogicalTree(String providerName, Map<String,Object> params)
public org.fit.layout.model.AreaTree segmentPage()
BaseProcessorsegmentPage in class BaseProcessornull for an unsuccessfull segmentationpublic org.fit.layout.model.LogicalAreaTree buildLogicalTree()
BaseProcessorbuildLogicalTree in class BaseProcessornull for an unsuccessfull buildpublic void drawToImage(String path)
path - The path to the destination image file.public void drawToImageWithAreas(String path, String areaNames)
path - The path to the destination image file.areaNames - A substring of the names of areas that should be marked in the image. When set to null, all the areas are marked.protected ScriptEngine getEngine()
public void flushIO()
public boolean execInternal(String scriptName) throws ScriptException
ScriptExceptionpublic boolean execCommand(String command) throws ScriptException
ScriptExceptionCopyright © 2016. All rights reserved.