Package cz.vutbr.fit.layout.segm.op
Class SortByLinesOperator
- 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.SortByPositionOperator
-
- cz.vutbr.fit.layout.segm.op.SortByLinesOperator
-
- All Implemented Interfaces:
AreaTreeOperator,ParametrizedOperation,Service
public class SortByLinesOperator extends SortByPositionOperator
- Author:
- burgetr
-
-
Field Summary
-
Fields inherited from class cz.vutbr.fit.layout.segm.op.SortByPositionOperator
columnFirst
-
-
Constructor Summary
Constructors Constructor Description SortByLinesOperator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(AreaTree atree)voidapply(AreaTree atree, Area root)List<Parameter>defineParams()StringgetDescription()StringgetId()StringgetName()protected voidrecursiveSortLines(Area root)Goes through all the areas in the tree and sorts their sub-areas.protected voidsortChildLines(Area root)Goes through the grid of areas and sorts the adjacent visual areas that are not separated by anything-
Methods inherited from class cz.vutbr.fit.layout.segm.op.SortByPositionOperator
getCategory, getColumnFirst, recursivelySortChildAreas, setColumnFirst
-
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()
- Specified by:
getIdin interfaceService- Overrides:
getIdin classSortByPositionOperator
-
getName
public String getName()
- Specified by:
getNamein interfaceService- Overrides:
getNamein classSortByPositionOperator
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceService- Overrides:
getDescriptionin classSortByPositionOperator
-
defineParams
public List<Parameter> defineParams()
- Overrides:
defineParamsin classSortByPositionOperator
-
apply
public void apply(AreaTree atree)
- Specified by:
applyin interfaceAreaTreeOperator- Overrides:
applyin classSortByPositionOperator
-
apply
public void apply(AreaTree atree, Area root)
- Specified by:
applyin interfaceAreaTreeOperator- Overrides:
applyin classSortByPositionOperator
-
recursiveSortLines
protected void recursiveSortLines(Area root)
Goes through all the areas in the tree and sorts their sub-areas.
-
sortChildLines
protected void sortChildLines(Area root)
Goes through the grid of areas and sorts the adjacent visual areas that are not separated by anything
-
-