Package org.mapfish.print.processor.map
Class NorthArrowGraphic
java.lang.Object
org.mapfish.print.processor.map.NorthArrowGraphic
Takes care of scaling and rotating a graphic for the north-arrow.
-
Method Summary
-
Method Details
-
create
public static URI create(Dimension targetSize, String graphicFile, Color backgroundColor, Double rotation, File workingDir, MfClientHttpRequestFactory clientHttpRequestFactory, boolean allowTransparency) throws Exception Creates the north-arrow graphic.Scales the given graphic to the given size and applies the given rotation.
- Parameters:
targetSize
- The size of the graphic to create.graphicFile
- The graphic to use as north-arrow.backgroundColor
- The background color.rotation
- The rotation to apply.workingDir
- The directory in which the graphic is created.clientHttpRequestFactory
- The request factory.allowTransparency
- True is transparency is allowed- Returns:
- The path to the created graphic.
- Throws:
Exception
-