public interface Tagger
extends org.fit.layout.api.Service, org.fit.layout.api.ParametrizedOperation
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsContinuation(org.fit.layout.model.Area node)
Checks whether the area may be a continuation of a previously started area tagged with this tag.
|
boolean |
allowsJoining()
Checks whether the tag may be used for joining the areas in the visual area tree.
|
float |
belongsTo(org.fit.layout.model.Area node)
Checks whether the area may be tagged with the tag.
|
List<String> |
extract(String src)
Extracts the parts of a source string that correspond to this tag.
|
TextTag |
getTag()
Obtains the tag that this tagger assigns to the areas.
|
boolean |
mayCoexistWith(org.fit.layout.model.Tag other)
Check if the area tagged with this tag may be tagged with another tag.
|
List<String> |
split(String src)
Splits the string to substrings where each substring either corresponds to this tag
or it does not correspond.
|
TextTag getTag()
float belongsTo(org.fit.layout.model.Area node)
node - The examined area node.boolean allowsContinuation(org.fit.layout.model.Area node)
node - The examined area node.true if the area may be a continuation of a tagged areaboolean allowsJoining()
true if the tag may be used for joining.boolean mayCoexistWith(org.fit.layout.model.Tag other)
List<String> extract(String src)
src - The source string.Copyright © 2016. All rights reserved.