Class NorthArrowGraphic


  • public final class NorthArrowGraphic
    extends java.lang.Object
    Takes care of scaling and rotating a graphic for the north-arrow.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.net.URI create​(java.awt.Dimension targetSize, java.lang.String graphicFile, java.awt.Color backgroundColor, java.lang.Double rotation, java.io.File workingDir, MfClientHttpRequestFactory clientHttpRequestFactory, boolean allowTransparency)
      Creates the north-arrow graphic.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • create

        public static java.net.URI create​(java.awt.Dimension targetSize,
                                          java.lang.String graphicFile,
                                          java.awt.Color backgroundColor,
                                          java.lang.Double rotation,
                                          java.io.File workingDir,
                                          MfClientHttpRequestFactory clientHttpRequestFactory,
                                          boolean allowTransparency)
                                   throws java.lang.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:
        java.lang.Exception