edu.iu.cnets.klatsch.model.gephi
Class GephiNode
java.lang.Object
edu.iu.cnets.klatsch.model.Node
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
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
id
int id
type
char type
GephiNode
public GephiNode(GephiGraph graph,
org.gephi.graph.api.Node gNode)
GephiNode
public GephiNode(char type,
int id)
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