Class MapLayoutReport.Text

java.lang.Object
ca.spatial.reportwriter.MapLayoutReport.MapElement
ca.spatial.reportwriter.MapLayoutReport.Text
Enclosing class:
MapLayoutReport

public class MapLayoutReport.Text extends MapLayoutReport.MapElement
A text element can contain any arbitrary HTML code, such as text, lists or images. The HTML will be rendered in the text box
  • Method Details

    • vertical

      public MapLayoutReport.Text vertical(int alignment)
      Set the vetical alignment of the text within the space provided. The options are MapLayoutReport.TOP, MapLayoutReport.CENTER and MapLayoutReport.BOTTOM. The default value is MapLayoutReport.CENTER
      Parameters:
      alignment - the vertical alignment of the text within the element
    • horizontal

      public MapLayoutReport.Text horizontal(int alignment)
      Set the horizontal alignment of the text within the space provided. The options are MapLayoutReport.LEFT, MapLayoutReport.CENTER and MapLayoutReport.RIGHT. The default value is MapLayoutReport.CENTER
      Parameters:
      alignment - the horizontal alignment of the text within the element
    • hide

      public MapLayoutReport.Text hide(String className)
      Hide parts of the html document that match the specified class. In case the test is in html format, any document elements that have a class name matching the specified className will be removed from the DOM before printing.