Package 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
,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.
-
-
Field Summary
-
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
-
-
Constructor Summary
Constructors Constructor Description TMRoleEdge(TMAssociationNode an, TMTopicNode tn, AssociationRoleIF r, TopicIF aScopingTopic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssociationIF
getAssociation()
protected GeneralPath
getCurvedBowTie(int index)
RecoveryObjectIF
getDesctructor()
protected String
getMainHoverHelpText()
RecoveryObjectIF
getRecreator()
AssociationRoleIF
getRole()
List
getTargetsFrom(com.touchgraph.graphlayout.Node find)
TopicIF
getTopicMapType()
protected void
paintBowTie(Graphics2D g)
protected void
paintToolTip(Graphics g)
boolean
represents(Object object)
void
setIcon(Icon icon)
-
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
-
Methods inherited from interface net.ontopia.topicmaps.viz.VizTMObjectIF
setColor
-
-
-
-
Constructor Detail
-
TMRoleEdge
public TMRoleEdge(TMAssociationNode an, TMTopicNode tn, AssociationRoleIF r, TopicIF aScopingTopic)
-
-
Method Detail
-
getRole
public AssociationRoleIF getRole()
-
paintToolTip
protected void paintToolTip(Graphics g)
- Overrides:
paintToolTip
in classTMAbstractEdge
-
paintBowTie
protected void paintBowTie(Graphics2D g)
- Overrides:
paintBowTie
in classTMAbstractEdge
-
getTopicMapType
public TopicIF getTopicMapType()
- Specified by:
getTopicMapType
in interfaceVizTMObjectIF
- Overrides:
getTopicMapType
in classTMAbstractEdge
-
getAssociation
public AssociationIF getAssociation()
-
setIcon
public void setIcon(Icon icon)
- Specified by:
setIcon
in interfaceVizTMObjectIF
- Overrides:
setIcon
in classTMAbstractEdge
-
represents
public boolean represents(Object object)
-
getTargetsFrom
public List getTargetsFrom(com.touchgraph.graphlayout.Node find)
- Overrides:
getTargetsFrom
in classTMAbstractEdge
-
getMainHoverHelpText
protected String getMainHoverHelpText()
- Overrides:
getMainHoverHelpText
in classTMAbstractEdge
-
getCurvedBowTie
protected GeneralPath getCurvedBowTie(int index)
- Overrides:
getCurvedBowTie
in classTMAbstractEdge
-
getDesctructor
public RecoveryObjectIF getDesctructor()
-
getRecreator
public RecoveryObjectIF getRecreator()
-
-