net.sourceforge.fluxion.runcible.graph.view.utils
Class SVGElementUtils

java.lang.Object
  extended by net.sourceforge.fluxion.runcible.graph.view.utils.SVGElementUtils

public class SVGElementUtils
extends java.lang.Object

Javadocs go here.

Version:
1.0 date: 12-Sep-2006
Author:
Tony Burdett

Constructor Summary
SVGElementUtils()
           
 
Method Summary
static java.util.List<org.w3c.dom.Element> buildElementList(org.w3c.dom.Element rootElement)
           
static java.awt.Rectangle getBounds(org.w3c.dom.Element element)
          Returns the Rectangle that make up the bounds of this SVGElement.
static Node lookupNodeByNodeName(java.lang.String nodeName, Graph graph)
           
static Node lookupNodeBySVGElementName(java.lang.String svgName, Graph graph)
           
static org.w3c.dom.Element lookupSVGElementByNodeName(java.lang.String nodeName, org.w3c.dom.Document svgDocument)
           
static org.w3c.dom.Element lookupSVGElementbySVGElementName(java.lang.String svgName, org.w3c.dom.Document svgDocument)
           
static java.lang.String unwrapElementName(org.w3c.dom.Element eventTarget)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGElementUtils

public SVGElementUtils()
Method Detail

unwrapElementName

public static java.lang.String unwrapElementName(org.w3c.dom.Element eventTarget)

lookupNodeBySVGElementName

public static Node lookupNodeBySVGElementName(java.lang.String svgName,
                                              Graph graph)

lookupNodeByNodeName

public static Node lookupNodeByNodeName(java.lang.String nodeName,
                                        Graph graph)

lookupSVGElementByNodeName

public static org.w3c.dom.Element lookupSVGElementByNodeName(java.lang.String nodeName,
                                                             org.w3c.dom.Document svgDocument)

lookupSVGElementbySVGElementName

public static org.w3c.dom.Element lookupSVGElementbySVGElementName(java.lang.String svgName,
                                                                   org.w3c.dom.Document svgDocument)

getBounds

public static java.awt.Rectangle getBounds(org.w3c.dom.Element element)
Returns the Rectangle that make up the bounds of this SVGElement. It is assumed that the element is passed in here, so this method will look for polygon tags and sort through to find the top-left-most and bottom-right-most point of this object.

Parameters:
element - the element to find the bounds for
Returns:
an array of 2 points

buildElementList

public static java.util.List<org.w3c.dom.Element> buildElementList(org.w3c.dom.Element rootElement)


Copyright © 2010. All Rights Reserved.