net.ontopia.topicmaps.viz
Class TMRoleEdge
java.lang.Object
com.touchgraph.graphlayout.Edge
net.ontopia.topicmaps.viz.TMAbstractEdge
net.ontopia.topicmaps.viz.TMRoleEdge
- All Implemented Interfaces:
- com.touchgraph.graphlayout.TGPaintListener, java.util.EventListener, Recoverable, VizTMObjectIF
public class TMRoleEdge
- extends TMAbstractEdge
INTERNAL: Edge class representing association roles as edges in
n-ary associations connecting role player with the association
node.
Fields inherited from class net.ontopia.topicmaps.viz.TMAbstractEdge |
DEFAULT_LINE_WEIGHT, DEFAULT_SHAPE, font, icon, intBuffer, lineWeight, LOADING, scopingTopic, shape, SHAPE_BOWTIE, SHAPE_LINE, shouldDisplayRoleHoverHelp, stringifier, underMouse |
Fields inherited from class com.touchgraph.graphlayout.Edge |
col, DEFAULT_COLOR, DEFAULT_LENGTH, from, id, length, MOUSE_OVER_COLOR, to, visible |
Methods inherited from class net.ontopia.topicmaps.viz.TMAbstractEdge |
addTo, calculateMidPointBetween, calculateOffset, deleteFrom, distFromPoint, getCurvedLine, getDisplayShape, getFont, getFromRolePosition, getIcon, getIndexInParents, getLineWeight, getMidPoint, getShape, getStringifier, getToRolePosition, isAssociation, isEdge, paint, paintAfterEdges, paintConnection, paintCurvedBowTie, paintCurvedLine, paintFirst, paintLast, paintLine, paintToolTipText, paintToolTipText, paintTypeToolTip, setFont, setLineWeight, setScopingTopic, setShape, setShouldDisplayRoleHoverHelp, setStringifier, setVisible |
Methods inherited from class com.touchgraph.graphlayout.Edge |
containsPoint, getColor, getFrom, getID, getLength, getOtherEndpt, getTo, intersects, isVisible, paintArrow, reverse, setColor, setEdgeDefaultColor, setEdgeDefaultLength, setEdgeMouseOverColor, setID, setLength |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TMRoleEdge
public TMRoleEdge(TMAssociationNode an,
TMTopicNode tn,
AssociationRoleIF r,
TopicIF aScopingTopic)
getRole
public AssociationRoleIF getRole()
paintToolTip
protected void paintToolTip(java.awt.Graphics g)
- Overrides:
paintToolTip
in class TMAbstractEdge
paintBowTie
protected void paintBowTie(java.awt.Graphics2D g)
- Overrides:
paintBowTie
in class TMAbstractEdge
getTopicMapType
public TopicIF getTopicMapType()
- Specified by:
getTopicMapType
in interface VizTMObjectIF
- Overrides:
getTopicMapType
in class TMAbstractEdge
getAssociation
public AssociationIF getAssociation()
setIcon
public void setIcon(javax.swing.Icon icon)
- Specified by:
setIcon
in interface VizTMObjectIF
- Overrides:
setIcon
in class TMAbstractEdge
represents
public boolean represents(java.lang.Object object)
getTargetsFrom
public java.util.List getTargetsFrom(com.touchgraph.graphlayout.Node find)
- Overrides:
getTargetsFrom
in class TMAbstractEdge
getMainHoverHelpText
protected java.lang.String getMainHoverHelpText()
- Overrides:
getMainHoverHelpText
in class TMAbstractEdge
getCurvedBowTie
protected java.awt.geom.GeneralPath getCurvedBowTie(int index)
- Overrides:
getCurvedBowTie
in class TMAbstractEdge
getDesctructor
public RecoveryObjectIF getDesctructor()
getRecreator
public RecoveryObjectIF getRecreator()
Copyright © 2000-2012 Ontopia.