org.tigris.gef.xml.svg
Class SVGParser

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byorg.tigris.gef.xml.svg.SVGParser
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

Deprecated. use org.tigris.gef.persistence.svg.SvgParser

public class SVGParser
extends org.xml.sax.helpers.DefaultHandler


Field Summary
protected  Diagram _diagram
          Deprecated.  
protected  java.util.HashMap _figRegistry
          Deprecated.  
protected  int _nestedGroups
          Deprecated.  
protected  java.util.Map _ownerRegistry
          Deprecated.  
static SVGParser SINGLETON
          Deprecated.  
 
Constructor Summary
SVGParser()
          Deprecated.  
 
Method Summary
 void characters(char[] ch, int start, int length)
          Deprecated.  
protected  java.awt.Color colorByName(java.lang.String name, java.awt.Color defaultColor)
          Deprecated.  
 void endElement(java.lang.String elementName)
          Deprecated.  
protected  org.tigris.gef.presentation.Fig findFig(java.lang.String uri)
          Deprecated.  
protected  java.lang.Object findOwner(java.lang.String uri)
          Deprecated.  
protected  java.lang.String[] getEntityPaths()
          Deprecated.  
protected  GraphModel getGraphModelFor(java.lang.String desc)
          Deprecated.  
protected  org.tigris.gef.presentation.FigCircle handleEllipse(org.xml.sax.Attributes attrList)
          Deprecated.  
protected  org.tigris.gef.presentation.Fig handleGroup(org.xml.sax.Attributes attrList)
          Deprecated.  
protected  org.tigris.gef.presentation.FigLine handleLine(org.xml.sax.Attributes attrList)
          Deprecated.  
protected  org.tigris.gef.presentation.FigPoly handlePath(org.xml.sax.Attributes attrList)
          Deprecated.  
protected  org.tigris.gef.presentation.Fig handlePolyLine(org.xml.sax.Attributes attrList)
          Deprecated.  
protected  org.tigris.gef.presentation.FigRect handleRect(org.xml.sax.Attributes attrList)
          Deprecated.  
protected  void handleSVG(org.xml.sax.Attributes attrList)
          Deprecated.  
protected  org.tigris.gef.presentation.FigText handleText(org.xml.sax.Attributes attrList)
          Deprecated.  
protected  void initDiagram(java.lang.String diagDescr)
          Deprecated.  
protected  void lineStateStartElement(java.lang.String tagName, org.xml.sax.Attributes attrList)
          Deprecated.  
protected  java.awt.Color parseColor(java.lang.String name, java.awt.Color defaultColor)
          Deprecated.  
protected  java.lang.String parseStyle(java.lang.String field, java.lang.String style)
          Deprecated. This method parses the 'style' attribute for a particular field
 Diagram readDiagram(java.net.URL url)
          Deprecated.  
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
          Deprecated.  
protected  void setAttrs(org.tigris.gef.presentation.Fig f, org.xml.sax.Attributes attrList)
          Deprecated.  
protected  void setOwnerAttr(org.tigris.gef.presentation.Fig f, org.xml.sax.Attributes attrList)
          Deprecated.  
 void setOwnerRegistry(java.util.Map owners)
          Deprecated.  
 void startElement(java.lang.String elementName, org.xml.sax.Attributes attrList)
          Deprecated.  
protected  java.lang.String translateClassName(java.lang.String oldName)
          Deprecated.  
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLETON

public static SVGParser SINGLETON
Deprecated. 

_diagram

protected Diagram _diagram
Deprecated. 

_nestedGroups

protected int _nestedGroups
Deprecated. 

_figRegistry

protected java.util.HashMap _figRegistry
Deprecated. 

_ownerRegistry

protected java.util.Map _ownerRegistry
Deprecated. 
Constructor Detail

SVGParser

public SVGParser()
Deprecated. 
Method Detail

characters

public void characters(char[] ch,
                       int start,
                       int length)
Deprecated. 

colorByName

protected java.awt.Color colorByName(java.lang.String name,
                                     java.awt.Color defaultColor)
Deprecated. 

endElement

public void endElement(java.lang.String elementName)
Deprecated. 

findFig

protected org.tigris.gef.presentation.Fig findFig(java.lang.String uri)
Deprecated. 

findOwner

protected java.lang.Object findOwner(java.lang.String uri)
Deprecated. 

getEntityPaths

protected java.lang.String[] getEntityPaths()
Deprecated. 

getGraphModelFor

protected GraphModel getGraphModelFor(java.lang.String desc)
Deprecated. 

handleEllipse

protected org.tigris.gef.presentation.FigCircle handleEllipse(org.xml.sax.Attributes attrList)
Deprecated. 

handleGroup

protected org.tigris.gef.presentation.Fig handleGroup(org.xml.sax.Attributes attrList)
Deprecated. 

handleLine

protected org.tigris.gef.presentation.FigLine handleLine(org.xml.sax.Attributes attrList)
Deprecated. 

handlePath

protected org.tigris.gef.presentation.FigPoly handlePath(org.xml.sax.Attributes attrList)
Deprecated. 

handlePolyLine

protected org.tigris.gef.presentation.Fig handlePolyLine(org.xml.sax.Attributes attrList)
Deprecated. 

handleRect

protected org.tigris.gef.presentation.FigRect handleRect(org.xml.sax.Attributes attrList)
Deprecated. 

handleSVG

protected void handleSVG(org.xml.sax.Attributes attrList)
Deprecated. 

handleText

protected org.tigris.gef.presentation.FigText handleText(org.xml.sax.Attributes attrList)
Deprecated. 

initDiagram

protected void initDiagram(java.lang.String diagDescr)
Deprecated. 

lineStateStartElement

protected void lineStateStartElement(java.lang.String tagName,
                                     org.xml.sax.Attributes attrList)
Deprecated. 

parseColor

protected java.awt.Color parseColor(java.lang.String name,
                                    java.awt.Color defaultColor)
Deprecated. 

parseStyle

protected java.lang.String parseStyle(java.lang.String field,
                                      java.lang.String style)
Deprecated. 
This method parses the 'style' attribute for a particular field

Parameters:
field - java.lang.String
style - java.lang.String
Returns:
java.lang.String

readDiagram

public Diagram readDiagram(java.net.URL url)
Deprecated. 

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)
Deprecated. 

setAttrs

protected void setAttrs(org.tigris.gef.presentation.Fig f,
                        org.xml.sax.Attributes attrList)
Deprecated. 

setOwnerAttr

protected void setOwnerAttr(org.tigris.gef.presentation.Fig f,
                            org.xml.sax.Attributes attrList)
Deprecated. 

setOwnerRegistry

public void setOwnerRegistry(java.util.Map owners)
Deprecated. 

startElement

public void startElement(java.lang.String elementName,
                         org.xml.sax.Attributes attrList)
Deprecated. 

translateClassName

protected java.lang.String translateClassName(java.lang.String oldName)
Deprecated.