Class Markers

java.lang.Object
org.apache.fop.fo.flow.Markers

public final class Markers extends Object
A class to register and resolve markers.
  • Constructor Details

    • Markers

      public Markers()
  • Method Details

    • register

      public void register(Map<String,Marker> marks, boolean starting, boolean isfirst, boolean islast)
      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 register
      starting - whether the registration happens at the start (true) or end (false) the the area
      isfirst - whether it is the first area of the parent LM
      islast - whether it is the last area of the parent LM
    • resolve

      public Marker resolve(AbstractRetrieveMarker arm)
      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.