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 AssociationIFgetAssociation()protected GeneralPathgetCurvedBowTie(int index)RecoveryObjectIFgetDesctructor()protected StringgetMainHoverHelpText()RecoveryObjectIFgetRecreator()AssociationRoleIFgetRole()ListgetTargetsFrom(com.touchgraph.graphlayout.Node find)TopicIFgetTopicMapType()protected voidpaintBowTie(Graphics2D g)protected voidpaintToolTip(Graphics g)booleanrepresents(Object object)voidsetIcon(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:
paintToolTipin classTMAbstractEdge
-
paintBowTie
protected void paintBowTie(Graphics2D g)
- Overrides:
paintBowTiein classTMAbstractEdge
-
getTopicMapType
public TopicIF getTopicMapType()
- Specified by:
getTopicMapTypein interfaceVizTMObjectIF- Overrides:
getTopicMapTypein classTMAbstractEdge
-
getAssociation
public AssociationIF getAssociation()
-
setIcon
public void setIcon(Icon icon)
- Specified by:
setIconin interfaceVizTMObjectIF- Overrides:
setIconin classTMAbstractEdge
-
represents
public boolean represents(Object object)
-
getTargetsFrom
public List getTargetsFrom(com.touchgraph.graphlayout.Node find)
- Overrides:
getTargetsFromin classTMAbstractEdge
-
getMainHoverHelpText
protected String getMainHoverHelpText()
- Overrides:
getMainHoverHelpTextin classTMAbstractEdge
-
getCurvedBowTie
protected GeneralPath getCurvedBowTie(int index)
- Overrides:
getCurvedBowTiein classTMAbstractEdge
-
getDesctructor
public RecoveryObjectIF getDesctructor()
-
getRecreator
public RecoveryObjectIF getRecreator()
-
-