gui
Class ConceptGraph

java.lang.Object
  extended byabsurdist.ConceptSystem
      extended bygui.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
(package private)  int height
          width and height of its bound
(package private)  int width
          width and height of its bound
(package private)  int x
          top-left corner of its bound
(package private)  int y
          top-left corner of its bound
 
Fields inherited from class 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 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

int x
top-left corner of its bound


y

int y
top-left corner of its bound


width

int width
width and height of its bound


height

int height
width and height of its bound

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