Package net.ontopia.topicmaps.viz
Class TMClassInstanceAssociation
- java.lang.Object
-
- com.touchgraph.graphlayout.Edge
-
- net.ontopia.topicmaps.viz.TMAbstractEdge
-
- net.ontopia.topicmaps.viz.TMClassInstanceAssociation
-
- All Implemented Interfaces:
com.touchgraph.graphlayout.TGPaintListener
,EventListener
,Recoverable
,VizTMAssociationIF
,VizTMObjectIF
public class TMClassInstanceAssociation extends TMAbstractEdge implements VizTMAssociationIF
INTERNAL: Edge class used to represent "Class - Instance" associations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TMClassInstanceAssociation.Key
-
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 TMClassInstanceAssociation(TMTopicNode classType, TMTopicNode instance, TopicIF topicType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecoveryObjectIF
getDesctructor()
protected String
getMainHoverHelpText()
RecoveryObjectIF
getRecreator()
TopicIF
getTopicMapType()
boolean
isAssociation()
protected void
paintToolTip(Graphics g)
boolean
represents(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
-
TMClassInstanceAssociation
public TMClassInstanceAssociation(TMTopicNode classType, TMTopicNode instance, TopicIF topicType)
-
-
Method Detail
-
paintToolTip
protected void paintToolTip(Graphics g)
- Overrides:
paintToolTip
in classTMAbstractEdge
-
getTopicMapType
public TopicIF getTopicMapType()
- Specified by:
getTopicMapType
in interfaceVizTMObjectIF
- Overrides:
getTopicMapType
in classTMAbstractEdge
-
getMainHoverHelpText
protected String getMainHoverHelpText()
- Overrides:
getMainHoverHelpText
in classTMAbstractEdge
-
represents
public boolean represents(Object object)
- Specified by:
represents
in interfaceVizTMObjectIF
-
isAssociation
public boolean isAssociation()
- Specified by:
isAssociation
in interfaceVizTMObjectIF
- Overrides:
isAssociation
in classTMAbstractEdge
-
setShouldDisplayScopedAssociationNames
public void setShouldDisplayScopedAssociationNames(boolean newValue)
- Specified by:
setShouldDisplayScopedAssociationNames
in interfaceVizTMAssociationIF
-
getDesctructor
public RecoveryObjectIF getDesctructor()
- Specified by:
getDesctructor
in interfaceRecoverable
-
getRecreator
public RecoveryObjectIF getRecreator()
- Specified by:
getRecreator
in interfaceRecoverable
-
-