net.ontopia.topicmaps.viz
Class TMAssociationEdge

java.lang.Object
  extended by com.touchgraph.graphlayout.Edge
      extended by net.ontopia.topicmaps.viz.TMAbstractEdge
          extended by net.ontopia.topicmaps.viz.TMAssociationEdge
All Implemented Interfaces:
com.touchgraph.graphlayout.TGPaintListener, java.util.EventListener, Recoverable, VizTMAssociationIF, VizTMObjectIF

public class TMAssociationEdge
extends TMAbstractEdge
implements VizTMAssociationIF

INTERNAL: Edge class representing binary associations as edges.


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
 
Fields inherited from class com.touchgraph.graphlayout.Edge
col, DEFAULT_COLOR, DEFAULT_LENGTH, from, id, length, MOUSE_OVER_COLOR, to, visible
 
Constructor Summary
TMAssociationEdge(TMTopicNode tn1, TMTopicNode tn2, AssociationIF association, TopicIF aScopingTopic)
           
 
Method Summary
 AssociationIF getAssociation()
           
 RecoveryObjectIF getDesctructor()
           
protected  java.lang.String getMainHoverHelpText()
           
 RecoveryObjectIF getRecoveryObject()
           
 RecoveryObjectIF getRecreator()
           
 TopicIF getTopicMapType()
           
 boolean isAssociation()
           
protected  void paintToolTip(java.awt.Graphics g)
           
 boolean represents(java.lang.Object object)
           
 void setShouldDisplayScopedAssociationNames(boolean newValue)
           
 
Methods inherited from class net.ontopia.topicmaps.viz.TMAbstractEdge
addTo, calculateMidPointBetween, calculateOffset, deleteFrom, distFromPoint, getCurvedBowTie, getCurvedLine, getDisplayShape, getFont, getFromRolePosition, getIcon, getIndexInParents, getLineWeight, getMidPoint, getShape, getStringifier, getTargetsFrom, getToRolePosition, isEdge, paint, paintAfterEdges, paintBowTie, paintConnection, paintCurvedBowTie, paintCurvedLine, paintFirst, paintLast, paintLine, paintToolTipText, paintToolTipText, paintTypeToolTip, setFont, setIcon, 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
addTo, deleteFrom, isEdge, setColor, setFont, setIcon, setLineWeight, setScopingTopic, setShape, setVisible
 

Constructor Detail

TMAssociationEdge

public TMAssociationEdge(TMTopicNode tn1,
                         TMTopicNode tn2,
                         AssociationIF association,
                         TopicIF aScopingTopic)
Method Detail

getAssociation

public AssociationIF getAssociation()

getMainHoverHelpText

protected java.lang.String getMainHoverHelpText()
Overrides:
getMainHoverHelpText in class TMAbstractEdge

paintToolTip

protected void paintToolTip(java.awt.Graphics g)
Overrides:
paintToolTip in class TMAbstractEdge

getTopicMapType

public TopicIF getTopicMapType()
Specified by:
getTopicMapType in interface VizTMObjectIF
Overrides:
getTopicMapType in class TMAbstractEdge

represents

public boolean represents(java.lang.Object object)
Specified by:
represents in interface VizTMObjectIF

isAssociation

public boolean isAssociation()
Specified by:
isAssociation in interface VizTMObjectIF
Overrides:
isAssociation in class TMAbstractEdge

setShouldDisplayScopedAssociationNames

public void setShouldDisplayScopedAssociationNames(boolean newValue)
Specified by:
setShouldDisplayScopedAssociationNames in interface VizTMAssociationIF

getRecoveryObject

public RecoveryObjectIF getRecoveryObject()

getDesctructor

public RecoveryObjectIF getDesctructor()
Specified by:
getDesctructor in interface Recoverable

getRecreator

public RecoveryObjectIF getRecreator()
Specified by:
getRecreator in interface Recoverable


Copyright © 2000-2012 Ontopia.