com.ericsson.tic.vi
Class NodeType

java.lang.Object
  extended by com.ericsson.tic.vi.NodeType

public class NodeType
extends Object

Defines a graph node of a specific type.

Version:
1.0 (2008-12-04)
Author:
Sami Matilainen

Field Summary
 float[] color
          The default color of this node type.
 int id
          A unique identifier for this node type.
 int level
          Which level in the hierarcy this type belongs to.
 String name
          A name for this type.
 
Constructor Summary
NodeType(int id, String name, int level)
          Creates a Node type.
NodeType(int id, String name, int level, float[] defaultColor)
          Creates a Node type.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public int id
A unique identifier for this node type.


name

public String name
A name for this type.


level

public int level
Which level in the hierarcy this type belongs to.


color

public float[] color
The default color of this node type.

Constructor Detail

NodeType

public NodeType(int id,
                String name,
                int level,
                float[] defaultColor)
Creates a Node type.

Parameters:
id - The id of this type.
name - The name of this type.
level - Which level in the hierarcy this type belongs to.
defaultColor - The default color for this type of nodes.

NodeType

public NodeType(int id,
                String name,
                int level)
Creates a Node type.

Parameters:
id - The id of this type.
name - The name of this type.
level - Which level in the hierarcy this type belongs to.