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 boolean
equals(Object obj)
Tag
getTag()
TagResolver
getTagResolver()
int
hashCode()
List<TextChunk>
postprocessChunks(List<TextChunk> areas)
Applies the hint to the current list of chunks (postprocessing the whole list)String
toString()
-
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:PresentationHint
Applies the hint to the current list of chunks (postprocessing the whole list)- Specified by:
postprocessChunks
in interfacePresentationHint
- Overrides:
postprocessChunks
in classDefaultHint
- Parameters:
areas
- the list of chunks (typically for a given tag)- Returns:
-
toString
public String toString()
- Overrides:
toString
in classDefaultHint
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDefaultHint
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classDefaultHint
-
-