ccvisu
Class GraphVertex

java.lang.Object
  extended byccvisu.GraphVertex

public class GraphVertex
extends java.lang.Object

Represents a vertex of the graph, including name, id, and several attributes.

Version:
$Revision: 1.3 $; $Date: 2005/09/30 15:28:09 $
Author:
Dirk Beyer

Field Summary
 java.awt.Color color
           
 float degree
          (Weighted) Edge degree of the vertex.
 int id
           
 boolean isSource
          True if the vertex is the source vertex of an edge.
 java.lang.String name
           
 boolean showName
          True if the name shall be annotated in the visualization.
 
Constructor Summary
GraphVertex()
          Constructor.
 
Method Summary
 void toggle_showName()
          Toggles the annotation of the vertex.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name

id

public int id

isSource

public boolean isSource
True if the vertex is the source vertex of an edge.


degree

public float degree
(Weighted) Edge degree of the vertex.


color

public java.awt.Color color

showName

public boolean showName
True if the name shall be annotated in the visualization.

Constructor Detail

GraphVertex

public GraphVertex()
Constructor.

Method Detail

toggle_showName

public void toggle_showName()
Toggles the annotation of the vertex. Used by the interactive visualization (DISP output format) to switch on or off the annotation by mouse click.