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

java.lang.Object
  |
  +--edu.umd.cs.jazz.io.svg.GNode
Direct Known Subclasses:
GCircle, GEllipse, GG, GImage, GLine, GPath, GPolygon, GPolyline, GRect, GSVG, GSymbol, GText, GUse

public class GNode
extends java.lang.Object

GNode is the base class of all G.. classes. This class contains all information about translation, style, font and color


Field Summary
 java.util.Vector visualComps
           
 ZVisualLeaf visualLeaf
           
 
Constructor Summary
GNode(org.w3c.dom.Node _node, GNode _gparent)
           
 
Method Summary
protected  void addStyle(java.lang.String attr, java.lang.String val)
           
 void addVisualComponent(ZVisualLeaf visualLeaf)
           
 void addVisualComponentIntoTransform()
           
protected  void copyStyleFromParent()
           
 void draw(GNode parent, java.util.Vector GNodes)
           
 java.lang.String getNodeName()
           
protected  int interpreteColor(java.lang.String s)
          Return int value from string e.g.
 void printName()
           
 void printPath()
           
protected  java.awt.Color readColor(java.lang.String val)
           
protected  void readStyle(java.lang.String s)
           
protected  void readTransform(java.lang.String s)
          translate following properties into a transform matrix translate(xx) translate(xx, xx) scale(xx) rotate(xx) skew-x(xx) skew-y(xx) matrix(x x x x x x) Please be noticed that there is a sequence which should be kept during drawing
protected  void readXLink(java.lang.String arg, java.lang.String value)
           
 void setLocation(java.lang.String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

visualComps

public java.util.Vector visualComps

visualLeaf

public ZVisualLeaf visualLeaf
Constructor Detail

GNode

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

setLocation

public void setLocation(java.lang.String url)

readXLink

protected void readXLink(java.lang.String arg,
                         java.lang.String value)

readStyle

protected void readStyle(java.lang.String s)

readColor

protected java.awt.Color readColor(java.lang.String val)

interpreteColor

protected int interpreteColor(java.lang.String s)
Return int value from string e.g. ff --> 255 a --> 10 50% --> 255 * 50/100

addStyle

protected void addStyle(java.lang.String attr,
                        java.lang.String val)

readTransform

protected void readTransform(java.lang.String s)
translate following properties into a transform matrix translate(xx) translate(xx, xx) scale(xx) rotate(xx) skew-x(xx) skew-y(xx) matrix(x x x x x x) Please be noticed that there is a sequence which should be kept during drawing

draw

public void draw(GNode parent,
                 java.util.Vector GNodes)

addVisualComponentIntoTransform

public void addVisualComponentIntoTransform()

addVisualComponent

public void addVisualComponent(ZVisualLeaf visualLeaf)

printName

public void printName()

printPath

public void printPath()

getNodeName

public java.lang.String getNodeName()

copyStyleFromParent

protected void copyStyleFromParent()


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