Package cz.vutbr.fit.layout.segm.op
Class SuperAreaOperator
- java.lang.Object
-
- cz.vutbr.fit.layout.impl.BaseService
-
- cz.vutbr.fit.layout.impl.BaseParametrizedOperation
-
- cz.vutbr.fit.layout.impl.BaseOperator
-
- cz.vutbr.fit.layout.segm.op.SuperAreaOperator
-
- All Implemented Interfaces:
AreaTreeOperator,ParametrizedOperation,Service
- Direct Known Subclasses:
GroupByDOMOperator,HomogeneousLeafOperator
public class SuperAreaOperator extends BaseOperator
Detects the larger visual areas and creates the artificial area nodes.- Author:
- burgetr
-
-
Field Summary
Fields Modifier and Type Field Description protected intdepthLimitRecursion depth limit while detecting the sub-areas
-
Constructor Summary
Constructors Constructor Description SuperAreaOperator()Creates the deparator with default parameter values.SuperAreaOperator(int depthLimit)Creates the operator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(AreaTree atree)voidapply(AreaTree atree, Area root)protected GroupAnalyzercreateGroupAnalyzer(Area root)List<Parameter>defineParams()voidfindSuperAreas(Area root, int passlimit)Creates syntetic super areas by grouping the subareas of the given area.StringgetCategory()intgetDepthLimit()StringgetDescription()StringgetId()StringgetName()voidsetDepthLimit(int depthLimit)-
Methods inherited from class cz.vutbr.fit.layout.impl.BaseOperator
toString
-
Methods inherited from class cz.vutbr.fit.layout.impl.BaseParametrizedOperation
getParam, getParams, getParamString, setParam
-
Methods inherited from class cz.vutbr.fit.layout.impl.BaseService
getServiceManager, setServiceManager
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cz.vutbr.fit.layout.api.ParametrizedOperation
getParam, getParams, getParamString, setParam
-
Methods inherited from interface cz.vutbr.fit.layout.api.Service
setServiceManager
-
-
-
-
Method Detail
-
getId
public String getId()
-
getName
public String getName()
-
getDescription
public String getDescription()
-
getCategory
public String getCategory()
-
defineParams
public List<Parameter> defineParams()
- Overrides:
defineParamsin classBaseParametrizedOperation
-
getDepthLimit
public int getDepthLimit()
-
setDepthLimit
public void setDepthLimit(int depthLimit)
-
apply
public void apply(AreaTree atree)
-
createGroupAnalyzer
protected GroupAnalyzer createGroupAnalyzer(Area root)
-
findSuperAreas
public void findSuperAreas(Area root, int passlimit)
Creates syntetic super areas by grouping the subareas of the given area.- Parameters:
root- the root area to be processedpasslimit- the maximal number of passes while some changes occur
-
-