Package cz.vutbr.fit.layout.text.chunks
Class HintForceResolved
- java.lang.Object
-
- cz.vutbr.fit.layout.text.chunks.DefaultHint
-
- cz.vutbr.fit.layout.text.chunks.HintForceResolved
-
- All Implemented Interfaces:
PresentationHint
public class HintForceResolved extends DefaultHint
This hint forces the chunk source to accept only the chunk tags that are assigned by a given resolver. The intrinsic tags that are not resolved by the resolver are removed from the chunks.- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description HintForceResolved(Tag tag, TagResolver dis, float support)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)TaggetTag()TagResolvergetTagResolver()inthashCode()List<TextChunk>postprocessChunks(List<TextChunk> areas)Applies the hint to the current list of chunks (postprocessing the whole list)StringtoString()-
Methods inherited from class cz.vutbr.fit.layout.text.chunks.DefaultHint
extractBoxes, getName, getSupport, impliesBlock, impliesInline, processChunks, processOccurrences, setBlock, setInline
-
-
-
-
Constructor Detail
-
HintForceResolved
public HintForceResolved(Tag tag, TagResolver dis, float support)
-
-
Method Detail
-
getTag
public Tag getTag()
-
getTagResolver
public TagResolver getTagResolver()
-
postprocessChunks
public List<TextChunk> postprocessChunks(List<TextChunk> areas)
Description copied from interface:PresentationHintApplies the hint to the current list of chunks (postprocessing the whole list)- Specified by:
postprocessChunksin interfacePresentationHint- Overrides:
postprocessChunksin classDefaultHint- Parameters:
areas- the list of chunks (typically for a given tag)- Returns:
-
toString
public String toString()
- Overrides:
toStringin classDefaultHint
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDefaultHint
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classDefaultHint
-
-