com.mxgraph.shape

## Class mxStencilRegistry

- java.lang.Object
- - com.mxgraph.shape.mxStencilRegistry

-     public class mxStencilRegistry
      extends java.lang.Object

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected static java.util.Map<java.lang.String,mxStencil>` | `stencils`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `mxStencilRegistry()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `addStencil(java.lang.String name, mxStencil stencil)` Adds the given stencil.
    `static mxStencil` | `getStencil(java.lang.String name)` Returns the stencil for the given name.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### stencils

          protected static java.util.Map<java.lang.String,mxStencil> stencils

  - ### Constructor Detail

    - #### mxStencilRegistry

          public mxStencilRegistry()

  - ### Method Detail

    - #### addStencil

          public static void addStencil(java.lang.String name,
                        mxStencil stencil)

      Adds the given stencil.

    - #### getStencil

          public static mxStencil getStencil(java.lang.String name)

      Returns the stencil for the given name.

Copyright (c) 2010 Gaudenz Alder. All rights reserved.