Package ca.spatial.reportwriter
Class MapLayoutReport.Text
java.lang.Object
ca.spatial.reportwriter.MapLayoutReport.MapElement
ca.spatial.reportwriter.MapLayoutReport.Text
- Enclosing class:
- MapLayoutReport
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 Summary
Modifier and TypeMethodDescriptionHide parts of the html document that match the specified class.horizontal(int alignment)
Set the horizontal alignment of the text within the space provided.vertical(int alignment)
Set the vetical alignment of the text within the space provided.Methods inherited from class ca.spatial.reportwriter.MapLayoutReport.MapElement
background, bookmark, contentHeight, contentWidth, getBackground, getHeight, getWidth, hidden, inset, margin, neatline, p, r, simplistHeight, simplistWidth, subtype, top, visible, zoom
-
Method Details
-
vertical
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
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
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.
-