Package cz.vutbr.fit.layout.text.chunks
Class HintMultiBox
- java.lang.Object
-
- cz.vutbr.fit.layout.text.chunks.DefaultHint
-
- cz.vutbr.fit.layout.text.chunks.HintMultiBox
-
- All Implemented Interfaces:
PresentationHint
public class HintMultiBox extends DefaultHint
This hint has the same meaning asHintWholeBox
but it also considers multiple subsequent boxes.- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description HintMultiBox(Tag tag, TagResolver dis, float support)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceBoxList
extractBoxes(Area a, SourceBoxList current, Set<Area> processed)
Extracts boxes from the given area and/or modifies the already existing list of boxes (preprocessing).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, getName, getSupport, hashCode, impliesBlock, impliesInline, postprocessChunks, setBlock, setInline, toString
-
-
-
-
Constructor Detail
-
HintMultiBox
public HintMultiBox(Tag tag, TagResolver dis, float support)
-
-
Method Detail
-
extractBoxes
public SourceBoxList extractBoxes(Area a, SourceBoxList current, Set<Area> processed)
Description copied from interface:PresentationHint
Extracts boxes from the given area and/or modifies the already existing list of boxes (preprocessing). If some additional areas were processed, they should be added to the 'processed' set.- Specified by:
extractBoxes
in interfacePresentationHint
- Overrides:
extractBoxes
in classDefaultHint
- Returns:
-
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:
-
-