jcreek.cke.conceptview
Class VisualRelation
java.lang.Object
jcreek.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
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
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
VisualRelation
public VisualRelation(VisualEntity from,
VisualEntity to,
Relation r)
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