Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.data.readers
Class GMLTree

java.lang.Object
  extended by cytoscape.data.readers.GMLTree

public class GMLTree
extends Object

This class wraps around GMLNode and provides various methods for constructing a tree structure given other data.


Field Summary
static int DOUBLE
          When getting a vector, used to specify the type for the contained objects
static int GMLTREE
          When getting a vector, used to specify the type for the contained objects
static int INTEGER
          When getting a vector, used to specify the type for the contained objects
static int STRING
          When getting a vector, used to specify the type for the contained objects
 
Constructor Summary
GMLTree()
          Create an empty GMLTree
GMLTree(CyNetworkView networkView)
          Create a GMLTree from the information contained in this GraphView.
GMLTree(GMLNode init)
          Creates a new GMLTree object.
GMLTree(String filename)
          Create a GMLTree from data contained in a file
GMLTree(String text, boolean zip_entry)
          Creates a new GMLTree object.
 
Method Summary
 String getColorHexString(Color c)
          Get the String representation of the 6 character hexidecimal RGB values i.e.
 Vector getVector(String[] keys, int type)
          Return a vector of information stored in gmlNodes
 String toString()
          Get string representation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STRING

public static int STRING
When getting a vector, used to specify the type for the contained objects


DOUBLE

public static int DOUBLE
When getting a vector, used to specify the type for the contained objects


INTEGER

public static int INTEGER
When getting a vector, used to specify the type for the contained objects


GMLTREE

public static int GMLTREE
When getting a vector, used to specify the type for the contained objects

Constructor Detail

GMLTree

public GMLTree()
Create an empty GMLTree


GMLTree

public GMLTree(GMLNode init)
Creates a new GMLTree object.

Parameters:
init - DOCUMENT ME!

GMLTree

public GMLTree(CyNetworkView networkView)
Create a GMLTree from the information contained in this GraphView. Currently this only concerns itself with x,y position information.

Parameters:
myView - the GraphView used to create the GMLTree

GMLTree

public GMLTree(String filename)
Create a GMLTree from data contained in a file

Parameters:
filename - The name of the file used to create this GMLTree

GMLTree

public GMLTree(String text,
               boolean zip_entry)
Creates a new GMLTree object.

Parameters:
text - DOCUMENT ME!
zip_entry - DOCUMENT ME!
Method Detail

toString

public String toString()
Get string representation

Overrides:
toString in class Object
Returns:
string representation

getColorHexString

public String getColorHexString(Color c)
Get the String representation of the 6 character hexidecimal RGB values i.e. #ff000a

Parameters:
Color - The color to be converted

getVector

public Vector getVector(String[] keys,
                        int type)
Return a vector of information stored in gmlNodes

Parameters:
keys - a string array containing the sequence of keys used to lookup the values in the tree
type - The type fo vector to return. See public static values for specifiying type
Returns:
A vector. The type of the objects in the vector is determined by type

www.cytoscape.org