|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttreebolic.provider.xml.graph.AbstractParser
treebolic.provider.xml.graph.gxml.GxmlParser
public class GxmlParser
GXL parser
| Nested Class Summary | |
|---|---|
(package private) static class |
GxmlParser.Style
Wrapper for style information |
| Constructor Summary | |
|---|---|
GxmlParser()
|
|
| Method Summary | |
|---|---|
private static GxmlParser.Style |
getStyle(java.util.Map<java.lang.String,GxmlParser.Style> thisStyleMap,
java.lang.String thisClass)
Get style from map, allocate key and null value in map if needed |
private static java.util.Map<java.lang.String,GxmlParser.Style> |
parseClasses(org.w3c.dom.Element thisElement)
Parse class styles |
protected Graph |
parseGraph(org.w3c.dom.Document thisDocument)
Parse graph |
private static void |
parseLine(org.w3c.dom.Element thisElement,
MutableEdge thisEdge)
Parse edge style |
protected Settings |
parseSettings(org.w3c.dom.Document thisDocument)
Parse settings |
private static java.awt.Color |
toColor(java.lang.String thisColorString)
Color parsing |
private static void |
transferStyle(MutableEdge thisEdge,
GxmlParser.Style thisStyle)
Transfer class style to edge |
private static void |
transferStyle(MutableGraphNode thisNode,
GxmlParser.Style thisStyle)
Transfer class style to node |
| Methods inherited from class treebolic.provider.xml.graph.AbstractParser |
|---|
getFirstElementByTagName, getFirstLevel1ElementByTagName, getLevel1ChildElementsByTagName, parseModel, parseTree |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GxmlParser()
| Method Detail |
|---|
protected Graph parseGraph(org.w3c.dom.Document thisDocument)
parseGraph in class AbstractParserprotected Settings parseSettings(org.w3c.dom.Document thisDocument)
parseSettings in class AbstractParser
private static void parseLine(org.w3c.dom.Element thisElement,
MutableEdge thisEdge)
thisElement - DOM element to start fromthisEdge - edgeprivate static java.util.Map<java.lang.String,GxmlParser.Style> parseClasses(org.w3c.dom.Element thisElement)
thisElement - DOM element to start from
private static GxmlParser.Style getStyle(java.util.Map<java.lang.String,GxmlParser.Style> thisStyleMap,
java.lang.String thisClass)
thisStyleMap - style mapthisClass - class key
private static void transferStyle(MutableGraphNode thisNode,
GxmlParser.Style thisStyle)
thisNode - nodethisStyle - style
private static void transferStyle(MutableEdge thisEdge,
GxmlParser.Style thisStyle)
thisEdge - edgethisStyle - styleprivate static java.awt.Color toColor(java.lang.String thisColorString)
thisColorString - string to parse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||