Class mxStyleRegistry

java.lang.Object
com.mxgraph.view.mxStyleRegistry

public class mxStyleRegistry extends Object
Singleton class that acts as a global converter from string to object values in a style. This is currently only used to perimeters and edge styles.
  • Field Details

    • values

      protected static Map<String,Object> values
      Maps from strings to objects.
  • Constructor Details

    • mxStyleRegistry

      public mxStyleRegistry()
  • Method Details

    • putValue

      public static void putValue(String name, Object value)
      Puts the given object into the registry under the given name.
    • getValue

      public static Object getValue(String name)
      Returns the value associated with the given name.
    • getName

      public static String getName(Object value)
      Returns the name for the given value.