|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--edu.iu.pcl.absurdist.absurdist.Concept
|
+--edu.iu.pcl.absurdist.gui.ConceptNode
Class ConceptNode: Visual representation of a concept in a concept system graph.
| Field Summary | |
static java.awt.Color[] |
colors
olor set for mapping concept categories |
static int |
D
|
| Fields inherited from class edu.iu.pcl.absurdist.absurdist.Concept |
category, d1, d2, name, rank |
| Constructor Summary | |
ConceptNode(Concept concept,
ConceptSystem system,
ConceptGraph graph)
Creates a concept node by encoding its concept features. |
|
| Method Summary | |
static java.awt.Color |
cat2color(java.lang.String category,
java.util.Vector categories)
Encodes concept type into node color. |
static int |
dim2pos(double d,
int start,
int span)
Encodes concept dimension value into node position coordinates. |
double |
distance(ConceptNode node)
Computes the geometric distance between this node and the specified one. |
int |
getLeft()
Gets the x position of left-top corner. |
java.awt.Point |
getLeftTop()
Gets the left-top point. |
int |
getTop()
Gets the y position of left-top corner. |
void |
paint(java.awt.Graphics2D g)
Paints the object. |
static int |
rank2size(int rank)
Encodes concept rank into node size. |
java.lang.String |
toString()
String representation. |
| Methods inherited from class edu.iu.pcl.absurdist.absurdist.Concept |
addNoise, distance, isRanked, isValued |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.awt.Color[] colors
public static final int D
| Constructor Detail |
public ConceptNode(Concept concept,
ConceptSystem system,
ConceptGraph graph)
| Method Detail |
public static java.awt.Color cat2color(java.lang.String category,
java.util.Vector categories)
public static int rank2size(int rank)
public static int dim2pos(double d,
int start,
int span)
public int getLeft()
public int getTop()
public java.awt.Point getLeftTop()
public double distance(ConceptNode node)
public void paint(java.awt.Graphics2D g)
public java.lang.String toString()
toString in class Concept
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||