Package org.mapfish.print.attribute
Class NorthArrowAttribute.NorthArrowAttributeValues
java.lang.Object
org.mapfish.print.attribute.NorthArrowAttribute.NorthArrowAttributeValues
- Enclosing class:
- NorthArrowAttribute
The value of
NorthArrowAttribute
.-
Field Summary
FieldsModifier and TypeFieldDescriptionThe background color for the north-arrow graphic (default: rgba(255, 255, 255, 0)).The path to a graphic to use for the north-arrow. -
Constructor Summary
ConstructorsConstructorDescriptionNorthArrowAttributeValues
(Dimension size, boolean createSubReport) Constructor. -
Method Summary
-
Field Details
-
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
The background color for the north-arrow graphic (default: rgba(255, 255, 255, 0)).
-
-
Constructor Details
-
NorthArrowAttributeValues
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
-
getGraphic
-
getBackgroundColor
-
isCreateSubReport
public final boolean isCreateSubReport()
-