uci.xml.pgml
Class PGMLParser

uci.xml.pgml.PGMLParser

public class PGMLParser


Field Summary
protected  Diagram _diagram
           
protected  Hashtable _figRegistry
           
protected  int _nestedGroups
           
protected  Hashtable _ownerRegistry
           
static PGMLParser SINGLETON
           
 
Constructor Summary
protected PGMLParser()
           
 
Method Summary
protected  Color colorByName(String name, Color defaultColor)
           
protected  Fig findFig(String uri)
           
protected  Object findOwner(String uri)
           
protected  GraphModel getGraphModelFor(String desc)
           
 uci.xml.pgml.TXElement handleElement(uci.xml.pgml.TXElement e)
           
protected  FigCircle handleEllipse(uci.xml.pgml.TXElement e)
           
 void handleEndTag(uci.xml.pgml.TXElement e, boolean empty)
           
protected  Fig handleGroup(uci.xml.pgml.TXElement e)
           
protected  FigLine handleLine(uci.xml.pgml.TXElement e)
           
protected  FigPoly handlePath(uci.xml.pgml.TXElement e)
           
protected  void handlePGML(uci.xml.pgml.TXElement e)
           
protected  Fig handlePolyLine(uci.xml.pgml.TXElement e)
           
protected  FigRect handleRect(uci.xml.pgml.TXElement e)
           
 void handleStartTag(uci.xml.pgml.TXElement e, boolean empty)
           
protected  FigText handleText(uci.xml.pgml.TXElement e)
           
protected  void initDiagram(String diagDescr)
           
 Diagram readDiagram(URL url)
           
protected  void setAttrs(Fig f, uci.xml.pgml.TXElement e)
           
 void setOwnerRegistery(Hashtable owners)
           
 

Field Detail

SINGLETON

public static PGMLParser SINGLETON

_diagram

protected Diagram _diagram

_nestedGroups

protected int _nestedGroups

_figRegistry

protected Hashtable _figRegistry

_ownerRegistry

protected Hashtable _ownerRegistry
Constructor Detail

PGMLParser

protected PGMLParser()
Method Detail

readDiagram

public Diagram readDiagram(URL url)

setOwnerRegistery

public void setOwnerRegistery(Hashtable owners)

initDiagram

protected void initDiagram(String diagDescr)

handleStartTag

public void handleStartTag(uci.xml.pgml.TXElement e,
                           boolean empty)

handleEndTag

public void handleEndTag(uci.xml.pgml.TXElement e,
                         boolean empty)

handleElement

public uci.xml.pgml.TXElement handleElement(uci.xml.pgml.TXElement e)

handlePGML

protected void handlePGML(uci.xml.pgml.TXElement e)

handlePolyLine

protected Fig handlePolyLine(uci.xml.pgml.TXElement e)

handleLine

protected FigLine handleLine(uci.xml.pgml.TXElement e)

handleEllipse

protected FigCircle handleEllipse(uci.xml.pgml.TXElement e)

handleRect

protected FigRect handleRect(uci.xml.pgml.TXElement e)

handleText

protected FigText handleText(uci.xml.pgml.TXElement e)

handlePath

protected FigPoly handlePath(uci.xml.pgml.TXElement e)

handleGroup

protected Fig handleGroup(uci.xml.pgml.TXElement e)

setAttrs

protected void setAttrs(Fig f,
                        uci.xml.pgml.TXElement e)

findOwner

protected Object findOwner(String uri)

findFig

protected Fig findFig(String uri)

getGraphModelFor

protected GraphModel getGraphModelFor(String desc)

colorByName

protected Color colorByName(String name,
                            Color defaultColor)