Class TMTopicNode

  • All Implemented Interfaces:
    Recoverable

    public class TMTopicNode
    extends TMAbstractNode
    INTERNAL: Node class representing topics.
    • Field Detail

      • forceColor

        protected boolean forceColor
      • DEFAULT_SHAPE_PADDING

        public static int DEFAULT_SHAPE_PADDING
      • MAX_SHAPE_PADDING

        public static int MAX_SHAPE_PADDING
    • Method Detail

      • updateLabel

        public void updateLabel()
      • setScopingTopic

        public void setScopingTopic​(TopicIF aScopingTopic)
      • getTopicName

        public String getTopicName()
      • paint

        public void paint​(Graphics g,
                          com.touchgraph.graphlayout.TGPanel tgPanel)
        Repaints the name. Some topic names are shortened when initially displayed. When the user moves the mouse over the node the full name is displayed.
        Overrides:
        paint in class com.touchgraph.graphlayout.Node
      • miniPaint

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

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

        public void setLabel​(String name)
        Overrides:
        setLabel in class com.touchgraph.graphlayout.Node
      • getTopic

        public TopicIF getTopic()
      • setShapePadding

        public void setShapePadding​(int value)
      • getShapePadding

        public int getShapePadding()
      • getWidth

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

        public int getHeight()
        Overrides:
        getHeight in class com.touchgraph.graphlayout.Node
      • getPaintBackColor

        public Color getPaintBackColor​(com.touchgraph.graphlayout.TGPanel tgPanel)
        This method enables TMTopicNode to force a particular color upon a given node, even if it is the focus node. This was necessary because blinking didn't work on the focus node.
        Overrides:
        getPaintBackColor in class TMAbstractNode
      • repaint

        public void repaint​(Color aColor,
                            com.touchgraph.graphlayout.TGPanel tgPanel)
      • repaint

        public void repaint​(Color aColor,
                            com.touchgraph.graphlayout.TGPanel tgPanel,
                            boolean forceColor)
      • setAssociationCount

        public void setAssociationCount​(int count)
      • containsPoint

        public boolean containsPoint​(double aPx,
                                     double aPy)
        Overrides:
        containsPoint in class com.touchgraph.graphlayout.Node