edu.iu.pcl.absurdist.gui
Class ConceptGraph

java.lang.Object
  |
  +--edu.iu.pcl.absurdist.absurdist.ConceptSystem
        |
        +--edu.iu.pcl.absurdist.gui.ConceptGraph
All Implemented Interfaces:
java.io.Serializable

public class ConceptGraph
extends ConceptSystem
implements java.io.Serializable

Class ConceptGraph: Visual representation of a concept system as a graph.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.iu.pcl.absurdist.absurdist.ConceptSystem
anchors, categories, concepts, DIRECTED, MIXED, models, name, relations, UNDIRECTED
 
Constructor Summary
ConceptGraph(ConceptSystem system, int x, int y, int width, int height)
          Creates a concept graph from a concept system.
 
Method Summary
 RelationLink getLink(int i, int j, java.lang.String label)
          Gets the relation link of the specified label between concept node i and concept node j.
 java.util.Vector getLinks(int i, int j)
          Gets the relation link list between concept node i and concept node j.
 ConceptNode getNode(int i)
          Gets the ith concept node.
 void paint(java.awt.Graphics2D g)
          Paints the object.
 java.lang.String toString()
          Returns a string representation of this concept system.
 
Methods inherited from class edu.iu.pcl.absurdist.absurdist.ConceptSystem
addAnchor, addCategory, addConcept, addModel, addNoise, allAnchorCnt, anchorOverlap, getCategory, getCategoryIndex, getCategoryNum, getConcept, getConcept, getConceptIndex, getConceptIndex, getConceptNum, getKey, getModel, getModel, getModelIndex, getModelIndex, getModelNum, getRelation, getRelation, getRelations, getRelListNum, isCategorized, isDirected, isLabeled, isRanked, isSimple, isValued, isWeighted, putRelation, putRelation, putRelations, readBin, readTxt, removeRelation, removeRelations, simpleConcepts, simpleRelations, writeBin
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConceptGraph

public ConceptGraph(ConceptSystem system,
                    int x,
                    int y,
                    int width,
                    int height)
Creates a concept graph from a concept system.

Method Detail

getNode

public ConceptNode getNode(int i)
Gets the ith concept node.


getLinks

public java.util.Vector getLinks(int i,
                                 int j)
Gets the relation link list between concept node i and concept node j.


getLink

public RelationLink getLink(int i,
                            int j,
                            java.lang.String label)
Gets the relation link of the specified label between concept node i and concept node j.


paint

public void paint(java.awt.Graphics2D g)
Paints the object.


toString

public java.lang.String toString()
Description copied from class: ConceptSystem
Returns a string representation of this concept system.

Overrides:
toString in class ConceptSystem