Package net.ontopia.topicmaps.viz
Class TMAssociationNode
java.lang.Object
com.touchgraph.graphlayout.Node
net.ontopia.topicmaps.viz.TMAbstractNode
net.ontopia.topicmaps.viz.TMAssociationNode
- All Implemented Interfaces:
com.touchgraph.graphlayout.TGPaintListener,EventListener,Recoverable,VizTMAssociationIF,VizTMObjectIF
public class TMAssociationNode
extends TMAbstractNode
implements VizTMObjectIF, VizTMAssociationIF, com.touchgraph.graphlayout.TGPaintListener
INTERNAL: Node class representing n-ary associations as nodes.
-
Field Summary
Fields inherited from class net.ontopia.topicmaps.viz.TMAbstractNode
icon, topicMapView, underMouseFields inherited from class com.touchgraph.graphlayout.Node
BACK_DEFAULT_COLOR, BACK_FIXED_COLOR, BACK_HILIGHT_COLOR, BACK_SELECT_COLOR, backColor, BORDER_DRAG_COLOR, BORDER_INACTIVE_COLOR, BORDER_MOUSE_OVER_COLOR, DEFAULT_TYPE, drawx, drawy, dx, dy, fixed, font, fontMetrics, justMadeLocal, lbl, markedForRemoval, repulsion, SMALL_TAG_FONT, TEXT_COLOR, TEXT_FONT, textColor, typ, TYPE_CIRCLE, TYPE_ELLIPSE, TYPE_RECTANGLE, TYPE_ROUNDRECT, visible, visibleEdgeCnt, x, y -
Constructor Summary
ConstructorsConstructorDescriptionTMAssociationNode(AssociationIF assoc, TopicIF aScopingTopic, TopicMapView topicMapView) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTo(com.touchgraph.graphlayout.TGPanel tgpanel) voiddeleteFrom(com.touchgraph.graphlayout.TGPanel tgpanel) protected voiddrawMissingEdgesIndicator(Graphics g, com.touchgraph.graphlayout.TGPanel tgPanel) protected static StringgetAssociationText(AssociationIF association, boolean displScopedAssocNames, TopicIF scopingTopic) intintgetTargetsFrom(com.touchgraph.graphlayout.Node find) intgetWidth()booleanbooleanisEdge()voidvoidvoidvoidvoidThis is our hover help support.booleanrepresents(Object object) voidvoidsetEdgeCount(int visibleEdgeCount) voidsetLineWeight(int lineWeight) voidsetRoleCount(int count) voidsetScopingTopic(TopicIF aTopic) voidsetShape(int shape) voidsetShouldDisplayScopedAssociationNames(boolean newValue) Methods inherited from class net.ontopia.topicmaps.viz.TMAbstractNode
drawNeighboursInForeground, getEdges, getIcon, getPaintBackColor, getPaintBorderColor, getPaintTextColor, getVisibleEdges, getVisibleEdgesList, hasPathTo, removeMouseoverIcon, setBackColor, setIcon, setUnderMouse, setUnderMouseForced, setVisible, textColourForBackgroundMethods inherited from class com.touchgraph.graphlayout.Node
addEdge, containsPoint, containsPoint, edgeAt, edgeCount, edgeNum, getBackColor, getFixed, getFont, getHeight, getID, getLabel, getLocation, getTextColor, getType, intersects, isVisible, paintNodeBody, paintSmallTag, removeEdge, setFixed, setFont, setID, setLabel, setLocation, setNodeBackDefaultColor, setNodeBackFixedColor, setNodeBackHilightColor, setNodeBackSelectColor, setNodeBorderDragColor, setNodeBorderInactiveColor, setNodeBorderMouseOverColor, setNodeTextColor, setNodeTextFont, setNodeType, setTextColor, setType, visibleEdgeCountMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.ontopia.topicmaps.viz.VizTMObjectIF
setFont, setIcon, setVisible
-
Constructor Details
-
TMAssociationNode
-
-
Method Details
-
getAssociationText
protected static String getAssociationText(AssociationIF association, boolean displScopedAssocNames, TopicIF scopingTopic) -
setEdgeCount
public void setEdgeCount(int visibleEdgeCount) -
getEdgeCount
public int getEdgeCount() -
setRoleCount
public void setRoleCount(int count) -
drawMissingEdgesIndicator
-
addTo
public void addTo(com.touchgraph.graphlayout.TGPanel tgpanel) - Specified by:
addToin interfaceVizTMObjectIF
-
deleteFrom
public void deleteFrom(com.touchgraph.graphlayout.TGPanel tgpanel) - Specified by:
deleteFromin interfaceVizTMObjectIF
-
getAssociation
-
getLineWeight
public int getLineWeight() -
getMainText
-
getTargetsFrom
-
getTopicMapType
- Specified by:
getTopicMapTypein interfaceVizTMObjectIF
-
getWidth
public int getWidth()- Overrides:
getWidthin classcom.touchgraph.graphlayout.Node
-
isAssociation
public boolean isAssociation()- Specified by:
isAssociationin interfaceVizTMObjectIF
-
isEdge
public boolean isEdge()- Specified by:
isEdgein interfaceVizTMObjectIF
-
paint
- Overrides:
paintin classcom.touchgraph.graphlayout.Node
-
miniPaint
-
paintAfterEdges
- Specified by:
paintAfterEdgesin interfacecom.touchgraph.graphlayout.TGPaintListener
-
paintFirst
- Specified by:
paintFirstin interfacecom.touchgraph.graphlayout.TGPaintListener
-
paintLast
This is our hover help support. This method is called after all other painting has been completed, hence ensuring that ToolTips (HoverHelp) is always drawn ontop.- Specified by:
paintLastin interfacecom.touchgraph.graphlayout.TGPaintListener
-
represents
- Specified by:
representsin interfaceVizTMObjectIF
-
setColor
- Specified by:
setColorin interfaceVizTMObjectIF
-
setLineWeight
public void setLineWeight(int lineWeight) - Specified by:
setLineWeightin interfaceVizTMObjectIF
-
setScopingTopic
- Specified by:
setScopingTopicin interfaceVizTMObjectIF
-
setShape
public void setShape(int shape) - Specified by:
setShapein interfaceVizTMObjectIF
-
setShouldDisplayScopedAssociationNames
public void setShouldDisplayScopedAssociationNames(boolean newValue) - Specified by:
setShouldDisplayScopedAssociationNamesin interfaceVizTMAssociationIF
-
getDesctructor
- Specified by:
getDesctructorin interfaceRecoverable
-
getRecreator
- Specified by:
getRecreatorin interfaceRecoverable
-