jcreek.cke.conceptview
Class VisualRelation

java.lang.Object
  extended byjcreek.cke.conceptview.VisualRelation
All Implemented Interfaces:
java.lang.Cloneable, Edge, java.io.Serializable

public class VisualRelation
extends java.lang.Object
implements Edge

See Also:
Serialized Form

Field Summary
 VisualEntity from
           
protected  DPoint[] points_
           
protected  java.awt.Font relationFont
           
protected  double scale_
           
 boolean selected
           
 VisualEntity to
           
 
Constructor Summary
VisualRelation(VisualEntity from, VisualEntity to, Relation r)
           
 
Method Summary
 java.lang.Object clone()
          These methods are needed to convert Visual Relation to Edge for the Graph
 void draw(java.awt.Graphics2D graphics, Matrix33 transform)
           
 void draw(java.awt.Graphics2D graphics, Matrix33 transform, double currentScale)
           
 boolean equals(java.lang.Object ob)
           
 VisualEntity getFrom()
           
 Node getHead()
           
 Relation getRelation()
           
 Node getTail()
           
 VisualEntity getTo()
           
 int hashCode()
           
 boolean isSelected()
           
 void remove()
           
 boolean represents(Relation r)
           
 void setSelected(boolean selected)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

from

public VisualEntity from

to

public VisualEntity to

selected

public boolean selected

points_

protected DPoint[] points_

scale_

protected double scale_

relationFont

protected java.awt.Font relationFont
Constructor Detail

VisualRelation

public VisualRelation(VisualEntity from,
                      VisualEntity to,
                      Relation r)
Method Detail

represents

public boolean represents(Relation r)

getTo

public VisualEntity getTo()

getFrom

public VisualEntity getFrom()

getHead

public Node getHead()
Specified by:
getHead in interface Edge

getTail

public Node getTail()
Specified by:
getTail in interface Edge

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
These methods are needed to convert Visual Relation to Edge for the Graph

Throws:
java.lang.CloneNotSupportedException

draw

public void draw(java.awt.Graphics2D graphics,
                 Matrix33 transform)

draw

public void draw(java.awt.Graphics2D graphics,
                 Matrix33 transform,
                 double currentScale)

setSelected

public void setSelected(boolean selected)
Specified by:
setSelected in interface Edge

isSelected

public boolean isSelected()
Specified by:
isSelected in interface Edge

remove

public void remove()

getRelation

public Relation getRelation()
Specified by:
getRelation in interface Edge

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object ob)

toString

public java.lang.String toString()


Created at IDI, NTNU by the Artificial Intelligence and Learning group