| 
 | JGraph X 1.4.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mxgraph.io.gml.mxGmlUtils
public class mxGmlUtils
This class implements several GML utility methods.
| Constructor Summary | |
|---|---|
| mxGmlUtils() | |
| Method Summary | |
|---|---|
| static boolean | childsHasTag(Element element,
             String tag)Checks if the childrens of element has a Node with name = tag. | 
| static Element | childsTag(Element element,
          String tag)Returns the first Element that has name = tag in the childrens of element. | 
| static List<Element> | childsTags(Element element,
           String tag)Returns a list with the elements included in the childrens of element that have name = tag. | 
| static List<Node> | copyNodeList(NodeList nodeList)Copy a given NodeList into a List | 
| static HashMap<String,Object> | getStyleMap(String style,
            String asig)Create a style map from a String with style definitions. | 
| static String | getStyleString(Map<String,Object> styleMap,
               String asig)Returns the string that represents the content of a given style map. | 
| static boolean | nodeListHasTag(NodeList nl,
               String tag)Checks if the NodeList has a Node with name = tag. | 
| static Element | nodeListTag(NodeList nl,
            String tag)Returns the first Element that has name = tag in Node List. | 
| static List<Element> | nodeListTags(NodeList nl,
             String tag)Returns a list with the elements included in the Node List that have name = tag. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public mxGmlUtils()
| Method Detail | 
|---|
public static boolean nodeListHasTag(NodeList nl,
                                     String tag)
nl - NodeListtag - Name of the node.
true if the Node List has a Node with name = tag.
public static Element nodeListTag(NodeList nl,
                                  String tag)
nl - NodeListtag - Name of the Element
public static List<Element> nodeListTags(NodeList nl,
                                         String tag)
nl - NodeListtag - name of the Element.
public static boolean childsHasTag(Element element,
                                   String tag)
element - Elementtag - Name of the node.
true if the childrens of element has a Node with name = tag.
public static Element childsTag(Element element,
                                String tag)
element - Elementtag - Name of the Element
public static List<Element> childsTags(Element element,
                                       String tag)
element - Elementtag - name of the Element.
public static List<Node> copyNodeList(NodeList nodeList)
nodeList - Node List.
public static HashMap<String,Object> getStyleMap(String style,
                                                 String asig)
style - Definition of the style.asig - Asignation simbol used in 'style'.
public static String getStyleString(Map<String,Object> styleMap,
                                    String asig)
styleMap - Map with the styles values
| 
 | JGraph X 1.4.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||