SandMark version 3.0


sandmark.util.graph
Class Node

java.lang.Object
  |
  +--sandmark.util.graph.Node
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
ClassHierarchyNode, ComponentGraphNode, Dot.MyNode, NestingLevelComplexity.NLCNode, Node

public class Node
extends java.lang.Object
implements java.lang.Cloneable

Operations on nodes belonging to a sandmark.util.graph.Graph.


Field Summary
protected  int number
           
 
Constructor Summary
Node()
           
Node(int number)
           
 
Method Summary
 java.lang.Object clone()
           
protected  java.lang.String color()
          Return the color of this node.
 boolean equals(java.lang.Object node)
           
protected  int fontsize()
          Return the fontsize of this node.
 int hashCode()
           
static void main(java.lang.String[] args)
           
 java.lang.String name()
           
 int nodeNumber()
           
 void setNodeNumber(int number)
           
protected  java.lang.String shape()
          Return the shape of this node.
protected  java.lang.String style()
          Return the style of this node.
 java.lang.String toDot()
          Format the node in the dot format.
 java.lang.String toDot(java.lang.String label)
          Format the node in the dot format.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

number

protected int number
Constructor Detail

Node

public Node(int number)

Node

public Node()
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
java.lang.CloneNotSupportedException

nodeNumber

public int nodeNumber()

setNodeNumber

public void setNodeNumber(int number)

equals

public boolean equals(java.lang.Object node)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

name

public java.lang.String name()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toDot

public java.lang.String toDot(java.lang.String label)
Format the node in the dot format.


color

protected java.lang.String color()
Return the color of this node. Used when generating code for dot. Default is black.


shape

protected java.lang.String shape()
Return the shape of this node. Used when generating code for dot. Default is record.


style

protected java.lang.String style()
Return the style of this node. Used when generating code for dot. Default is "".


fontsize

protected int fontsize()
Return the fontsize of this node. Used when generating code for dot. Default is 10.


toDot

public java.lang.String toDot()
Format the node in the dot format. This method should typically be overridden in order to format the node label:
    public String toDot() {
       return toDot(data);
    }
 


main

public static void main(java.lang.String[] args)

SandMark version 3.0

Wed Jan 29 10:30:05 MST 2003