edu.umd.cs.jazz.io.svg
Class GPath

java.lang.Object
  |
  +--edu.umd.cs.jazz.io.svg.GNode
        |
        +--edu.umd.cs.jazz.io.svg.GPath

public class GPath
extends GNode

Support tag in SVG This class is most widely used when handling adobe illustrator files angle is not supported now. It is drawn as a line. Sample path data


Fields inherited from class edu.umd.cs.jazz.io.svg.GNode
visualComps, visualLeaf
 
Constructor Summary
GPath(org.w3c.dom.Node _node, GNode parent)
           
 
Method Summary
protected  void addLinkToPath(java.awt.geom.GeneralPath path, java.util.Vector points)
           
protected  java.lang.String fixString(java.lang.String s)
           
protected  boolean isClosed(java.util.Vector points)
           
protected  void processArc(java.lang.String s, java.awt.geom.GeneralPath path, char pathType)
           
protected  java.util.Vector readCubicPoints(java.lang.String s, char pathType)
           
protected  java.util.Vector readDualPoints(java.lang.String s, char pathType)
           
protected  java.util.Vector readHorizontalPoints(java.lang.String s, char pathType)
           
protected  void readPath(java.lang.String s)
           
protected  java.util.Vector readPoints(java.lang.String s, char pathType)
           
protected  java.util.Vector readVerticalPoints(java.lang.String s, char pathType)
           
 
Methods inherited from class edu.umd.cs.jazz.io.svg.GNode
addStyle, addVisualComponent, addVisualComponentIntoTransform, copyStyleFromParent, draw, getNodeName, interpreteColor, printName, printPath, readColor, readStyle, readTransform, readXLink, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GPath

public GPath(org.w3c.dom.Node _node,
             GNode parent)
Method Detail

isClosed

protected boolean isClosed(java.util.Vector points)

fixString

protected java.lang.String fixString(java.lang.String s)

readPoints

protected java.util.Vector readPoints(java.lang.String s,
                                      char pathType)

readCubicPoints

protected java.util.Vector readCubicPoints(java.lang.String s,
                                           char pathType)

readDualPoints

protected java.util.Vector readDualPoints(java.lang.String s,
                                          char pathType)

readHorizontalPoints

protected java.util.Vector readHorizontalPoints(java.lang.String s,
                                                char pathType)

readVerticalPoints

protected java.util.Vector readVerticalPoints(java.lang.String s,
                                              char pathType)

addLinkToPath

protected void addLinkToPath(java.awt.geom.GeneralPath path,
                             java.util.Vector points)

processArc

protected void processArc(java.lang.String s,
                          java.awt.geom.GeneralPath path,
                          char pathType)

readPath

protected void readPath(java.lang.String s)


Copyright © 2001 by University of Maryland, College Park, MD 20742, USA All rights reserved.