Class NorthArrowAttribute.NorthArrowAttributeValues

java.lang.Object
org.mapfish.print.attribute.NorthArrowAttribute.NorthArrowAttributeValues
Enclosing class:
NorthArrowAttribute

public static class NorthArrowAttribute.NorthArrowAttributeValues extends Object
The value of NorthArrowAttribute.
  • Field Details

    • graphic

      public String graphic
      The path to a graphic to use for the north-arrow.

      It can either be an URL ("http://xyx.com/img/north-arrow.png") or a file in the configuration folder ("file://NorthArrow.svg"). Both SVG graphics and raster graphics (png, jpeg, tiff, ...) are supported.

      While the resulting graphic used in the JasperReport template is a square, this graphic can have an arbitrary aspect ratio. The graphic will be scaled to the output size and rotated around its center.

      If no graphic is given, a default north-arrow is used.

    • backgroundColor

      public String backgroundColor
      The background color for the north-arrow graphic (default: rgba(255, 255, 255, 0)).
  • Constructor Details

    • NorthArrowAttributeValues

      public NorthArrowAttributeValues(Dimension size, boolean createSubReport)
      Constructor.
      Parameters:
      size - The size of the scalebar graphic in the Jasper report (in pixels).
      createSubReport - Create a sub-report?
  • Method Details

    • postConstruct

      public final void postConstruct()
      Initialize default values and validate that the config is correct.
    • getSize

      public final Dimension getSize()
    • getGraphic

      public final String getGraphic()
    • getBackgroundColor

      public final Color getBackgroundColor()
    • isCreateSubReport

      public final boolean isCreateSubReport()