public class SortByLinesOperator extends SortByPositionOperator
ParametrizedOperation.ValueType
Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
paramNames |
protected ParametrizedOperation.ValueType[] |
paramTypes |
columnFirst
Constructor and Description |
---|
SortByLinesOperator() |
Modifier and Type | Method and Description |
---|---|
void |
apply(AreaTree atree)
Applies the operation to the given tree.
|
void |
apply(AreaTree atree,
Area root)
Applies the operation to the given subtree of the tree.
|
java.lang.String |
getDescription()
Obtains a longer description of the service.
|
java.lang.String |
getId()
Obtains a unique ID of the service
|
java.lang.String |
getName()
Obtains a descriptive name of the service that may be presented to the user.
|
java.lang.String[] |
getParamNames()
Obtains a list of available parameter names of the operation.
|
ParametrizedOperation.ValueType[] |
getParamTypes()
Obtains a list of available parameter value types.
|
protected void |
recursiveSortLines(AreaImpl root)
Goes through all the areas in the tree and sorts their sub-areas.
|
protected void |
sortChildLines(AreaImpl root)
Goes through the grid of areas and sorts the adjacent visual areas that are not
separated by anything
|
getColumnFirst, recursivelySortChildAreas, setColumnFirst
toString
getParam, getParamRange, setParam
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getParam, getParamRange, setParam
protected final java.lang.String[] paramNames
protected final ParametrizedOperation.ValueType[] paramTypes
public java.lang.String getId()
Service
getId
in interface Service
getId
in class SortByPositionOperator
public java.lang.String getName()
Service
getName
in interface Service
getName
in class SortByPositionOperator
public java.lang.String getDescription()
Service
getDescription
in interface Service
getDescription
in class SortByPositionOperator
public java.lang.String[] getParamNames()
ParametrizedOperation
getParamNames
in interface ParametrizedOperation
getParamNames
in class SortByPositionOperator
public ParametrizedOperation.ValueType[] getParamTypes()
ParametrizedOperation
getParamTypes
in interface ParametrizedOperation
getParamTypes
in class SortByPositionOperator
public void apply(AreaTree atree)
AreaTreeOperator
apply
in interface AreaTreeOperator
apply
in class SortByPositionOperator
atree
- the area tree to be modified.public void apply(AreaTree atree, Area root)
AreaTreeOperator
apply
in interface AreaTreeOperator
apply
in class SortByPositionOperator
atree
- the area tree to be modified.root
- the root node of the affected subtree.protected void recursiveSortLines(AreaImpl root)
protected void sortChildLines(AreaImpl root)