mapnik
Class Mapnik

java.lang.Object
  extended by mapnik.Mapnik

public class Mapnik
extends java.lang.Object

Global management of the Mapnik installation

Author:
stella

Constructor Summary
Mapnik()
           
 
Method Summary
static java.lang.String getInstalledFontsDir()
           
static java.lang.String getInstalledInputPluginsDir()
           
static java.util.List<java.lang.String> getLibrarySearchNames()
           
static java.util.List<java.lang.String> getLibrarySearchPath()
          The library search path.
static java.lang.String getLoadedLibrary()
          If initialized, this is the full path of the loaded library
static java.util.Map<java.lang.String,java.lang.Integer> getNativeAllocations()
          Return a Map of Object type to allocation count of current active native allocations.
static void initialize()
          Equivilent to initialize(true).
static void initialize(boolean register)
          Initialize the mapnik library.
static java.lang.CharSequence reportNativeAllocations()
          Generate a brief textual report of outstanding native allocations
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mapnik

public Mapnik()
Method Detail

getNativeAllocations

public static java.util.Map<java.lang.String,java.lang.Integer> getNativeAllocations()
Return a Map of Object type to allocation count of current active native allocations. Native allocations are cleared either through an explicit call to dispose() or finalization.

Returns:
Map of object type to count for all counts greater than zero

reportNativeAllocations

public static java.lang.CharSequence reportNativeAllocations()
Generate a brief textual report of outstanding native allocations


getLoadedLibrary

public static java.lang.String getLoadedLibrary()
If initialized, this is the full path of the loaded library

Returns:
path of library

getLibrarySearchNames

public static java.util.List<java.lang.String> getLibrarySearchNames()
Returns:
modifiable list of library search names to be probed on initialize

getLibrarySearchPath

public static java.util.List<java.lang.String> getLibrarySearchPath()
The library search path. This defaults to the directory containing this jar file (if found) followed by all entries on java.library.path. The system default path is implied.

Returns:
modifiable list of library search paths to be probed on initialize

initialize

public static void initialize(boolean register)
Initialize the mapnik library. Relies on the following to have been set prior to call: In most situations, the defaults should suffice.

Parameters:
register - If true, then also register input plugins and fonts

initialize

public static void initialize()
Equivilent to initialize(true). Fully links and initializes the mapnik library.


getInstalledFontsDir

public static java.lang.String getInstalledFontsDir()
Returns:
the Mapnik fonts dir as reported by mapnik at compile time or null

getInstalledInputPluginsDir

public static java.lang.String getInstalledInputPluginsDir()
Returns:
the Mapnik input plugins dir as reported by mapnik at compile time or null