org.formaria.svg
Class GroupHierarchy

java.lang.Object
  extended by org.formaria.svg.GroupHierarchy

public class GroupHierarchy
extends java.lang.Object

Copyright (c) Formaria Ltd., 2008, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Formaria.

$Revision: 1.2 $


Field Summary
protected  SvgImageMap imageMap
           
protected  SVGRoot root
           
protected  javax.swing.tree.DefaultMutableTreeNode rootNode
           
 
Constructor Summary
GroupHierarchy(SvgImageMap imageMap)
          Creates a new instance of GroupHierarchy This class can be used to extract the group hierarchy from an svg image.
 
Method Summary
 void extractGroups()
          Private method used by this class to recursively extract the group hierarchy from the svg.
 javax.swing.tree.DefaultMutableTreeNode getGroupHierarchy()
          Returns the extracted group hierarchy to the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imageMap

protected SvgImageMap imageMap

rootNode

protected javax.swing.tree.DefaultMutableTreeNode rootNode

root

protected SVGRoot root
Constructor Detail

GroupHierarchy

public GroupHierarchy(SvgImageMap imageMap)
Creates a new instance of GroupHierarchy This class can be used to extract the group hierarchy from an svg image.

Method Detail

extractGroups

public void extractGroups()
Private method used by this class to recursively extract the group hierarchy from the svg.


getGroupHierarchy

public javax.swing.tree.DefaultMutableTreeNode getGroupHierarchy()
Returns the extracted group hierarchy to the user.

Returns:
the root DefaultMutableTreeNode of the hierarchy.