edu.iu.cnets.klatsch.model.gephi
Class GephiNode

java.lang.Object
  extended by edu.iu.cnets.klatsch.model.Node
      extended by edu.iu.cnets.klatsch.model.gephi.GephiNode
All Implemented Interfaces:
java.lang.Comparable<Node>

public class GephiNode
extends Node

This is an implementation of Node for use with the Gephi toolkit.


Field Summary
(package private)  int id
           
(package private)  char type
           
 
Fields inherited from class edu.iu.cnets.klatsch.model.Node
TYPE_ACTOR, TYPE_MEME
 
Constructor Summary
GephiNode(char type, int id)
           
GephiNode(GephiGraph graph, org.gephi.graph.api.Node gNode)
           
 
Method Summary
 int compareTo(Node other)
           
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 int id()
          Returns the ID of this node.
 org.gephi.graph.api.Node toGephi(GephiGraph graph)
           
 java.lang.String toString()
           
 char type()
          Returns the type of this node.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

int id

type

char type
Constructor Detail

GephiNode

public GephiNode(GephiGraph graph,
                 org.gephi.graph.api.Node gNode)

GephiNode

public GephiNode(char type,
                 int id)
Method Detail

id

public int id()
Description copied from class: Node
Returns the ID of this node.

Specified by:
id in class Node

type

public char type()
Description copied from class: Node
Returns the type of this node.

Specified by:
type in class Node

toGephi

public org.gephi.graph.api.Node toGephi(GephiGraph graph)

compareTo

public int compareTo(Node other)

equals

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

hashCode

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

toString

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