Package org.apache.fop.fo.flow
Class Markers
java.lang.Object
org.apache.fop.fo.flow.Markers
A class to register and resolve markers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dump()
Dumps the current marker data to the logger.void
Registers a marker with the position traits set.Retrieves the best candidate marker for the given position.
-
Constructor Details
-
Markers
public Markers()
-
-
Method Details
-
register
Registers a marker with the position traits set. Only the required markers are kept. For "first-starting-within-page" it adds the markers that are starting only if the marker class name is not already added. For "first-including-carryover" it adds any starting marker if the marker class name is not already added. For "last-starting-within-page" it adds all marks that are starting, replacing earlier markers. For "last-ending-within-page" it adds all markers that are ending, replacing earlier markers.- Parameters:
marks
- a map of markers to registerstarting
- whether the registration happens at the start (true) or end (false) the the areaisfirst
- whether it is the first area of the parent LMislast
- whether it is the last area of the parent LM
-
resolve
Retrieves the best candidate marker for the given position.- Returns:
- a Marker instance
-
dump
public void dump()Dumps the current marker data to the logger.
-