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.
  • Constructor Details

  • 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

      protected void drawMissingEdgesIndicator(Graphics g, com.touchgraph.graphlayout.TGPanel tgPanel)
    • addTo

      public void addTo(com.touchgraph.graphlayout.TGPanel tgpanel)
      Specified by:
      addTo in interface VizTMObjectIF
    • deleteFrom

      public void deleteFrom(com.touchgraph.graphlayout.TGPanel tgpanel)
      Specified by:
      deleteFrom in interface VizTMObjectIF
    • getAssociation

      public AssociationIF getAssociation()
    • getLineWeight

      public int getLineWeight()
    • getMainText

      public String getMainText()
    • getTargetsFrom

      public List getTargetsFrom(com.touchgraph.graphlayout.Node find)
    • getTopicMapType

      public TopicIF getTopicMapType()
      Specified by:
      getTopicMapType in interface VizTMObjectIF
    • getWidth

      public int getWidth()
      Overrides:
      getWidth in class com.touchgraph.graphlayout.Node
    • isAssociation

      public boolean isAssociation()
      Specified by:
      isAssociation in interface VizTMObjectIF
    • isEdge

      public boolean isEdge()
      Specified by:
      isEdge in interface VizTMObjectIF
    • paint

      public void paint(Graphics g, com.touchgraph.graphlayout.TGPanel tgPanel)
      Overrides:
      paint in class com.touchgraph.graphlayout.Node
    • miniPaint

      public void miniPaint(Graphics g, com.touchgraph.graphlayout.TGPanel tgPanel)
    • paintAfterEdges

      public void paintAfterEdges(Graphics g)
      Specified by:
      paintAfterEdges in interface com.touchgraph.graphlayout.TGPaintListener
    • paintFirst

      public void paintFirst(Graphics g)
      Specified by:
      paintFirst in interface com.touchgraph.graphlayout.TGPaintListener
    • paintLast

      public void paintLast(Graphics g)
      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:
      paintLast in interface com.touchgraph.graphlayout.TGPaintListener
    • represents

      public boolean represents(Object object)
      Specified by:
      represents in interface VizTMObjectIF
    • setColor

      public void setColor(Color color)
      Specified by:
      setColor in interface VizTMObjectIF
    • setLineWeight

      public void setLineWeight(int lineWeight)
      Specified by:
      setLineWeight in interface VizTMObjectIF
    • setScopingTopic

      public void setScopingTopic(TopicIF aTopic)
      Specified by:
      setScopingTopic in interface VizTMObjectIF
    • setShape

      public void setShape(int shape)
      Specified by:
      setShape in interface VizTMObjectIF
    • setShouldDisplayScopedAssociationNames

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

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

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