Package cz.vutbr.fit.layout.text.chunks
Class HintInLine
- java.lang.Object
-
- cz.vutbr.fit.layout.text.chunks.DefaultHint
-
- cz.vutbr.fit.layout.text.chunks.HintInLine
-
- All Implemented Interfaces:
PresentationHint
public class HintInLine extends DefaultHint
This hint causes considering multiple subsequent lines to be treated as a single chunk source area. It assumes that every line is a single source area with certain style.- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description HintInLine(Tag tag, TagResolver dis, float support)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceBoxListextractBoxes(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)-
Methods inherited from class cz.vutbr.fit.layout.text.chunks.DefaultHint
equals, getName, getSupport, hashCode, impliesBlock, impliesInline, postprocessChunks, processOccurrences, setBlock, setInline, toString
-
-
-
-
Constructor Detail
-
HintInLine
public HintInLine(Tag tag, TagResolver dis, float support)
-
-
Method Detail
-
extractBoxes
public SourceBoxList extractBoxes(Area a, SourceBoxList current, Set<Area> processed)
Description copied from interface:PresentationHintExtracts 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:
extractBoxesin interfacePresentationHint- Overrides:
extractBoxesin classDefaultHint- Returns:
-
processChunks
public List<TextChunk> processChunks(Area src, List<TextChunk> areas)
Description copied from interface:PresentationHintApplies the hint to the list of chunks for the given area (postprocessing a list for a given area)- Specified by:
processChunksin interfacePresentationHint- Overrides:
processChunksin classDefaultHint- Returns:
-
-