Package cz.vutbr.fit.layout.text.chunks
Class HintWholeBox
- java.lang.Object
-
- cz.vutbr.fit.layout.text.chunks.DefaultHint
-
- cz.vutbr.fit.layout.text.chunks.HintWholeBox
-
- All Implemented Interfaces:
PresentationHint
public class HintWholeBox extends DefaultHint
A hint that forces using the whole source box for the corresponding chunk even if only part of the box was detected as the chunk.- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description HintWholeBox(Tag tag, float support)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TextChunk>
processChunks(Area src, List<TextChunk> areas)
Applies the hint to the list of chunks for the given area (postprocessing a list for a given area)List<TagOccurrence>
processOccurrences(BoxText boxText, List<TagOccurrence> occurrences)
Applies the hint to a list of occurences extracted from the given box text (postprocessing a list of occurences)-
Methods inherited from class cz.vutbr.fit.layout.text.chunks.DefaultHint
equals, extractBoxes, getName, getSupport, hashCode, impliesBlock, impliesInline, postprocessChunks, setBlock, setInline, toString
-
-
-
-
Constructor Detail
-
HintWholeBox
public HintWholeBox(Tag tag, float support)
-
-
Method Detail
-
processOccurrences
public List<TagOccurrence> processOccurrences(BoxText boxText, List<TagOccurrence> occurrences)
Description copied from interface:PresentationHint
Applies the hint to a list of occurences extracted from the given box text (postprocessing a list of occurences)- Specified by:
processOccurrences
in interfacePresentationHint
- Overrides:
processOccurrences
in classDefaultHint
- Parameters:
boxText
- the source box textoccurrences
- the current list of occurrences- Returns:
- the new list of occurrences
-
processChunks
public List<TextChunk> processChunks(Area src, List<TextChunk> areas)
Description copied from interface:PresentationHint
Applies the hint to the list of chunks for the given area (postprocessing a list for a given area)- Specified by:
processChunks
in interfacePresentationHint
- Overrides:
processChunks
in classDefaultHint
- Returns:
-
-