mxStyleRegistry (JGraph X 2.1.0.7 API Specification)
Date: 2013-07-31

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JGraph X 2.1.0.7
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.mxgraph.view
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 Summary
`protected static Map<String,Object>` | `values` Maps from strings to objects.

Constructor Summary
`mxStyleRegistry()`

Method Summary
`static String` | `getName(Object value)` Returns the name for the given value.
`static Object` | `getValue(String name)` Returns the value associated with the given name.
`static void` | `putValue(String name, Object value)` Puts the given object into the registry under the given name.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### values

    protected static Map<String,Object> values

  Maps from strings to objects.

Constructor Detail

### mxStyleRegistry

    public mxStyleRegistry()

Method Detail

### 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JGraph X 2.1.0.7
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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